52 references to RangeHeaderValue
Microsoft.AspNetCore.Http.Extensions.Tests (1)
HeaderDictionaryTypeExtensionsTest.cs (1)
87var expected = new RangeHeaderValue(0, 499);
Microsoft.AspNetCore.Http.Results.Tests (19)
src\Shared\ResultsTests\FileContentResultTestBase.cs (4)
63requestHeaders.Range = new RangeHeaderValue(start, end); 106requestHeaders.Range = new RangeHeaderValue(0, 4); 145requestHeaders.Range = new RangeHeaderValue(0, 4); 179requestHeaders.Range = new RangeHeaderValue(0, 4);
src\Shared\ResultsTests\FileStreamResultTestBase.cs (5)
41requestHeaders.Range = new RangeHeaderValue(start, end); 87requestHeaders.Range = new RangeHeaderValue(0, 4); 128requestHeaders.Range = new RangeHeaderValue(0, 4); 165requestHeaders.Range = new RangeHeaderValue(0, 4); 344requestHeaders.Range = new RangeHeaderValue(0, 5);
src\Shared\ResultsTests\PhysicalFileResultTestBase.cs (5)
44requestHeaders.Range = new RangeHeaderValue(start, end); 76requestHeaders.Range = new RangeHeaderValue(0, 3); 108requestHeaders.Range = new RangeHeaderValue(0, 3); 135requestHeaders.Range = new RangeHeaderValue(0, 3); 299requestHeaders.Range = new RangeHeaderValue(start, end);
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (5)
55requestHeaders.Range = new RangeHeaderValue(start, end); 94requestHeaders.Range = new RangeHeaderValue(0, 3); 131requestHeaders.Range = new RangeHeaderValue(0, 3); 164requestHeaders.Range = new RangeHeaderValue(0, 3); 334requestHeaders.Range = new RangeHeaderValue(start, end);
Microsoft.AspNetCore.Mvc.Core.Test (19)
src\Shared\ResultsTests\FileContentResultTestBase.cs (4)
63requestHeaders.Range = new RangeHeaderValue(start, end); 106requestHeaders.Range = new RangeHeaderValue(0, 4); 145requestHeaders.Range = new RangeHeaderValue(0, 4); 179requestHeaders.Range = new RangeHeaderValue(0, 4);
src\Shared\ResultsTests\FileStreamResultTestBase.cs (5)
41requestHeaders.Range = new RangeHeaderValue(start, end); 87requestHeaders.Range = new RangeHeaderValue(0, 4); 128requestHeaders.Range = new RangeHeaderValue(0, 4); 165requestHeaders.Range = new RangeHeaderValue(0, 4); 344requestHeaders.Range = new RangeHeaderValue(0, 5);
src\Shared\ResultsTests\PhysicalFileResultTestBase.cs (5)
44requestHeaders.Range = new RangeHeaderValue(start, end); 76requestHeaders.Range = new RangeHeaderValue(0, 3); 108requestHeaders.Range = new RangeHeaderValue(0, 3); 135requestHeaders.Range = new RangeHeaderValue(0, 3); 299requestHeaders.Range = new RangeHeaderValue(start, end);
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (5)
55requestHeaders.Range = new RangeHeaderValue(start, end); 94requestHeaders.Range = new RangeHeaderValue(0, 3); 131requestHeaders.Range = new RangeHeaderValue(0, 3); 164requestHeaders.Range = new RangeHeaderValue(0, 3); 334requestHeaders.Range = new RangeHeaderValue(start, end);
Microsoft.AspNetCore.StaticFiles.Tests (1)
RangeHelperTests.cs (1)
97var range = new RangeHeaderValue(1, 2);
Microsoft.Net.Http.Headers.Tests (12)
RangeHeaderValueTest.cs (12)
11Assert.Throws<ArgumentOutOfRangeException>(() => new RangeHeaderValue(5, 2)); 44var range1 = new RangeHeaderValue(1, 2); 45var range2 = new RangeHeaderValue(1, 2); 47var range3 = new RangeHeaderValue(1, null); 48var range4 = new RangeHeaderValue(null, 2); 66var range1 = new RangeHeaderValue(1, 2); 67var range2 = new RangeHeaderValue(1, 2); 69var range3 = new RangeHeaderValue(1, null); 70var range4 = new RangeHeaderValue(null, 2); 77var range7 = new RangeHeaderValue(1, 2); 92CheckValidParse(" bytes=1-2 ", new RangeHeaderValue(1, 2)); 131CheckValidTryParse(" bytes=1-2 ", new RangeHeaderValue(1, 2));