12 references to PrivateHeaders
Microsoft.Net.Http.Headers.Tests (12)
CacheControlHeaderValueTest.cs (12)
52
Assert.NotNull(cacheControl.
PrivateHeaders
);
53
Assert.Throws<ArgumentException>(() => cacheControl.
PrivateHeaders
.Add(null));
54
Assert.Throws<FormatException>(() => cacheControl.
PrivateHeaders
.Add("invalid PLACEHOLDER"));
55
cacheControl.
PrivateHeaders
.Add("PLACEHOLDER");
56
Assert.Single(cacheControl.
PrivateHeaders
);
57
Assert.Equal("PLACEHOLDER", cacheControl.
PrivateHeaders
.First().AsSpan());
122
cacheControl.
PrivateHeaders
.Add("PLACEHOLDER2");
123
cacheControl.
PrivateHeaders
.Add("PLACEHOLDER3");
231
cacheControl3.
PrivateHeaders
.Add("PLACEHOLDER2");
357
cacheControl3.
PrivateHeaders
.Add("PLACEHOLDER2");
361
cacheControl4.
PrivateHeaders
.Add("PLACEHOLDER3");
404
expected.
PrivateHeaders
.Add("PLACEHOLDER1");