public void ShouldWaitForValue()
 {
     WaitStrategyTestUtil.AssertWaitForWithDelayOf(50, new SleepingWaitStrategy());
 }
Exemple #2
0
 public void ShouldWaitForValue()
 {
     WaitStrategyTestUtil.AssertWaitForWithDelayOf(50, new BlockingSpinWaitWaitStrategy());
 }
 public void ShouldHandleSequenceChangeWithTenMillisecondDelay()
 {
     WaitStrategyTestUtil.AssertWaitForWithDelayOf(10, PhasedBackoffWaitStrategy.WithLock(TimeSpan.FromMilliseconds(1), TimeSpan.FromMilliseconds(1)));
     WaitStrategyTestUtil.AssertWaitForWithDelayOf(10, PhasedBackoffWaitStrategy.WithSleep(TimeSpan.FromMilliseconds(1), TimeSpan.FromMilliseconds(1)));
 }