32 references to RangeConditionHeaderValue
Microsoft.AspNetCore.Http.Results.Tests (9)
src\Shared\ResultsTests\FileContentResultTestBase.cs (2)
146
requestHeaders.IfRange = new
RangeConditionHeaderValue
(new EntityTagHeaderValue("\"Etag\""));
180
requestHeaders.IfRange = new
RangeConditionHeaderValue
(new EntityTagHeaderValue("\"NotEtag\""));
src\Shared\ResultsTests\FileStreamResultTestBase.cs (1)
88
requestHeaders.IfRange = new
RangeConditionHeaderValue
(new EntityTagHeaderValue("\"Etag\""));
src\Shared\ResultsTests\PhysicalFileResultTestBase.cs (3)
77
requestHeaders.IfRange = new
RangeConditionHeaderValue
(new EntityTagHeaderValue("\"Etag\""));
109
requestHeaders.IfRange = new
RangeConditionHeaderValue
(new EntityTagHeaderValue("\"Etag\""));
136
requestHeaders.IfRange = new
RangeConditionHeaderValue
(new EntityTagHeaderValue("\"NotEtag\""));
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (3)
95
requestHeaders.IfRange = new
RangeConditionHeaderValue
(new EntityTagHeaderValue("\"Etag\""));
132
requestHeaders.IfRange = new
RangeConditionHeaderValue
(new EntityTagHeaderValue("\"Etag\""));
165
requestHeaders.IfRange = new
RangeConditionHeaderValue
(new EntityTagHeaderValue("\"NotEtag\""));
Microsoft.AspNetCore.Mvc.Core.Test (9)
src\Shared\ResultsTests\FileContentResultTestBase.cs (2)
146
requestHeaders.IfRange = new
RangeConditionHeaderValue
(new EntityTagHeaderValue("\"Etag\""));
180
requestHeaders.IfRange = new
RangeConditionHeaderValue
(new EntityTagHeaderValue("\"NotEtag\""));
src\Shared\ResultsTests\FileStreamResultTestBase.cs (1)
88
requestHeaders.IfRange = new
RangeConditionHeaderValue
(new EntityTagHeaderValue("\"Etag\""));
src\Shared\ResultsTests\PhysicalFileResultTestBase.cs (3)
77
requestHeaders.IfRange = new
RangeConditionHeaderValue
(new EntityTagHeaderValue("\"Etag\""));
109
requestHeaders.IfRange = new
RangeConditionHeaderValue
(new EntityTagHeaderValue("\"Etag\""));
136
requestHeaders.IfRange = new
RangeConditionHeaderValue
(new EntityTagHeaderValue("\"NotEtag\""));
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (3)
95
requestHeaders.IfRange = new
RangeConditionHeaderValue
(new EntityTagHeaderValue("\"Etag\""));
132
requestHeaders.IfRange = new
RangeConditionHeaderValue
(new EntityTagHeaderValue("\"Etag\""));
165
requestHeaders.IfRange = new
RangeConditionHeaderValue
(new EntityTagHeaderValue("\"NotEtag\""));
Microsoft.Net.Http.Headers (1)
RangeConditionHeaderValue.cs (1)
51
:
this
(new EntityTagHeaderValue(entityTag))
Microsoft.Net.Http.Headers.Tests (13)
RangeConditionHeaderValueTest.cs (13)
11
var rangeCondition = new
RangeConditionHeaderValue
(new EntityTagHeaderValue("\"x\""));
16
Assert.Throws<ArgumentNullException>(() => new
RangeConditionHeaderValue
(input));
41
var rangeCondition = new
RangeConditionHeaderValue
(new EntityTagHeaderValue("\"x\""));
52
var rangeCondition2 = new
RangeConditionHeaderValue
(new EntityTagHeaderValue("\"x\""));
59
var rangeCondition6 = new
RangeConditionHeaderValue
(
73
var rangeCondition2 = new
RangeConditionHeaderValue
(new EntityTagHeaderValue("\"x\""));
80
var rangeCondition6 = new
RangeConditionHeaderValue
(
100
CheckValidParse(" W/ \"tag\" ", new
RangeConditionHeaderValue
(new EntityTagHeaderValue("\"tag\"", true)));
101
CheckValidParse(" w/\"tag\"", new
RangeConditionHeaderValue
(new EntityTagHeaderValue("\"tag\"", true)));
102
CheckValidParse("\"tag\"", new
RangeConditionHeaderValue
(new EntityTagHeaderValue("\"tag\"")));
129
CheckValidTryParse(" W/ \"tag\" ", new
RangeConditionHeaderValue
(new EntityTagHeaderValue("\"tag\"", true)));
130
CheckValidTryParse(" w/\"tag\"", new
RangeConditionHeaderValue
(new EntityTagHeaderValue("\"tag\"", true)));
131
CheckValidTryParse("\"tag\"", new
RangeConditionHeaderValue
(new EntityTagHeaderValue("\"tag\"")));