public void ShouldWaitForValue() { // Assert.AreEqual(50, new BusySpinWaitStrategy()); WaitStrategyTestUtil.AssertWaitForWithDelayOf(TimeSpan.FromMilliseconds(50), new BusySpinWaitStrategy()); }
public void ShouldWaitForValue() { WaitStrategyTestUtil.AssertWaitForWithDelayOf(TimeSpan.FromMilliseconds(50), new SleepingWaitStrategy()); }
public void ShouldHandleSequenceChangeWithTenMillisecondDelay() { WaitStrategyTestUtil.AssertWaitForWithDelayOf(new TimeSpan(10), PhasedBackoffWaitStrategy.WithLock(TimeSpan.FromMilliseconds(1), TimeSpan.FromMilliseconds(1))); WaitStrategyTestUtil.AssertWaitForWithDelayOf(new TimeSpan(10), PhasedBackoffWaitStrategy.WithLock(TimeSpan.FromMilliseconds(1), TimeSpan.FromMilliseconds(1))); }