41 references to InRange
IIS.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\AspNetCorePortTests.cs (1)
82Assert.InRange(new Uri(responseText).Port, _minPort, _maxPort);
IISExpress.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\AspNetCorePortTests.cs (1)
82Assert.InRange(new Uri(responseText).Port, _minPort, _maxPort);
InMemory.FunctionalTests (4)
BadHttpRequestTests.cs (1)
206Assert.All(TestSink.Writes.Where(w => w.LoggerName != "Microsoft.Hosting.Lifetime"), w => Assert.InRange(w.LogLevel, LogLevel.Trace, LogLevel.Debug));
ChunkedRequestTests.cs (1)
1070Assert.All(TestSink.Writes, w => Assert.InRange(w.LogLevel, LogLevel.Trace, LogLevel.Information));
Http2\Http2ConnectionTests.cs (1)
4982Assert.All(LogMessages, w => Assert.InRange(w.LogLevel, LogLevel.Trace, LogLevel.Debug));
RequestTests.cs (1)
2024Assert.All(TestSink.Writes, w => Assert.InRange(w.LogLevel, LogLevel.Trace, LogLevel.Information));
Microsoft.AspNetCore.DataProtection.Extensions.Tests (2)
DataProtectionAdvancedExtensionsTests.cs (2)
53Assert.InRange(actualExpiration, lowerBound, upperBound); 76Assert.InRange(actualExpiration, lowerBound, upperBound);
Microsoft.AspNetCore.DataProtection.Tests (3)
KeyManagement\KeyRingProviderTests.cs (1)
910Assert.InRange(actual, now + TimeSpan.FromHours(24 * 0.8), now + TimeSpan.FromHours(24));
KeyManagement\XmlKeyManagerTests.cs (2)
317Assert.InRange(actualCreationDate.Value, minCreationDate, DateTimeOffset.UtcNow); 744Assert.InRange(actualRevocationDate.Value, minRevocationDate, DateTimeOffset.UtcNow);
Microsoft.AspNetCore.Http.Extensions.Tests (4)
HttpResponseJsonExtensionsTests.cs (4)
325Assert.InRange(body.ToArray().Length, 0, 1); 359Assert.InRange(body.ToArray().Length, 0, 1); 393Assert.InRange(body.ToArray().Length, 0, 1); 427Assert.InRange(body.ToArray().Length, 0, 1);
Microsoft.AspNetCore.HttpLogging.Tests (6)
W3CLoggerTests.cs (2)
43Assert.InRange(delta, -1, 10); 87Assert.InRange(delta, -1, 10);
W3CLoggingMiddlewareTests.cs (4)
98Assert.InRange(delta, -1, 10); 143Assert.InRange(delta, -1, 10); 263Assert.InRange(delta, -1, 10); 301Assert.InRange(delta, -1, 10);
Microsoft.AspNetCore.Mvc.Core.Test (4)
Formatters\SystemTextJsonOutputFormatterTest.cs (1)
144Assert.InRange(body.ToArray().Length, 0, 1);
Infrastructure\JsonResultExecutorTestBase.cs (3)
379Assert.InRange(written.Length, 0, 1); 413Assert.InRange(written.Length, 0, 2); 463Assert.InRange(written.Length, 0, 2);
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (3)
src\Mvc\Mvc.Core\test\Infrastructure\JsonResultExecutorTestBase.cs (3)
379Assert.InRange(written.Length, 0, 1); 413Assert.InRange(written.Length, 0, 2); 463Assert.InRange(written.Length, 0, 2);
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
ValidationSummaryTagHelperTest.cs (1)
254Assert.InRange(output.Attributes.Count, low: 1, high: 2);
Microsoft.AspNetCore.SignalR.Tests (1)
HubConnectionHandlerTests.cs (1)
2729Assert.InRange(counter, 1, 50);
Microsoft.AspNetCore.WebUtilities.Tests (2)
FileBufferingReadStreamTests.cs (2)
482Assert.InRange(withBufferMs.NumberOfWrites, 1, mostExpectedWrites); 506Assert.InRange(withBufferMs.NumberOfWrites, 1, mostExpectedWrites);
Microsoft.DotNet.XUnitAssert.Tests (7)
RangeAssertsTests.cs (7)
17 var ex = Record.Exception(() => Assert.InRange(1.50, .75, 1.25)); 31 Assert.InRange(1.0, .75, 1.25); 37 var ex = Record.Exception(() => Assert.InRange(0, 1, 2)); 51 var ex = Record.Exception(() => Assert.InRange(2, 0, 1)); 65 Assert.InRange(2, 1, 3); 71 var ex = Record.Exception(() => Assert.InRange("adam", "bob", "scott")); 85 Assert.InRange("bob", "adam", "scott");
Sockets.FunctionalTests (2)
src\Servers\Kestrel\test\FunctionalTests\MaxRequestBufferSizeTests.cs (2)
188Assert.InRange(bytesWritten, minimumExpectedBytesWritten, maximumExpectedBytesWritten); 278Assert.InRange(bytesWritten, minimumExpectedBytesWritten, maximumExpectedBytesWritten);