public void NearZeroElapsed() { TimePoint start = TimePoint.Now(); TimeSpan elapsed = start.Elapsed(); elapsed.TotalMilliseconds.Should().BeLessThan(1.0d); }
public void FiveMillisecondsElapsed() { TimePoint start = TimePoint.Now(); Thread.Sleep(5); TimeSpan elapsed = start.Elapsed(); elapsed.TotalMilliseconds.Should().BeApproximately(5.0d, 2.0d); }