public static AssertWaitForWithDelayOf ( long sleepTimeMillis, IWaitStrategy waitStrategy ) : void | ||
sleepTimeMillis | long | |
waitStrategy | IWaitStrategy | |
Результат | void |
public void ShouldWaitForValue() { WaitStrategyTestUtil.AssertWaitForWithDelayOf(50, new SleepingWaitStrategy()); }
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))); }