1363 references to Contains
Aspire.Cli.Tests (1)
Aspire.Components.Common.TestUtilities (2)
Aspire.Dashboard.Components.Tests (1)
Aspire.Dashboard.Tests (3)
Aspire.EndToEnd.Tests (4)
Aspire.Hosting.Azure (1)
Aspire.Hosting.Azure.Tests (13)
Aspire.Hosting.Containers.Tests (1)
Aspire.Hosting.MySql.Tests (2)
Aspire.Hosting.Testing.Tests (3)
Aspire.Hosting.Tests (62)
Dcp\DcpExecutorTests.cs (14)
706Assert.Contains(watchLogsResults1, l => l.Content.Contains("First"));
707Assert.Contains(watchLogsResults1, l => l.Content.Contains("Second"));
708Assert.Contains(watchLogsResults1, l => l.Content.Contains("Third"));
709Assert.Contains(watchLogsResults1, l => l.Content.Contains("Forth"));
710Assert.Contains(watchLogsResults1, l => l.Content.Contains("Fifth"));
711Assert.Contains(watchLogsResults1, l => l.Content.Contains("Sixth"));
712Assert.Contains(watchLogsResults1, l => l.Content.Contains("Seventh"));
718Assert.Contains(watchLogsResults2, l => l.Content.Contains("First"));
719Assert.Contains(watchLogsResults2, l => l.Content.Contains("Second"));
720Assert.Contains(watchLogsResults2, l => l.Content.Contains("Third"));
721Assert.Contains(watchLogsResults2, l => l.Content.Contains("Forth"));
722Assert.Contains(watchLogsResults2, l => l.Content.Contains("Fifth"));
723Assert.Contains(watchLogsResults2, l => l.Content.Contains("Sixth"));
724Assert.Contains(watchLogsResults2, l => l.Content.Contains("Seventh"));
Publishing\ResourceContainerImageBuilderTests.cs (22)
43Assert.Contains(logs, log => log.Message.Contains("Building container image for resource servicea"));
44Assert.Contains(logs, log => log.Message.Contains(".NET CLI completed with exit code: 0"));
73Assert.Contains(logs, log => log.Message.Contains("Building container image for resource container"));
76log.Message.Contains("Failed to build container image"));
111Assert.Contains(logs, log => log.Message.Contains("Building container image for resource servicea"));
112Assert.Contains(logs, log => log.Message.Contains(".NET CLI completed with exit code: 0"));
116log.Message.Contains("Failed to build container image"));
149Assert.Contains(logs, log => log.Message.Contains("Building container image for resource servicea"));
150Assert.Contains(logs, log => log.Message.Contains(".NET CLI completed with exit code: 0"));
183Assert.Contains(logs, log => log.Message.Contains("Building container image for resource servicea"));
184Assert.Contains(logs, log => log.Message.Contains(".NET CLI completed with exit code: 0"));
220Assert.Contains(logs, log => log.Message.Contains("Building container image for resource container"));
223log.Message.Contains("Failed to build container image"));
260Assert.Contains(logs, log => log.Message.Contains("Building container image for resource container"));
264log.Message.Contains("Failed to build container image"));
299Assert.Contains(logs, log => log.Message.Contains("Building container image for resource servicea"));
300Assert.Contains(logs, log => log.Message.Contains(".NET CLI completed with exit code: 0"));
335Assert.Contains(logs, log => log.Message.Contains("Building container image for resource servicea"));
336Assert.Contains(logs, log => log.Message.Contains(".NET CLI completed with exit code: 0"));
366Assert.Contains(logs, log => log.Message.Contains("Building container image for resource servicea"));
367Assert.Contains(logs, log => log.Message.Contains(".NET CLI completed with exit code: 0"));
474Assert.Contains(logs, log => log.Message.Contains("Container runtime is not running or is unhealthy. Cannot build container images."));
Aspire.Playground.Tests (4)
Aspire.Templates.Tests (5)
AutobahnTestApp (1)
BasicTestApp (2)
BoundTreeGenerator (2)
Client.ExpectedExceptions.IntegrationTests (5)
ExpectedExceptionTests.4.1.0.cs (5)
51Assert.True(exception.Message.Contains(nonExistentHost), string.Format("Expected exception message to contain: '{0}'\nThe exception message was: {1}", nonExistentHost, exception.Message));
184Assert.True(exception.Message.Contains(notFoundUrl), string.Format("Expected exception message to contain: '{0}'\nThe exception message was:{1}", notFoundUrl, exception.Message));
222Assert.True(exception.Message.Contains(protocolExceptionUri), string.Format("Expected exception message to contain: '{0}'\nThe exception was: '{1}'", protocolExceptionUri, exception.Message));
408Assert.True(exception.Message.Contains(Endpoints.Tcp_RevokedServerCertResource_HostName),
455Assert.True(exception.Message.Contains(Endpoints.Tcp_RevokedServerCertResource_HostName),
CodeGenerator (7)
CSharpSyntaxGenerator (1)
dotnet-openapi (1)
dotnet-svcutil-lib (28)
dotnet-svcutil-lib.Tests (6)
Extensibility.WebSockets.IntegrationTests (5)
GenerateDocumentationAndConfigFiles (8)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (1)
168if (str.Contains(","))
GetDocument.Insider (1)
HelixTestRunner (1)
Http3SampleApp (2)
HttpStress (2)
IdeCoreBenchmarks (1)
IIS.FunctionalTests (13)
IIS.LongTests (6)
IIS.NewHandler.FunctionalTests (6)
IIS.NewShim.FunctionalTests (6)
IIS.ShadowCopy.Tests (1)
IISExpress.FunctionalTests (19)
ILLink.CodeFixProvider (1)
Infrastructure.Common (2)
Infrastructure.IntegrationTests (4)
InMemory.FunctionalTests (21)
installer.tasks (1)
InteractiveHost.UnitTests (4)
Interop.FunctionalTests (13)
InteropClient (4)
InteropTests (4)
IOperationGenerator (1)
Metrics (8)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (1)
168if (str.Contains(","))
Metrics.Legacy (8)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (1)
168if (str.Contains(","))
Microsoft.Analyzers.Local (1)
Microsoft.AspNetCore.App.Analyzers.Test (1)
Microsoft.AspNetCore.App.CodeFixes (1)
Microsoft.AspNetCore.App.UnitTests (1)
Microsoft.AspNetCore.Authentication.Test (4)
Microsoft.AspNetCore.Components.Analyzers.Tests (2)
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (2)
Microsoft.AspNetCore.Components.Tests (1)
Microsoft.AspNetCore.CookiePolicy.Test (1)
Microsoft.AspNetCore.Cors (1)
Microsoft.AspNetCore.DataProtection (1)
Microsoft.AspNetCore.DataProtection.Tests (2)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (2)
Microsoft.AspNetCore.Hosting.FunctionalTests (1)
Microsoft.AspNetCore.Http.Connections.Client (1)
Microsoft.AspNetCore.Http.Tests (10)
ResponseCookiesTest.cs (9)
140Assert.Single(deletedCookies, cookie => cookie.StartsWith("key1", StringComparison.InvariantCulture) && cookie.Contains("path=/path1/"));
141Assert.Single(deletedCookies, cookie => cookie.StartsWith("key1", StringComparison.InvariantCulture) && cookie.Contains("path=/path2/"));
142Assert.Single(deletedCookies, cookie => cookie.StartsWith("key2", StringComparison.InvariantCulture) && cookie.Contains("path=/path1/") && cookie.Contains("domain=localhost"));
143Assert.Single(deletedCookies, cookie => cookie.StartsWith("key2", StringComparison.InvariantCulture) && cookie.Contains("path=/path2/") && cookie.Contains("domain=localhost"));
170Assert.Single(deletedCookies, cookie => cookie.StartsWith("key1", StringComparison.InvariantCulture) && cookie.Contains("path=/path1/"));
171Assert.Single(deletedCookies, cookie => cookie.StartsWith("key2", StringComparison.InvariantCulture) && cookie.Contains("path=/path1/") && cookie.Contains("domain=localhost"));
Microsoft.AspNetCore.HttpLogging.Tests (193)
HttpLoggingMiddlewareTests.cs (193)
135Assert.Contains(TestSink.Writes, w => w.Message.Contains("Protocol: HTTP/1.0"));
136Assert.Contains(TestSink.Writes, w => w.Message.Contains("Method: GET"));
137Assert.Contains(TestSink.Writes, w => w.Message.Contains("Scheme: http"));
138Assert.Contains(TestSink.Writes, w => w.Message.Contains("Path: /foo"));
139Assert.Contains(TestSink.Writes, w => w.Message.Contains("PathBase: /foo"));
140Assert.Contains(TestSink.Writes, w => w.Message.Contains("Connection: keep-alive"));
141Assert.DoesNotContain(TestSink.Writes, w => w.Message.Contains("Body: test"));
167Assert.Contains(TestSink.Writes, w => w.Message.Contains("Protocol: HTTP/1.0"));
168Assert.Contains(TestSink.Writes, w => w.Message.Contains("Method: GET"));
169Assert.Contains(TestSink.Writes, w => w.Message.Contains("Scheme: http"));
170Assert.Contains(TestSink.Writes, w => w.Message.Contains("Path: /foo"));
171Assert.Contains(TestSink.Writes, w => w.Message.Contains("PathBase: /foo"));
172Assert.Contains(TestSink.Writes, w => w.Message.Contains("Connection: keep-alive"));
173Assert.Contains(TestSink.Writes, w => w.Message.Contains("Body: test"));
199Assert.Contains(TestSink.Writes, w => w.Message.Contains("Protocol: HTTP/1.0"));
200Assert.Contains(TestSink.Writes, w => w.Message.Contains("Method: GET"));
201Assert.Contains(TestSink.Writes, w => w.Message.Contains("Scheme: http"));
202Assert.Contains(TestSink.Writes, w => w.Message.Contains("Path: /foo"));
203Assert.Contains(TestSink.Writes, w => w.Message.Contains("PathBase: /foo"));
204Assert.DoesNotContain(TestSink.Writes, w => w.Message.Contains("Connection: keep-alive"));
205Assert.DoesNotContain(TestSink.Writes, w => w.Message.Contains("Body: test"));
231Assert.DoesNotContain(TestSink.Writes, w => w.Message.Contains("Protocol: HTTP/1.0"));
232Assert.DoesNotContain(TestSink.Writes, w => w.Message.Contains("Method: GET"));
233Assert.DoesNotContain(TestSink.Writes, w => w.Message.Contains("Scheme: http"));
234Assert.DoesNotContain(TestSink.Writes, w => w.Message.Contains("Path: /foo"));
235Assert.DoesNotContain(TestSink.Writes, w => w.Message.Contains("PathBase: /foo"));
236Assert.DoesNotContain(TestSink.Writes, w => w.Message.Contains("QueryString: ?foo"));
237Assert.Contains(TestSink.Writes, w => w.Message.Contains("Connection: keep-alive"));
238Assert.DoesNotContain(TestSink.Writes, w => w.Message.Contains("Body: test"));
263Assert.Contains(TestSink.Writes, w => w.Message.Contains("foo: [Redacted]"));
264Assert.DoesNotContain(TestSink.Writes, w => w.Message.Contains("foo: bar"));
283Assert.Contains(TestSink.Writes, w => w.Message.Contains("foo: bar"));
284Assert.DoesNotContain(TestSink.Writes, w => w.Message.Contains("foo: [Redacted]"));
285Assert.Contains(TestSink.Writes, w => w.Message.Contains("Connection: [Redacted]"));
286Assert.DoesNotContain(TestSink.Writes, w => w.Message.Contains("Connection: keep-alive"));
303Assert.Contains(TestSink.Writes, w => w.Message.Contains("RequestBody: [Not consumed by app]"));
334Assert.Contains(TestSink.Writes, w => w.Message.Contains(expected));
362Assert.Contains(TestSink.Writes, w => w.Message.Contains(expected));
390Assert.Contains(TestSink.Writes, w => w.Message.Contains(expected));
430Assert.Contains(TestSink.Writes, w => w.Message.Contains(expected));
592Assert.Contains(TestSink.Writes, w => w.Message.Contains(expected));
632Assert.DoesNotContain(TestSink.Writes, w => w.Message.Contains(expected));
633Assert.Contains(TestSink.Writes, w => w.Message.Contains("Unrecognized Content-Type for request body."));
671Assert.Contains(TestSink.Writes, w => w.Message.Contains(expected));
709Assert.Contains(TestSink.Writes, w => w.Message.Contains("RequestBody:"));
710Assert.Contains(TestSink.Writes, w => w.Message.Contains(expected));
748Assert.DoesNotContain(TestSink.Writes, w => w.Message.Contains("RequestBody:"));
784Assert.Contains(TestSink.Writes, w => w.Message.Contains("Protocol: HTTP/1.0"));
785Assert.Contains(TestSink.Writes, w => w.Message.Contains("Method: GET"));
786Assert.Contains(TestSink.Writes, w => w.Message.Contains("Scheme: http"));
787Assert.Contains(TestSink.Writes, w => w.Message.Contains("Path: /foo"));
788Assert.Contains(TestSink.Writes, w => w.Message.Contains("PathBase: /foo"));
789Assert.Contains(TestSink.Writes, w => w.Message.Contains("Connection: keep-alive"));
790Assert.Contains(TestSink.Writes, w => w.Message.Contains("RequestBody: test"));
791Assert.Contains(TestSink.Writes, w => w.Message.Contains("StatusCode: 418"));
792Assert.Contains(TestSink.Writes, w => w.Message.Contains("Content-Type: text/plain"));
793Assert.Contains(TestSink.Writes, w => w.Message.Contains("Body: Hello World"));
811Assert.Contains(TestSink.Writes, w => w.Message.Contains("Protocol: HTTP/1.0"));
812Assert.Contains(TestSink.Writes, w => w.Message.Contains("Method: GET"));
813Assert.Contains(TestSink.Writes, w => w.Message.Contains("Scheme: http"));
814Assert.Contains(TestSink.Writes, w => w.Message.Contains("Path: /foo"));
815Assert.Contains(TestSink.Writes, w => w.Message.Contains("PathBase: /foo"));
816Assert.Contains(TestSink.Writes, w => w.Message.Contains("Connection: keep-alive"));
817Assert.Contains(TestSink.Writes, w => w.Message.Contains("RequestBody: test"));
818Assert.Contains(TestSink.Writes, w => w.Message.Contains("StatusCode: 418"));
819Assert.Contains(TestSink.Writes, w => w.Message.Contains("Content-Type: text/plain"));
820Assert.Contains(TestSink.Writes, w => w.Message.Contains("Body: Hello World"));
821Assert.Contains(TestSink.Writes, w => w.Message.Contains("foo: bar"));
840Assert.Contains(TestSink.Writes, w => w.Message.Contains("Protocol: HTTP/1.0"));
841Assert.Contains(TestSink.Writes, w => w.Message.Contains("Method: GET"));
842Assert.Contains(TestSink.Writes, w => w.Message.Contains("Scheme: http"));
843Assert.DoesNotContain(TestSink.Writes, w => w.Message.Contains("Path: /foo"));
844Assert.DoesNotContain(TestSink.Writes, w => w.Message.Contains("PathBase: /foo"));
845Assert.Contains(TestSink.Writes, w => w.Message.Contains("Connection: keep-alive"));
846Assert.Contains(TestSink.Writes, w => w.Message.Contains("RequestBody: test"));
847Assert.Contains(TestSink.Writes, w => w.Message.Contains("StatusCode: 418"));
848Assert.Contains(TestSink.Writes, w => w.Message.Contains("Content-Type: text/plain"));
849Assert.Contains(TestSink.Writes, w => w.Message.Contains("Body: Hello World"));
850Assert.Contains(TestSink.Writes, w => w.Message.Contains("Path: ReplacedPath"));
868Assert.Contains(TestSink.Writes, w => w.Message.Contains("StatusCode: 200"));
869Assert.Contains(TestSink.Writes, w => w.Message.Contains("Transfer-Encoding: test"));
870Assert.DoesNotContain(TestSink.Writes, w => w.Message.Contains("Body: test"));
892Assert.Contains(TestSink.Writes, w => w.Message.Contains("StatusCode: 200"));
893Assert.Contains(TestSink.Writes, w => w.Message.Contains("Transfer-Encoding: test"));
894Assert.Contains(TestSink.Writes, w => w.Message.Contains("Body: test"));
939Assert.Contains(TestSink.Writes, w => w.Message.Contains("StatusCode: 200"));
940Assert.Contains(TestSink.Writes, w => w.Message.Contains("Transfer-Encoding: test"));
964Assert.Contains(TestSink.Writes, w => w.Message.Contains("StatusCode: 200"));
965Assert.Contains(TestSink.Writes, w => w.Message.Contains("Transfer-Encoding: test"));
966Assert.Contains(TestSink.Writes, w => w.Message.Contains("Body: test"));
988Assert.Contains(TestSink.Writes, w => w.Message.Contains("StatusCode: 200"));
989Assert.DoesNotContain(TestSink.Writes, w => w.Message.Contains("Server: Kestrel"));
990Assert.DoesNotContain(TestSink.Writes, w => w.Message.Contains("Body: test"));
1012Assert.DoesNotContain(TestSink.Writes, w => w.Message.Contains("StatusCode: 200"));
1013Assert.Contains(TestSink.Writes, w => w.Message.Contains("Transfer-Encoding: test"));
1014Assert.DoesNotContain(TestSink.Writes, w => w.Message.Contains("Body: test"));
1034Assert.Contains(TestSink.Writes, w => w.Message.Contains("Test: [Redacted]"));
1057Assert.Contains(TestSink.Writes, w => w.Message.Contains("Test: Kestrel"));
1058Assert.Contains(TestSink.Writes, w => w.Message.Contains("Server: [Redacted]"));
1079Assert.Contains(TestSink.Writes, w => w.Message.Contains(expected));
1121Assert.Contains(TestSink.Writes, w => w.Message.Contains(expected));
1151Assert.Contains(TestSink.Writes, w => w.Message.Contains("StatusCode: 200"));
1152Assert.Contains(TestSink.Writes, w => w.Message.Contains("Transfer-Encoding: test"));
1153Assert.DoesNotContain(TestSink.Writes, w => w.Message.Contains("Body: test"));
1159Assert.Contains(TestSink.Writes, w => w.Message.Contains("Body: test"));
1189Assert.Contains(TestSink.Writes, w => w.Message.Contains("StatusCode: 200"));
1190Assert.Contains(TestSink.Writes, w => w.Message.Contains("Transfer-Encoding: test"));
1191Assert.DoesNotContain(TestSink.Writes, w => w.Message.Contains("Body: test"));
1221Assert.Contains(TestSink.Writes, w => w.Message.Contains(expected));
1242Assert.Contains(TestSink.Writes, w => w.Message.Contains("Unrecognized Content-Type for response body."));
1257Assert.Contains(TestSink.Writes, w => w.Message.Contains("No Content-Type header for request body."));
1296Assert.Contains(TestSink.Writes, w => w.Message.Contains("StatusCode: 101"));
1400Assert.Contains(TestSink.Writes, w => w.Message.Contains("Connection: Upgrade"));
1443Assert.DoesNotContain(TestSink.Writes, w => w.Message.Contains("StatusCode: 101"));
1444Assert.DoesNotContain(TestSink.Writes, w => w.Message.Contains("Connection: Upgrade"));
1477Assert.Contains(TestSink.Writes, w => w.Message.Contains("StatusCode: 200"));
1478Assert.Contains(TestSink.Writes, w => w.Message.Contains("Transfer-Encoding: test"));
1479Assert.Contains(TestSink.Writes, w => w.Message.Contains("Content-Type: text/plain"));
1756Assert.Contains(TestSink.Writes, w => w.Message.Contains("Protocol: HTTP/1.0"));
1757Assert.Contains(TestSink.Writes, w => w.Message.Contains("Method: GET"));
1758Assert.Contains(TestSink.Writes, w => w.Message.Contains("Scheme: http"));
1759Assert.Contains(TestSink.Writes, w => w.Message.Contains("Path: /foo"));
1760Assert.Contains(TestSink.Writes, w => w.Message.Contains("PathBase: /foo"));
1761Assert.Contains(TestSink.Writes, w => w.Message.Contains("Connection: keep-alive"));
1762Assert.Contains(TestSink.Writes, w => w.Message.Contains("RequestBody: test"));
1764Assert.DoesNotContain(TestSink.Writes, w => w.Message.Contains("StatusCode: 418"));
1765Assert.DoesNotContain(TestSink.Writes, w => w.Message.Contains("Content-Type: text/plain; p=response"));
1766Assert.DoesNotContain(TestSink.Writes, w => w.Message.Contains("Body: Hello World"));
1784Assert.DoesNotContain(TestSink.Writes, w => w.Message.Contains("Protocol: HTTP/1.0"));
1785Assert.DoesNotContain(TestSink.Writes, w => w.Message.Contains("Method: GET"));
1786Assert.DoesNotContain(TestSink.Writes, w => w.Message.Contains("Scheme: http"));
1787Assert.DoesNotContain(TestSink.Writes, w => w.Message.Contains("Path: /foo"));
1788Assert.DoesNotContain(TestSink.Writes, w => w.Message.Contains("PathBase: /foo"));
1789Assert.DoesNotContain(TestSink.Writes, w => w.Message.Contains("Connection: keep-alive"));
1790Assert.DoesNotContain(TestSink.Writes, w => w.Message.Contains("RequestBody: test"));
1792Assert.Contains(TestSink.Writes, w => w.Message.Contains("StatusCode: 418"));
1793Assert.Contains(TestSink.Writes, w => w.Message.Contains("Content-Type: text/plain"));
1794Assert.Contains(TestSink.Writes, w => w.Message.Contains("Body: Hello World"));
1812Assert.Contains(TestSink.Writes, w => w.Message.Contains("Protocol: HTTP/1.0"));
1813Assert.Contains(TestSink.Writes, w => w.Message.Contains("Method: GET"));
1814Assert.Contains(TestSink.Writes, w => w.Message.Contains("Scheme: http"));
1815Assert.Contains(TestSink.Writes, w => w.Message.Contains("Path: /foo"));
1816Assert.Contains(TestSink.Writes, w => w.Message.Contains("PathBase: /foo"));
1817Assert.Contains(TestSink.Writes, w => w.Message.Contains("Connection: keep-alive"));
1818Assert.Contains(TestSink.Writes, w => w.Message.Contains("RequestBody: test"));
1819Assert.Contains(TestSink.Writes, w => w.Message.Contains("StatusCode: 418"));
1820Assert.Contains(TestSink.Writes, w => w.Message.Contains("Content-Type: text/plain"));
1821Assert.Contains(TestSink.Writes, w => w.Message.Contains("Body: Hello World"));
1822Assert.Contains(TestSink.Writes, w => w.Message.Contains("foo: bar"));
1841Assert.Contains(TestSink.Writes, w => w.Message.Contains("Protocol: HTTP/1.0"));
1842Assert.Contains(TestSink.Writes, w => w.Message.Contains("Method: GET"));
1843Assert.Contains(TestSink.Writes, w => w.Message.Contains("Scheme: http"));
1844Assert.Contains(TestSink.Writes, w => w.Message.Contains("Path: /foo"));
1845Assert.Contains(TestSink.Writes, w => w.Message.Contains("PathBase: /foo"));
1846Assert.Contains(TestSink.Writes, w => w.Message.Contains("Connection: keep-alive"));
1847Assert.Contains(TestSink.Writes, w => w.Message.Contains("RequestBody: test"));
1849Assert.DoesNotContain(TestSink.Writes, w => w.Message.Contains("StatusCode: 418"));
1850Assert.Contains(TestSink.Writes, w => w.Message.Contains("Content-Type: text/plain"));
1851Assert.Contains(TestSink.Writes, w => w.Message.Contains("Body: Hello World"));
1852Assert.Contains(TestSink.Writes, w => w.Message.Contains("StatusCode: 412"));
1865var filteredLogs = TestSink.Writes.Where(w => w.LoggerName.Contains("HttpLogging"));
1866Assert.DoesNotContain(filteredLogs, w => w.Message.Contains("Request"));
1867Assert.Contains(filteredLogs, w => w.Message.Contains("StatusCode: 200"));
1880var filteredLogs = TestSink.Writes.Where(w => w.LoggerName.Contains("HttpLogging"));
1881Assert.Contains(filteredLogs, w => w.Message.Contains("Request"));
1882Assert.Contains(filteredLogs, w => w.Message.Contains("StatusCode: 200"));
1895var filteredLogs = TestSink.Writes.Where(w => w.LoggerName.Contains("HttpLogging"));
1896Assert.DoesNotContain(filteredLogs, w => w.Message.Contains("Scheme"));
1897Assert.DoesNotContain(filteredLogs, w => w.Message.Contains("StatusCode: 200"));
1912var filteredLogs = TestSink.Writes.Where(w => w.LoggerName.Contains("HttpLogging"));
1938var filteredLogs = TestSink.Writes.Where(w => w.LoggerName.Contains("HttpLogging"));
1939Assert.Contains(filteredLogs, w => w.Message.Contains("Request"));
1940Assert.DoesNotContain(filteredLogs, w => w.Message.Contains("Accept"));
1941Assert.Contains(filteredLogs, w => w.Message.Contains("StatusCode: 200"));
1942Assert.DoesNotContain(filteredLogs, w => w.Message.Contains("Content-Type: text/plain"));
1955var filteredLogs = TestSink.Writes.Where(w => w.LoggerName.Contains("HttpLogging"));
1956Assert.DoesNotContain(filteredLogs, w => w.Message.Contains("Request"));
1957Assert.Contains(filteredLogs, w => w.Message.Contains("StatusCode: 200"));
1970var filteredLogs = TestSink.Writes.Where(w => w.LoggerName.Contains("HttpLogging"));
1971Assert.Contains(filteredLogs, w => w.Message.Contains("Request"));
1972Assert.Contains(filteredLogs, w => w.Message.Contains("StatusCode: 200"));
1985var filteredLogs = TestSink.Writes.Where(w => w.LoggerName.Contains("HttpLogging"));
1986Assert.DoesNotContain(filteredLogs, w => w.Message.Contains("Scheme"));
1987Assert.DoesNotContain(filteredLogs, w => w.Message.Contains("StatusCode: 200"));
2002var filteredLogs = TestSink.Writes.Where(w => w.LoggerName.Contains("HttpLogging"));
2028var filteredLogs = TestSink.Writes.Where(w => w.LoggerName.Contains("HttpLogging"));
2029Assert.Contains(filteredLogs, w => w.Message.Contains("Request"));
2030Assert.DoesNotContain(filteredLogs, w => w.Message.Contains("Accept"));
2031Assert.Contains(filteredLogs, w => w.Message.Contains("StatusCode: 200"));
2032Assert.DoesNotContain(filteredLogs, w => w.Message.Contains("Content-Type: text/plain"));
2074var filteredLogs = TestSink.Writes.Where(w => w.LoggerName.Contains("HttpLogging"));
2076var requestLog = Assert.Single(filteredLogs, w => w.Message.Contains("Request:"));
2080var responseLog = Assert.Single(filteredLogs, w => w.Message.Contains("Response:"));
Microsoft.AspNetCore.Identity.Test (1)
Microsoft.AspNetCore.InternalTesting (3)
Microsoft.AspNetCore.JsonPatch (1)
Microsoft.AspNetCore.JsonPatch.SystemTextJson (1)
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
Microsoft.AspNetCore.Mvc.RazorPages (1)
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Microsoft.AspNetCore.Mvc.Test (2)
Microsoft.AspNetCore.Mvc.ViewFeatures (5)
Microsoft.AspNetCore.ResponseCompression.Tests (2)
Microsoft.AspNetCore.Server.IntegrationTesting (3)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (10)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (6)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (23)
HubConnectionTests.cs (23)
1793Assert.Contains(TestSink.Writes, context => context.Message.Contains("Request starting HTTP/2 POST"));
1794Assert.Contains(TestSink.Writes, context => context.Message.Contains("Request starting HTTP/2 CONNECT"));
1795Assert.Contains(TestSink.Writes, context => context.Message.Contains("Request finished HTTP/2 CONNECT"));
1852Assert.Contains(TestSink.Writes, context => context.Message.Contains("Request starting HTTP/1.1 POST"));
1853Assert.Contains(TestSink.Writes, context => context.Message.Contains("Request starting HTTP/1.1 GET"));
1854Assert.Contains(TestSink.Writes, context => context.Message.Contains("Request finished HTTP/1.1 GET"));
1962Assert.Contains(TestSink.Writes, context => context.Message.Contains("Request starting HTTP/2 POST"));
1963Assert.Contains(TestSink.Writes, context => context.Message.Contains("Request starting HTTP/2 CONNECT"));
1964Assert.Contains(TestSink.Writes, context => context.Message.Contains("Request finished HTTP/2 CONNECT"));
2404Assert.Contains(TestSink.Writes, context => context.Message.Contains("Request starting HTTP/2 POST") && context.Message.Contains("/negotiate?"));
2407Assert.Contains(TestSink.Writes, context => context.Message.Contains("Request starting HTTP/2 POST") && context.Message.Contains("?id="));
2408Assert.Contains(TestSink.Writes, context => context.Message.Contains("Request finished HTTP/2 GET") && context.Message.Contains("?id="));
2411Assert.Contains(TestSink.Writes, context => context.Message.Contains("Request finished HTTP/2 DELETE") && context.Message.Contains("?id="));
2500Assert.Contains(TestSink.Writes, context => context.Message.Contains("Request starting HTTP/2 POST") && context.Message.Contains("/negotiate?"));
2503Assert.Contains(TestSink.Writes, context => context.Message.Contains("Request starting HTTP/2 POST") && context.Message.Contains("?id="));
2504Assert.Contains(TestSink.Writes, context => context.Message.Contains("Request finished HTTP/2 GET") && context.Message.Contains("?id="));
Microsoft.AspNetCore.SignalR.Client.Tests (7)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
Microsoft.AspNetCore.StaticFiles.Tests (2)
Microsoft.AspNetCore.Tests (3)
Microsoft.Cci.Extensions (2)
Microsoft.CodeAnalysis (5)
Microsoft.CodeAnalysis.Analyzers (11)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (1)
168if (str.Contains(","))
Microsoft.CodeAnalysis.AnalyzerUtilities (8)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (1)
168if (str.Contains(","))
Microsoft.CodeAnalysis.BannedApiAnalyzers (8)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (1)
168if (str.Contains(","))
Microsoft.CodeAnalysis.CodeStyle (9)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (1)
168if (str.Contains(","))
Microsoft.CodeAnalysis.CSharp (2)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (19)
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (14)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (5)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (11)
Microsoft.CodeAnalysis.CSharp.Features (4)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (14)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (21)
Symbols\StaticAbstractMembersInInterfacesTests.cs (17)
16823Assert.Equal(2, compilation1.GlobalNamespace.GetTypeMember("C1").GetMembers().Where(m => m.Name.Contains("M01")).Count());
16905Assert.Equal(2, compilation1.GlobalNamespace.GetTypeMember("C1").GetMembers().Where(m => m.Name.Contains("M01")).Count());
16987Assert.Equal(2, compilation1.GlobalNamespace.GetTypeMember("C1").GetMembers().Where(m => m.Name.Contains("M01")).Count());
17057Assert.Equal(2, compilation1.GlobalNamespace.GetTypeMember("C1").GetMembers().Where(m => m.Name.Contains("M01")).Count());
17132Assert.Equal(2, compilation1.GlobalNamespace.GetTypeMember("C1").GetMembers().Where(m => m.Name.Contains("M01")).Count());
17219Assert.Equal(2, compilation1.GlobalNamespace.GetTypeMember("C1").GetMembers().Where(m => m.Name.Contains("M01")).Count());
17309Assert.Equal(2, compilation1.GlobalNamespace.GetTypeMember("C1").GetMembers().Where(m => m.Name.Contains("M01")).Count());
17415Assert.Equal(2, compilation1.GlobalNamespace.GetTypeMember("C1").GetMembers().Where(m => m.Name.Contains("M01")).Count());
22218Assert.Equal(2, compilation1.GlobalNamespace.GetTypeMember("C1").GetMembers().Where(m => m.Name.Contains(opName)).Count());
22327Assert.Equal(2, compilation1.GlobalNamespace.GetTypeMember("C1").GetMembers().Where(m => m.Name.Contains(opName)).Count());
22429Assert.Equal(2, compilation1.GlobalNamespace.GetTypeMember("C1").GetMembers().Where(m => m.Name.Contains(opName)).Count());
25539Assert.Equal(2, compilation1.GlobalNamespace.GetTypeMember("C1").GetMembers().OfType<PropertySymbol>().Where(m => m.Name.Contains("M01")).Count());
25609Assert.Equal(2, compilation1.GlobalNamespace.GetTypeMember("C1").GetMembers().OfType<PropertySymbol>().Where(m => m.Name.Contains("M01")).Count());
28205Assert.Equal(2, compilation1.GlobalNamespace.GetTypeMember("C1").GetMembers().OfType<EventSymbol>().Where(m => m.Name.Contains("M01")).Count());
28275Assert.Equal(2, compilation1.GlobalNamespace.GetTypeMember("C1").GetMembers().OfType<EventSymbol>().Where(m => m.Name.Contains("M01")).Count());
30153Assert.Equal(2, compilation1.GlobalNamespace.GetTypeMember("C1").GetMembers().Where(m => m.Name.Contains(opName)).Count());
30259Assert.Equal(2, compilation1.GlobalNamespace.GetTypeMember("C1").GetMembers().Where(m => m.Name.Contains(opName)).Count());
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (23)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (4)
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (6)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (15)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (2)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (3)
Microsoft.CodeAnalysis.Features (6)
Microsoft.CodeAnalysis.Features.UnitTests (12)
EditAndContinue\RudeEditDiagnosticTests.cs (10)
87Assert.False(d.GetMessage().Contains("{"), kind.ToString());
93Assert.True(d.GetMessage().Contains("<1>"), kind.ToString());
94Assert.True(d.GetMessage().Contains("<2>"), kind.ToString());
95Assert.False(d.GetMessage().Contains("{"), kind.ToString());
101Assert.True(d.GetMessage().Contains("<1>"), kind.ToString());
102Assert.True(d.GetMessage().Contains("<2>"), kind.ToString());
103Assert.True(d.GetMessage().Contains("<3>"), kind.ToString());
104Assert.False(d.GetMessage().Contains("{"), kind.ToString());
110Assert.True(d.GetMessage().Contains("<1>"), kind.ToString());
111Assert.False(d.GetMessage().Contains("{"), kind.ToString());
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (13)
Microsoft.CodeAnalysis.LanguageServer.UnitTests (1)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (8)
Microsoft.CodeAnalysis.PublicApiAnalyzers (8)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (1)
168if (str.Contains(","))
Microsoft.CodeAnalysis.Remote.ServiceHub (6)
Microsoft.CodeAnalysis.ResxSourceGenerator (8)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (1)
168if (str.Contains(","))
Microsoft.CodeAnalysis.Scripting (1)
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (1)
Microsoft.CodeAnalysis.Test.Utilities (22)
Microsoft.CodeAnalysis.VisualBasic (1)
Microsoft.CodeAnalysis.Workspaces (8)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (1)
168if (str.Contains(","))
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (17)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
Microsoft.CodeAnalysis.Workspaces.UnitTests (8)
FindAllDeclarationsTests.cs (6)
399var declarations = await SymbolFinder.FindSourceDeclarationsAsync(project, str => str.Contains("Test")).ConfigureAwait(false);
423var declarations = await SymbolFinder.FindSourceDeclarationsAsync((Project)null, str => str.Contains("Test"));
439var declarations = await SymbolFinder.FindSourceDeclarationsAsync(project, str => str.Contains("Test"), SymbolFilter.All, new CancellationToken(true));
460var declarations = await SymbolFinder.FindSourceDeclarationsAsync(solution, str => str.Contains("Test")).ConfigureAwait(false);
484await SymbolFinder.FindSourceDeclarationsAsync((Solution)null, str => str.Contains("Test"));
500await SymbolFinder.FindSourceDeclarationsAsync(solution, str => str.Contains("Test"), SymbolFilter.All, new CancellationToken(true));
Microsoft.DotNet.Baselines.Tasks (4)
Microsoft.DotNet.Build.Manifest.Tests (3)
Microsoft.DotNet.Build.Tasks.Feed (1)
Microsoft.DotNet.Build.Tasks.Feed.Tests (12)
Microsoft.DotNet.Build.Tasks.Installers (3)
Microsoft.DotNet.Build.Tasks.Packaging (3)
Microsoft.DotNet.Build.Tasks.Workloads.Tests (10)
Microsoft.DotNet.CodeAnalysis (1)
Microsoft.DotNet.GenFacades (1)
Microsoft.DotNet.Helix.Client (1)
Microsoft.DotNet.Helix.Sdk (6)
Microsoft.DotNet.Helix.Sdk.Tests (15)
CreateXHarnessAndroidWorkItemsTests.cs (4)
91.Verify(x => x.AddResourceFileToArchive<XHarnessTaskBase>(payloadArchive, It.Is<string>(s => s.Contains("xharness-helix-job.android.sh")), "xharness-helix-job.android.sh"), Times.AtLeastOnce);
93.Verify(x => x.AddResourceFileToArchive<XHarnessTaskBase>(payloadArchive, It.Is<string>(s => s.Contains("xharness-helix-job.android.ps1")), "xharness-helix-job.android.ps1"), Times.AtLeastOnce);
193.Verify(x => x.AddResourceFileToArchive<XHarnessTaskBase>(payloadArchive, It.Is<string>(s => s.Contains("xharness-helix-job.android.sh")), "xharness-helix-job.android.sh"), Times.AtLeastOnce);
195.Verify(x => x.AddResourceFileToArchive<XHarnessTaskBase>(payloadArchive, It.Is<string>(s => s.Contains("xharness-helix-job.android.ps1")), "xharness-helix-job.android.ps1"), Times.AtLeastOnce);
CreateXHarnessAppleWorkItemsTests.cs (6)
99.Verify(x => x.AddResourceFileToArchive<XHarnessTaskBase>(payloadArchive, It.Is<string>(s => s.Contains("xharness-helix-job.apple.sh")), "xharness-helix-job.apple.sh"), Times.Once);
101.Verify(x => x.AddResourceFileToArchive<XHarnessTaskBase>(payloadArchive, It.Is<string>(s => s.Contains("xharness-runner.apple.sh")), "xharness-runner.apple.sh"), Times.Once);
103.Verify(x => x.AddContentToArchive(payloadArchive, "command.sh", It.Is<string>(s => s.Contains("xharness apple test"))), Times.Once);
250.Verify(x => x.AddResourceFileToArchive<XHarnessTaskBase>(payloadArchive, It.Is<string>(s => s.Contains("xharness-helix-job.apple.sh")), "xharness-helix-job.apple.sh"), Times.Once);
252.Verify(x => x.AddResourceFileToArchive<XHarnessTaskBase>(payloadArchive, It.Is<string>(s => s.Contains("xharness-runner.apple.sh")), "xharness-runner.apple.sh"), Times.Once);
254.Verify(x => x.AddContentToArchive(payloadArchive, "command.sh", It.Is<string>(s => s.Contains("xharness apple test"))), Times.Once);
Microsoft.DotNet.MacOsPkg.Core (2)
Microsoft.DotNet.Open.Api.Tools.Tests (3)
Microsoft.DotNet.SharedFramework.Sdk (1)
Microsoft.DotNet.SignCheckLibrary (6)
Microsoft.DotNet.SignTool (3)
Microsoft.DotNet.SignTool.Tests (2)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (1)
Microsoft.DotNet.XUnitExtensions (1)
Microsoft.DotNet.XUnitV3Extensions (1)
Microsoft.Extensions.AI.Abstractions.Tests (2)
Microsoft.Extensions.AI.Integration.Tests (6)
Microsoft.Extensions.AI.Templates.Tests (1)
Microsoft.Extensions.AI.Tests (62)
Microsoft.Extensions.ApiDescription.Client.Tests (2)
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (2)
Microsoft.Extensions.Hosting.Testing.Tests (2)
Microsoft.Extensions.Http.Diagnostics.Tests (3)
Microsoft.Extensions.ServiceDiscovery.Yarp (1)
Microsoft.Extensions.Telemetry.Tests (1)
Microsoft.Gen.Logging (2)
Microsoft.Gen.MetadataExtractor (1)
Microsoft.Gen.Metrics (4)
Microsoft.Gen.MetricsReports (1)
Microsoft.Maui.Controls.Build.Tasks (3)
Microsoft.Maui.Resizetizer (1)
Microsoft.ML.AutoML (4)
Microsoft.ML.AutoML.Samples (2)
Microsoft.ML.AutoML.SourceGenerator (11)
Microsoft.ML.AutoML.Tests (8)
Microsoft.ML.Core (3)
Microsoft.ML.Data (5)
Microsoft.ML.LightGbm (3)
Microsoft.ML.NugetPackageVersionUpdater (1)
Microsoft.ML.PerformanceTests (1)
Microsoft.ML.ResultProcessor (4)
Microsoft.ML.TestFramework (1)
Microsoft.ML.TestFrameworkCommon (1)
Microsoft.ML.Tests (2)
Microsoft.ML.TorchSharp.Tests (3)
Microsoft.VisualBasic.Core (1)
Microsoft.VisualStudio.IntegrationTest.Setup (1)
Microsoft.VisualStudio.LanguageServices (9)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Microsoft.VisualStudio.LanguageServices.Implementation (2)
OpenIdConnectSample (7)
PrepareTests (1)
PresentationBuildTasks (5)
PresentationFramework (5)
Qdrant.ApiService (1)
ReachFramework (4)
Roslyn.Diagnostics.Analyzers (9)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (1)
168if (str.Contains(","))
Roslyn.VisualStudio.Next.UnitTests (7)
RunTests (2)
ScenarioTests.Common.Tests (1)
Security.TransportSecurity.IntegrationTests (4)
SignalR.Client.FunctionalTestApp (1)
Sockets.FunctionalTests (9)
System.Configuration.ConfigurationManager (2)
System.Diagnostics.DiagnosticSource (1)
System.Diagnostics.Process (1)
System.IO.Packaging (1)
System.Net.HttpListener (2)
System.Net.NetworkInformation (3)
System.Net.Requests (3)
System.Private.DataContractSerialization (1)
System.Private.Xml (11)
System.Reflection.Metadata (2)
System.ServiceModel.Primitives (4)
System.ServiceModel.Primitives.Tests (1)
System.Text.Json (6)
System.Windows.Forms (4)
System.Windows.Forms.Design (6)
System.Windows.Forms.Design.Tests (2)
System.Windows.Forms.Tests (1)
System.Windows.Forms.UI.IntegrationTests (3)
System.Xaml (4)
Templates.Blazor.Tests (12)
Templates.Blazor.WebAssembly.Auth.Tests (15)
Templates.Blazor.WebAssembly.Tests (15)
Templates.Mvc.Tests (15)
Templates.Tests (15)
Test.Utilities (8)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (1)
168if (str.Contains(","))
Text.Analyzers (8)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (1)
168if (str.Contains(","))
UIAutomationClientSideProviders (6)
WinFormsControlsTest (9)