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