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