19 references to NoCacheHeaders
Microsoft.Net.Http.Headers.Tests (19)
CacheControlHeaderValueTest.cs (19)
45
Assert.NotNull(cacheControl.
NoCacheHeaders
);
46
Assert.Throws<ArgumentException>(() => cacheControl.
NoCacheHeaders
.Add(null));
47
Assert.Throws<FormatException>(() => cacheControl.
NoCacheHeaders
.Add("invalid PLACEHOLDER"));
48
cacheControl.
NoCacheHeaders
.Add("PLACEHOLDER");
49
Assert.Single(cacheControl.
NoCacheHeaders
);
50
Assert.Equal("PLACEHOLDER", cacheControl.
NoCacheHeaders
.First().AsSpan());
114
cacheControl.
NoCacheHeaders
.Add("PLACEHOLDER1");
217
cacheControl1.
NoCacheHeaders
.Add("PLACEHOLDER2");
220
cacheControl2.
NoCacheHeaders
.Add("PLACEHOLDER1");
221
cacheControl2.
NoCacheHeaders
.Add("PLACEHOLDER2");
225
cacheControl1.
NoCacheHeaders
.Add("PLACEHOLDER1");
341
cacheControl1.
NoCacheHeaders
.Add("PLACEHOLDER2");
346
cacheControl2.
NoCacheHeaders
.Add("PLACEHOLDER1");
347
cacheControl2.
NoCacheHeaders
.Add("PLACEHOLDER2");
351
cacheControl1!.
NoCacheHeaders
.Add("PLACEHOLDER1");
384
expected.
NoCacheHeaders
.Add("PLACEHOLDER1");
385
expected.
NoCacheHeaders
.Add("PLACEHOLDER2");
488
expected.
NoCacheHeaders
.Add("t");
525
expected.
NoCacheHeaders
.Add("t");