Base:
43 references to ToString
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpResponseMessageHelper.cs (1)
358_httpResponseMessage.Headers.WwwAuthenticate.ToString());
IIS.LongTests (1)
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (1)
559await deploymentResult.HttpClient.RetryRequestAsync("/HelloWorld", r => r.Headers.Server.ToString().StartsWith("Microsoft", StringComparison.Ordinal));
IIS.NewHandler.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (1)
559await deploymentResult.HttpClient.RetryRequestAsync("/HelloWorld", r => r.Headers.Server.ToString().StartsWith("Microsoft", StringComparison.Ordinal));
IIS.NewShim.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (1)
559await deploymentResult.HttpClient.RetryRequestAsync("/HelloWorld", r => r.Headers.Server.ToString().StartsWith("Microsoft", StringComparison.Ordinal));
IISExpress.FunctionalTests (9)
InProcess\AuthenticationTests.cs (4)
40Assert.Contains("NTLM", response.Headers.WwwAuthenticate.ToString()); 41Assert.Contains("Negotiate", response.Headers.WwwAuthenticate.ToString()); 46Assert.Contains("NTLM", response.Headers.WwwAuthenticate.ToString()); 48Assert.Contains("Negotiate", response.Headers.WwwAuthenticate.ToString());
OutOfProcess\NtlmAuthentationTest.cs (4)
59Assert.Contains("NTLM", response.Headers.WwwAuthenticate.ToString()); 60Assert.Contains("Negotiate", response.Headers.WwwAuthenticate.ToString()); 64Assert.Contains("NTLM", response.Headers.WwwAuthenticate.ToString()); 66Assert.Contains("Negotiate", response.Headers.WwwAuthenticate.ToString());
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (1)
559await deploymentResult.HttpClient.RetryRequestAsync("/HelloWorld", r => r.Headers.Server.ToString().StartsWith("Microsoft", StringComparison.Ordinal));
Microsoft.AspNetCore.Authentication.Test (2)
CookieTests.cs (2)
148Assert.Equal("no-cache", transaction.Response.Headers.Pragma.ToString()); 281Assert.Equal("no-cache", transaction.Response.Headers.Pragma.ToString());
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (2)
HealthCheckMiddlewareTests.cs (2)
433Assert.Equal("no-cache", response.Headers.Pragma.ToString()); 468Assert.Empty(response.Headers.Pragma.ToString());
Microsoft.AspNetCore.FunctionalTests (3)
WebHostFunctionalTests.cs (3)
45Assert.Equal("Kestrel", response.Headers.Server.ToString()); 70Assert.Equal("Kestrel", response.Headers.Server.ToString()); 171Assert.Equal("Microsoft-IIS/10.0", response.Headers.Server.ToString());
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (14)
AuthenticationTests.cs (3)
58Assert.Equal(authType.ToString(), response.Headers.WwwAuthenticate.ToString(), StringComparer.OrdinalIgnoreCase); 80Assert.Equal(authType.ToString(), response.Headers.WwwAuthenticate.ToString(), StringComparer.OrdinalIgnoreCase); 106Assert.Equal("Negotiate, NTLM, basic", response.Headers.WwwAuthenticate.ToString(), StringComparer.OrdinalIgnoreCase);
Listener\AuthenticationOnExistingQueueTests.cs (3)
88Assert.Equal(authType.ToString(), response.Headers.WwwAuthenticate.ToString(), StringComparer.OrdinalIgnoreCase); 112Assert.Equal(authType.ToString(), response.Headers.WwwAuthenticate.ToString(), StringComparer.OrdinalIgnoreCase); 137Assert.Equal("Negotiate, NTLM, basic", response.Headers.WwwAuthenticate.ToString(), StringComparer.OrdinalIgnoreCase);
Listener\ResponseHeaderTests.cs (7)
43Assert.Equal("Microsoft-HTTPAPI/2.0", response.Headers.Server.ToString()); 66Assert.Equal("Microsoft-HTTPAPI/2.0", response.Headers.Server.ToString()); 88Assert.Equal("Microsoft-HTTPAPI/2.0", response.Headers.Server.ToString()); 117Assert.Equal("Microsoft-HTTPAPI/2.0", response.Headers.Server.ToString()); 146Assert.Equal("Microsoft-HTTPAPI/2.0", response.Headers.Server.ToString()); 175Assert.Equal("Microsoft-HTTPAPI/2.0", response.Headers.Server.ToString()); 198Assert.Equal("Microsoft-HTTPAPI/2.0", response.Headers.Server.ToString());
ResponseHeaderTests.cs (1)
34Assert.Equal("Microsoft-HTTPAPI/2.0", response.Headers.Server.ToString());
Microsoft.AspNetCore.SignalR.Client.Tests (1)
HttpConnectionTests.Transport.cs (1)
119var userAgentHeader = request.Headers.UserAgent.ToString();
Negotiate.Client (3)
Controllers\AuthTestController.cs (3)
64var authHeader = result.Headers.WwwAuthenticate.ToString(); 212var authHeader = result.Headers.WwwAuthenticate.ToString(); 249var authHeader = result.Headers.WwwAuthenticate.ToString();
ServerComparison.FunctionalTests (4)
HelloWorldTest.cs (1)
84var serverHeader = response.Headers.Server.ToString();
NtlmAuthenticationTest.cs (3)
72Assert.DoesNotContain("NTLM", response.Headers.WwwAuthenticate.ToString()); 76Assert.Contains("NTLM", response.Headers.WwwAuthenticate.ToString()); 78Assert.Contains("Negotiate", response.Headers.WwwAuthenticate.ToString());
System.ServiceModel.Http (1)
System\ServiceModel\Channels\HttpResponseMessageHelper.cs (1)
383_httpResponseMessage.Headers.WwwAuthenticate.ToString());