private void WaitReceiveUnack() { for(int i = 0; i < 100 && !resendPhase; i++) { Thread.Sleep(100); } Assert.IsTrue(resendPhase); }