105 references to TryGetValues
dotnet-openapi (1)
IIS.FunctionalTests (7)
IISExpress.FunctionalTests (5)
Interop.FunctionalTests (1)
Microsoft.AspNetCore.Authentication.Test (9)
Microsoft.AspNetCore.Diagnostics.Tests (17)
ExceptionHandlerTest.cs (17)
188Assert.True(response.Headers.TryGetValues("Pragma", out values));
191Assert.True(response.Content.Headers.TryGetValues("Expires", out values));
194Assert.False(response.Headers.TryGetValues("ETag", out values));
244Assert.True(response.Headers.TryGetValues("Pragma", out values));
247Assert.True(response.Content.Headers.TryGetValues("Expires", out values));
250Assert.False(response.Headers.TryGetValues("ETag", out values));
297Assert.True(response.Headers.TryGetValues("Cache-Control", out values));
300Assert.True(response.Headers.TryGetValues("Pragma", out values));
303Assert.True(response.Content.Headers.TryGetValues("Expires", out values));
306Assert.True(response.Headers.TryGetValues("ETag", out values));
371Assert.True(response.Headers.TryGetValues("Pragma", out values));
374Assert.False(response.Headers.TryGetValues("Expires", out _));
375Assert.False(response.Headers.TryGetValues("ETag", out _));
439Assert.True(response.Headers.TryGetValues("Cache-Control", out values));
442Assert.True(response.Headers.TryGetValues("Pragma", out values));
445Assert.True(response.Content.Headers.TryGetValues("Expires", out values));
448Assert.True(response.Headers.TryGetValues("ETag", out values));
Microsoft.AspNetCore.HeaderPropagation (2)
Microsoft.AspNetCore.Identity.FunctionalTests (2)
Microsoft.AspNetCore.Mvc.FunctionalTests (8)
Microsoft.AspNetCore.Mvc.Testing (1)
Microsoft.AspNetCore.ResponseCompression.Tests (7)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (29)
ResponseBodyTests.cs (10)
36Assert.False(response.Content.Headers.TryGetValues("content-length", out ignored), "Content-Length");
123Assert.False(response.Content.Headers.TryGetValues("content-length", out ignored), "Content-Length");
155Assert.False(response.Content.Headers.TryGetValues("content-length", out ignored), "Content-Length");
180Assert.False(response.Content.Headers.TryGetValues("content-length", out ignored), "Content-Length");
202Assert.False(response.Content.Headers.TryGetValues("content-length", out ignored), "Content-Length");
226Assert.True(response.Content.Headers.TryGetValues("content-length", out contentLength), "Content-Length");
306Assert.True(response.Content.Headers.TryGetValues("content-length", out contentLength), "Content-Length");
338Assert.False(response.Content.Headers.TryGetValues("content-length", out ignored), "Content-Length");
366Assert.False(response.Content.Headers.TryGetValues("content-length", out ignored), "Content-Length");
393Assert.False(response.Content.Headers.TryGetValues("content-length", out ignored), "Content-Length");
ResponseSendFileTests.cs (11)
74Assert.False(response.Content.Headers.TryGetValues("content-length", out ignored), "Content-Length");
93Assert.False(response.Content.Headers.TryGetValues("content-length", out ignored), "Content-Length");
112Assert.False(response.Content.Headers.TryGetValues("content-length", out contentLength), "Content-Length");
132Assert.False(response.Content.Headers.TryGetValues("content-length", out contentLength), "Content-Length");
151Assert.False(response.Content.Headers.TryGetValues("content-length", out contentLength), "Content-Length");
208Assert.False(response.Content.Headers.TryGetValues("content-length", out contentLength), "Content-Length");
228Assert.True(response.Content.Headers.TryGetValues("content-length", out contentLength), "Content-Length");
249Assert.True(response.Content.Headers.TryGetValues("content-length", out contentLength), "Content-Length");
270Assert.True(response.Content.Headers.TryGetValues("content-length", out contentLength), "Content-Length");
299Assert.False(response.Content.Headers.TryGetValues("content-length", out ignored), "Content-Length");
322Assert.False(response.Content.Headers.TryGetValues("content-length", out var contentLength), "Content-Length");
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (2)
Microsoft.AspNetCore.Session.Tests (3)
Microsoft.DotNet.Build.Tasks.Feed (2)
Microsoft.DotNet.VersionTools (1)
Microsoft.Extensions.Http.Diagnostics (2)
Microsoft.ML.Core (1)
ServerComparison.FunctionalTests (2)
System.Net.Requests (1)
System.Net.WebSockets.Client (2)