change to inrange to see value

Commit migrated from https://github.com/dotnet/corefx/commit/964009e9a23f7176dd24299da9aca430d23be2d3
This commit is contained in:
danmosemsft committed 2017-05-23 08:49:03 -07:00
1 parent c087ce1683
commit ce492417e6
1 file changed
+2 -2
@@ -767,9 +767,9 @@ namespace System.Threading.Threads.Tests
Assert.Throws<ArgumentOutOfRangeException>(() => Thread.Sleep(TimeSpan.FromMilliseconds((double)int.MaxValue + 1)));
Thread.Sleep(0);
var startTime = DateTime.Now;
var startTime = DateTime.UtcNow;
Thread.Sleep(500);
Assert.True((DateTime.Now - startTime).TotalMilliseconds >= 100);
Assert.InRange((DateTime.UtcNow - startTime).TotalMilliseconds, 100, int.MaxValue);
}
[Fact]