201 references to GetValues
Aspire.Dashboard.Tests (16)
Integration\OtlpCorsHttpServiceTests.cs (9)
64Assert.Equal("http://localhost:8000", responseMessage1.Headers.GetValues("Access-Control-Allow-Origin").Single());
65Assert.Equal("POST", responseMessage1.Headers.GetValues("Access-Control-Allow-Methods").Single());
66Assert.Equal("X-Requested-With", responseMessage1.Headers.GetValues("Access-Control-Allow-Headers").Single());
78Assert.Equal("http://localhost:8001", responseMessage2.Headers.GetValues("Access-Control-Allow-Origin").Single());
79Assert.Equal("POST", responseMessage2.Headers.GetValues("Access-Control-Allow-Methods").Single());
80Assert.Equal("X-Requested-With", responseMessage2.Headers.GetValues("Access-Control-Allow-Headers").Single());
133Assert.Equal("*", responseMessage.Headers.GetValues("Access-Control-Allow-Origin").Single());
134Assert.Equal("POST", responseMessage.Headers.GetValues("Access-Control-Allow-Methods").Single());
135Assert.Equal("x-requested-with,x-custom,Content-Type", responseMessage.Headers.GetValues("Access-Control-Allow-Headers").Single());
IIS.FunctionalTests (12)
IISExpress.FunctionalTests (1)
Interop.FunctionalTests (8)
Microsoft.AspNetCore.Authentication.Test (37)
GoogleTests.cs (16)
402Assert.Equal("/error?FailureMessage=AccessDenied", transaction.Response.Headers.GetValues("Location").First());
438Assert.Equal("https://example.com/custom-denied-page?rurl=http%3A%2F%2Fwww.google.com%2F", transaction.Response.Headers.GetValues("Location").First());
481Assert.StartsWith("/error?FailureMessage=", transaction.Response.Headers.GetValues("Location").First());
520Assert.Equal("/error?FailureMessage=itfailed" + UrlEncoder.Default.Encode(";Description=whyitfailed;Uri=https://example.com/fail"), transaction.Response.Headers.GetValues("Location").First());
559Assert.Equal("/me", transaction.Response.Headers.GetValues("Location").First());
630transaction.Response.Headers.GetValues("Location").First());
682transaction.Response.Headers.GetValues("Location").First());
722Assert.Equal("/me", transaction.Response.Headers.GetValues("Location").First());
762Assert.Equal("/", transaction.Response.Headers.GetValues("Location").First());
810Assert.Equal("/foo", transaction.Response.Headers.GetValues("Location").First());
854transaction.Response.Headers.GetValues("Location").First());
883Assert.Equal("/me", transaction.Response.Headers.GetValues("Location").First());
927Assert.Equal("/me", transaction.Response.Headers.GetValues("Location").First());
971Assert.Equal("/me", transaction.Response.Headers.GetValues("Location").First());
1008Assert.Equal("/me", transaction.Response.Headers.GetValues("Location").First());
1082Assert.Equal("/challenge", transaction.Response.Headers.GetValues("Location").First());
Microsoft.AspNetCore.CookiePolicy.Test (1)
Microsoft.AspNetCore.Cors.Test (4)
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (1)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (2)
Microsoft.AspNetCore.HeaderPropagation.Tests (17)
Microsoft.AspNetCore.Http.Extensions.Tests (2)
Microsoft.AspNetCore.HttpsPolicy.Tests (4)
Microsoft.AspNetCore.Identity.InMemory.Test (1)
Microsoft.AspNetCore.Mvc.FunctionalTests (32)
Microsoft.AspNetCore.OutputCaching.Tests (4)
Microsoft.AspNetCore.ResponseCaching.Tests (4)
Microsoft.AspNetCore.ResponseCompression.Tests (3)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (29)
ResponseHeaderTests.cs (14)
152Assert.Equal(new string[] { "close" }, response.Headers.GetValues("Connection"));
178Assert.Equal(new string[] { "close" }, response.Headers.GetValues("Connection"));
207Assert.Equal(new string[] { "close" }, response.Headers.GetValues("Connection"));
237Assert.Equal(2, response.Headers.GetValues("Custom1").Count());
238Assert.Equal("value1a", response.Headers.GetValues("Custom1").First());
239Assert.Equal("value1b", response.Headers.GetValues("Custom1").Skip(1).First());
240Assert.Single(response.Headers.GetValues("Custom2"));
241Assert.Equal("value2a, value2b", response.Headers.GetValues("Custom2").First());
267Assert.Equal(2, response.Headers.GetValues("Custom1").Count());
268Assert.Equal("value1a", response.Headers.GetValues("Custom1").First());
269Assert.Equal("value1b", response.Headers.GetValues("Custom1").Skip(1).First());
270Assert.Single(response.Headers.GetValues("Custom2"));
271Assert.Equal("value2a, value2b", response.Headers.GetValues("Custom2").First());
297Assert.Equal(headers.GetValues(headerName), expectedValue);
ResponseTrailersTests.cs (10)
93Assert.Equal("TrailerValue", response.TrailingHeaders.GetValues("TrailerName").Single());
112Assert.Equal("Trailer Value", response.TrailingHeaders.GetValues("TrailerName").Single());
140Assert.Equal(body.Length.ToString(CultureInfo.InvariantCulture), response.Content.Headers.GetValues(HeaderNames.ContentLength).Single());
168Assert.Equal("Trailer Value", response.TrailingHeaders.GetValues("TrailerName").Single());
194Assert.Equal("Trailer Value", response.TrailingHeaders.GetValues("TrailerName").Single());
239Assert.Equal("TrailerValue", response.TrailingHeaders.GetValues("TrailerName").Single());
262Assert.Equal("Trailer Value", response.TrailingHeaders.GetValues("TrailerName").Single());
283Assert.Equal(new[] { "TrailerValue0", "TrailerValue1" }, response.TrailingHeaders.GetValues("TrailerName"));
311Assert.Equal(values, response.TrailingHeaders.GetValues("ThisIsALongerHeaderNameThatStillWorksForReals"));
336Assert.Equal(headers.GetValues(headerName), expectedValue);
Microsoft.AspNetCore.Session.Tests (5)
Microsoft.AspNetCore.SignalR.Client.Tests (1)
Microsoft.AspNetCore.StaticFiles.Tests (2)
Microsoft.AspNetCore.TestHost.Tests (10)
Microsoft.AspNetCore.WebSockets.Tests (2)
Microsoft.Extensions.ML (2)
Sockets.FunctionalTests (1)