Exemplo n.º 1
0
        public void Should_reset_delay_time_to_0()
        {
            // Arrange
            var are    = new AutoResetEvent(false);
            var policy = new DefaultRetryPolicy();

            policy.WaitForNextRetry(() => are.Set());
            are.WaitOne();

            // Action
            policy.Reset();

            // Assert
            Assert.AreEqual(0, policy.DelayTime);
            Assert.IsFalse(policy.IsWaiting);
        }