public async Task Should_override_delay() { TimeMachine.OverrideDelayWith(orig => TimeSpan.Zero); var sw = new Stopwatch(); sw.Start(); await TimeMachine.Delay(10000000); Assert.True(sw.Elapsed < TimeSpan.FromSeconds(1)); }
public async Task Should_override_delay() { TimeMachine.OverrideDelayWith(orig => TimeSpan.Zero); var sw = new Stopwatch(); sw.Start(); await TimeMachine.Delay(10000000); Assert.True(sw.Elapsed < TimeSpan.FromSeconds(1)); }