public void ResendShouldBeSentOnlyOnce() { MySocketEngine engine = new MySocketEngine(); engine.MySendResendRequest(); engine.MySendResendRequest(); Assert.AreEqual(1, engine.ResendCount); }
public void ResendShouldBeSentMultipleTimes() { MySocketEngine engine = new MySocketEngine(); engine.MySendResendRequest(); engine.SetLastResendRequestTimestamp(DateTime.MinValue); engine.MySendResendRequest(); Assert.AreEqual(2, engine.ResendCount); }