6065 references to Environment
aspire (108)
Aspire.Azure.AI.Inference (3)
Aspire.Azure.AI.OpenAI (3)
Aspire.Azure.Messaging.EventHubs (4)
Aspire.Azure.Messaging.ServiceBus (1)
Aspire.Azure.Npgsql (2)
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL (2)
Aspire.Azure.Search.Documents (2)
Aspire.Azure.Security.KeyVault (2)
Aspire.Cli.EndToEnd.Tests (14)
Aspire.Cli.Tests (31)
Aspire.Dashboard (20)
Model\Otlp\ResourcesSelectHelpers.cs (3)
59""", name, fallback, string.Join(Environment.NewLine, resources), match);
74""", name, string.Join(Environment.NewLine, resources), string.Join(Environment.NewLine, matches));
Aspire.Dashboard.Components.Tests (3)
Aspire.Dashboard.Tests (6)
Aspire.Deployment.EndToEnd.Tests (13)
Aspire.EndToEnd.Tests (28)
Aspire.Hosting (44)
Aspire.Hosting.Azure (2)
Aspire.Hosting.Azure.CosmosDB (2)
Aspire.Hosting.Azure.Kusto (2)
Aspire.Hosting.Azure.Storage (2)
Aspire.Hosting.Azure.Tests (6)
Aspire.Hosting.CodeGeneration.Python (1)
Aspire.Hosting.GitHub.Models (1)
Aspire.Hosting.OpenAI (1)
Aspire.Hosting.Python (1)
Aspire.Hosting.RemoteHost (1)
Aspire.Hosting.RemoteHost.Tests (8)
Aspire.Hosting.Testing (1)
Aspire.Hosting.Testing.Tests (3)
Aspire.Hosting.Tests (34)
Dcp\DcpExecutorTests.cs (20)
271var exe = builder.AddExecutable("CoolProgram", "cool", Environment.CurrentDirectory, "--alpha", "--bravo")
303var exe = builder.AddExecutable("CoolProgram", "cool", Environment.CurrentDirectory, "--alpha", "--bravo")
335var exe = builder.AddExecutable("CoolProgram", "cool", Environment.CurrentDirectory, "--alpha", "--bravo")
368var exe = builder.AddExecutable("CoolProgram", "cool", Environment.CurrentDirectory, "--alpha", "--bravo")
405builder.AddExecutable("CoolProgram", "cool", Environment.CurrentDirectory, "--alpha", "--bravo")
422builder.AddExecutable("CoolProgram", "cool", Environment.CurrentDirectory, "--alpha", "--bravo")
456builder.AddExecutable("CoolProgram", "cool", Environment.CurrentDirectory, "--alpha", "--bravo")
490builder.AddExecutable("CoolProgram", "cool", Environment.CurrentDirectory, "--alpha", "--bravo")
557var exe = builder.AddExecutable("CoolProgram", "cool", Environment.CurrentDirectory, "--alpha", "--bravo");
651await pipes.StandardOut.Writer.WriteAsync(Encoding.UTF8.GetBytes("2024-08-19T06:10:33.473275911Z Hello world" + Environment.NewLine));
662await pipes.StandardErr.Writer.WriteAsync(Encoding.UTF8.GetBytes("2024-08-19T06:10:32.661Z Next" + Environment.NewLine));
706return new MemoryStream(Encoding.UTF8.GetBytes("2024-08-19T06:10:01.000Z First" + Environment.NewLine));
708return new MemoryStream(Encoding.UTF8.GetBytes("2024-08-19T06:10:02.000Z Second" + Environment.NewLine));
710return new MemoryStream(Encoding.UTF8.GetBytes("2024-08-19T06:10:03.000Z Third" + Environment.NewLine));
713"2024-08-19T06:10:05.000Z Sixth" + Environment.NewLine +
714"2024-08-19T06:10:05.000Z Seventh" + Environment.NewLine +
715"2024-08-19T06:10:04.000Z Forth" + Environment.NewLine +
716"2024-08-19T06:10:04.000Z Fifth" + Environment.NewLine));
795"2024-08-19T06:10:01.000Z\tinfo\tdcp.ExecutableReconciler\tStarting process...\t{\"Executable\": \"/foo-pwrqgpew\", \"Reconciliation\": 4, \"Cmd\": \"bla\", \"Args\": []}" + Environment.NewLine +
796"2024-08-19T06:10:02.000Z\terror\tdcp.ExecutableReconciler\tFailed to start process\t{\"Executable\": \"/foo-pwrqgpew\", \"Reconciliation\": 4, \"Cmd\": \"bla\", \"Args\": [], \"error\": \"exec: \\\"bla\\\": executable file not found in $PATH\"}" + Environment.NewLine;
Aspire.Microsoft.Azure.Cosmos (2)
Aspire.Microsoft.Azure.StackExchangeRedis (2)
Aspire.Microsoft.EntityFrameworkCore.Cosmos (2)
Aspire.OpenAI (1)
Aspire.Playground.Tests (10)
Aspire.Templates.Tests (28)
Aspire.TestUtilities (6)
aspire-managed (6)
AutobahnTestApp (1)
AzureAppServicesHostingStartupSample (25)
AzureAppServicesSample (25)
BuildActionTelemetryTable (6)
BuildValidator (3)
Client.TypedClient.IntegrationTests (3)
ClientSample (1)
CodeStyleConfigFileGenerator (3)
ConfigurationSchemaGenerator (2)
CreateDefaultBuilderApp (1)
CreateDefaultBuilderOfTApp (1)
Crossgen2Tasks (4)
csc (13)
CSharpSyntaxGenerator (10)
DefaultBuilder.SampleApp (1)
DelegationSite (1)
DeveloperExceptionPageSample (1)
dotnet-dev-certs (25)
dotnet-getdocument (5)
dotnet-openapi (4)
dotnet-razorpagegenerator (2)
dotnet-sql-cache (3)
dotnet-svcutil.xmlserializer (5)
dotnet-svcutil-lib (70)
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\X509CertificateClaimSet.cs (1)
424Environment.NewLine,
dotnet-svcutil-lib.Tests (84)
dotnet-user-jwts (16)
dotnet-user-secrets (4)
EventHubsConsumer (1)
GenerateDocumentationAndConfigFiles (19)
GetDocument.Insider (7)
HealthChecksSample (1)
HelixTestRunner (20)
HotAddSample (1)
Http2SampleApp (1)
IdeBenchmarks (5)
IdeCoreBenchmarks (22)
IIS.Common.TestLib (7)
IIS.FunctionalTests (19)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (5)
35if (Environment.GetEnvironmentVariable("ASPNETCORE_TEST_SKIP_IIS") == "true")
55if (!File.Exists(Path.Combine(Environment.SystemDirectory, "inetsrv", "w3wp.exe")) && !SkipInVSTSAttribute.RunningInVSTS)
61var ancmConfigPath = Path.Combine(Environment.SystemDirectory, "inetsrv", "config", "schema", "aspnetcore_schema.xml");
65ancmConfigPath = Path.Combine(Environment.SystemDirectory, "inetsrv", "config", "schema", "aspnetcore_schema_v2.xml");
95if (File.Exists(Path.Combine(Environment.SystemDirectory, "inetsrv", module.DllName)) || SkipInVSTSAttribute.RunningInVSTS)
IIS.LongTests (10)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (5)
35if (Environment.GetEnvironmentVariable("ASPNETCORE_TEST_SKIP_IIS") == "true")
55if (!File.Exists(Path.Combine(Environment.SystemDirectory, "inetsrv", "w3wp.exe")) && !SkipInVSTSAttribute.RunningInVSTS)
61var ancmConfigPath = Path.Combine(Environment.SystemDirectory, "inetsrv", "config", "schema", "aspnetcore_schema.xml");
65ancmConfigPath = Path.Combine(Environment.SystemDirectory, "inetsrv", "config", "schema", "aspnetcore_schema_v2.xml");
95if (File.Exists(Path.Combine(Environment.SystemDirectory, "inetsrv", module.DllName)) || SkipInVSTSAttribute.RunningInVSTS)
IIS.NewHandler.FunctionalTests (10)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (5)
35if (Environment.GetEnvironmentVariable("ASPNETCORE_TEST_SKIP_IIS") == "true")
55if (!File.Exists(Path.Combine(Environment.SystemDirectory, "inetsrv", "w3wp.exe")) && !SkipInVSTSAttribute.RunningInVSTS)
61var ancmConfigPath = Path.Combine(Environment.SystemDirectory, "inetsrv", "config", "schema", "aspnetcore_schema.xml");
65ancmConfigPath = Path.Combine(Environment.SystemDirectory, "inetsrv", "config", "schema", "aspnetcore_schema_v2.xml");
95if (File.Exists(Path.Combine(Environment.SystemDirectory, "inetsrv", module.DllName)) || SkipInVSTSAttribute.RunningInVSTS)
IIS.ShadowCopy.Tests (10)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (5)
35if (Environment.GetEnvironmentVariable("ASPNETCORE_TEST_SKIP_IIS") == "true")
55if (!File.Exists(Path.Combine(Environment.SystemDirectory, "inetsrv", "w3wp.exe")) && !SkipInVSTSAttribute.RunningInVSTS)
61var ancmConfigPath = Path.Combine(Environment.SystemDirectory, "inetsrv", "config", "schema", "aspnetcore_schema.xml");
65ancmConfigPath = Path.Combine(Environment.SystemDirectory, "inetsrv", "config", "schema", "aspnetcore_schema_v2.xml");
95if (File.Exists(Path.Combine(Environment.SystemDirectory, "inetsrv", module.DllName)) || SkipInVSTSAttribute.RunningInVSTS)
IIS.Tests (3)
IISExpress.FunctionalTests (15)
IISSample (26)
illink (1)
ILLink.Tasks (1)
Infrastructure.Common (14)
Infrastructure.IntegrationTests (2)
Infrastructure.Tests (7)
InMemory.FunctionalTests (10)
InProcessWebSite (24)
installer.tasks (16)
InteractiveHost.UnitTests (2)
Interop.FunctionalTests (6)
InteropClient (2)
InteropTests (4)
Kestrel.SampleApp (3)
Metrics (27)
Metrics.Legacy (27)
Microsoft.Arcade.Common (8)
Microsoft.Arcade.Test.Common (1)
Microsoft.AspNetCore (2)
Microsoft.AspNetCore.Analyzer.Testing (4)
Microsoft.AspNetCore.App.Analyzers.Test (6)
Microsoft.AspNetCore.App.CodeFixes (1)
Microsoft.AspNetCore.App.UnitTests (6)
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (9)
Microsoft.AspNetCore.Authentication.Test (1)
Microsoft.AspNetCore.Authentication.Twitter (1)
Microsoft.AspNetCore.Authorization (2)
Microsoft.AspNetCore.Authorization.Test (2)
Microsoft.AspNetCore.BrowserTesting (7)
Microsoft.AspNetCore.Components (4)
Microsoft.AspNetCore.Components.Analyzers (2)
Microsoft.AspNetCore.Components.Analyzers.Tests (2)
Microsoft.AspNetCore.Components.Endpoints (1)
Microsoft.AspNetCore.Components.SdkAnalyzers (2)
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (2)
Microsoft.AspNetCore.Components.Server (1)
Microsoft.AspNetCore.Components.Server.Tests (4)
Microsoft.AspNetCore.Components.Tests (6)
Microsoft.AspNetCore.Components.WebAssembly (5)
Microsoft.AspNetCore.Components.WebAssembly.Server (4)
Microsoft.AspNetCore.Components.WebAssembly.Tests (4)
Microsoft.AspNetCore.Components.WebView.WindowsForms (3)
Microsoft.AspNetCore.Components.WebView.Wpf (3)
Microsoft.AspNetCore.Components.WebViewE2E.Test (6)
Microsoft.AspNetCore.Cryptography.Internal (1)
Microsoft.AspNetCore.DataProtection (8)
Microsoft.AspNetCore.DataProtection.Tests (10)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (19)
Microsoft.AspNetCore.Diagnostics (3)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (2)
Microsoft.AspNetCore.FunctionalTests (2)
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Microsoft.AspNetCore.Hosting (8)
Microsoft.AspNetCore.Hosting.Tests (4)
Microsoft.AspNetCore.Html.Abstractions (6)
Microsoft.AspNetCore.Html.Abstractions.Tests (4)
Microsoft.AspNetCore.Http (1)
Microsoft.AspNetCore.Http.Connections (4)
Microsoft.AspNetCore.Http.Connections.Tests (7)
Microsoft.AspNetCore.Http.Microbenchmarks (3)
Microsoft.AspNetCore.HttpLogging (3)
Microsoft.AspNetCore.HttpLogging.Tests (17)
FileLoggerProcessorTests.cs (13)
22TempPath = Path.Combine(Environment.CurrentDirectory, "_");
53Assert.Equal(_messageOne + Environment.NewLine, File.ReadAllText(filePath));
99Assert.Equal(_messageOne + Environment.NewLine, File.ReadAllText(filePathToday));
101Assert.Equal(_messageTwo + Environment.NewLine, File.ReadAllText(filePathTomorrow));
140Assert.Equal(_messageOne + Environment.NewLine, File.ReadAllText(filePath1));
141Assert.Equal(_messageTwo + Environment.NewLine, File.ReadAllText(filePath2));
404Assert.Equal(_messageOne + Environment.NewLine, File.ReadAllText(filePath1));
405Assert.Equal(_messageTwo + Environment.NewLine, File.ReadAllText(filePath2));
406Assert.Equal(_messageThree + Environment.NewLine, File.ReadAllText(filePath3));
471Assert.Equal(_messageThree + Environment.NewLine, File.ReadAllText(filePath3));
472Assert.Equal(_messageFour + Environment.NewLine, File.ReadAllText(filePath4));
539Assert.Equal(_messageOne + Environment.NewLine, File.ReadAllText(filePath1));
540Assert.Equal(_messageTwo + Environment.NewLine, File.ReadAllText(filePath2));
Microsoft.AspNetCore.InternalTesting (16)
Microsoft.AspNetCore.InternalTesting.Tests (23)
Microsoft.AspNetCore.Mvc.Core (20)
Microsoft.AspNetCore.Mvc.Core.Test (59)
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (4)
Microsoft.AspNetCore.Mvc.FunctionalTests (27)
Microsoft.AspNetCore.Mvc.Razor (6)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (2)
Microsoft.AspNetCore.Mvc.Razor.Test (53)
Microsoft.AspNetCore.Mvc.RazorPages (1)
Microsoft.AspNetCore.Mvc.RazorPages.Test (5)
Microsoft.AspNetCore.Mvc.TagHelpers (9)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (85)
LabelTagHelperTest.cs (35)
43new TagHelperOutputContent(string.Empty, Environment.NewLine, Environment.NewLine, "Text") },
45new TagHelperOutputContent(Environment.NewLine, string.Empty, "HtmlEncode[[Text]]", "Text") },
48new TagHelperOutputContent(string.Empty, Environment.NewLine, Environment.NewLine, "Text") },
50new TagHelperOutputContent(Environment.NewLine, string.Empty, "HtmlEncode[[Text]]", "Text") },
52new TagHelperOutputContent(Environment.NewLine, "Hello World", "Hello World", "Text") },
54new TagHelperOutputContent(string.Empty, Environment.NewLine, Environment.NewLine, "Text") },
56new TagHelperOutputContent(Environment.NewLine, string.Empty, "HtmlEncode[[Text]]", "Text") },
58new TagHelperOutputContent(Environment.NewLine, "Hello World", "Hello World", "Text") },
73new TagHelperOutputContent(Environment.NewLine, string.Empty, "HtmlEncode[[Text]]", "NestedModel_Text") },
75new TagHelperOutputContent(Environment.NewLine, "Hello World", "Hello World", "NestedModel_Text") },
77new TagHelperOutputContent(string.Empty, Environment.NewLine, Environment.NewLine, "NestedModel_Text") },
79new TagHelperOutputContent(Environment.NewLine, string.Empty, "HtmlEncode[[Text]]", "NestedModel_Text") },
81new TagHelperOutputContent(Environment.NewLine, "Hello World", "Hello World", "NestedModel_Text") },
83new TagHelperOutputContent(string.Empty, Environment.NewLine, Environment.NewLine, "NestedModel_Text") },
98new TagHelperOutputContent(Environment.NewLine, string.Empty, "HtmlEncode[[Text]]", "z0__Text") },
100new TagHelperOutputContent(Environment.NewLine, "Hello World", "Hello World", "z0__Text") },
102new TagHelperOutputContent(string.Empty, Environment.NewLine, Environment.NewLine, "z0__Text") },
104new TagHelperOutputContent(Environment.NewLine, string.Empty, "HtmlEncode[[Text]]", "z1__Text") },
106new TagHelperOutputContent(Environment.NewLine, "Hello World", "Hello World", "z1__Text") },
108new TagHelperOutputContent(string.Empty, Environment.NewLine, Environment.NewLine, "z1__Text") },
123new TagHelperOutputContent(Environment.NewLine, string.Empty, "HtmlEncode[[Text]]", "z0__NestedModel_Text") },
125new TagHelperOutputContent(Environment.NewLine, "Hello World", "Hello World", "z0__NestedModel_Text") },
127new TagHelperOutputContent(string.Empty, Environment.NewLine, Environment.NewLine, "z0__NestedModel_Text") },
129new TagHelperOutputContent(Environment.NewLine, string.Empty, "HtmlEncode[[Text]]", "z1__NestedModel_Text") },
131new TagHelperOutputContent(Environment.NewLine, "Hello World", "Hello World", "z1__NestedModel_Text") },
133new TagHelperOutputContent(string.Empty, Environment.NewLine, Environment.NewLine, "z1__NestedModel_Text") },
Microsoft.AspNetCore.Mvc.Test (1)
Microsoft.AspNetCore.Mvc.Testing (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (11)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (375)
Rendering\HtmlHelperSelectTest.cs (168)
84Environment.NewLine +
85"<option value=\"HtmlEncode[[1]]\">HtmlEncode[[One]]</option>" + Environment.NewLine +
86"<option value=\"HtmlEncode[[2]]\">HtmlEncode[[Two]]</option>" + Environment.NewLine +
87"<option value=\"HtmlEncode[[3]]\">HtmlEncode[[Three]]</option>" + Environment.NewLine +
90Environment.NewLine +
91"<option value=\"HtmlEncode[[1]]\">HtmlEncode[[One]]</option>" + Environment.NewLine +
92"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[2]]\">HtmlEncode[[Two]]</option>" + Environment.NewLine +
93"<option value=\"HtmlEncode[[3]]\">HtmlEncode[[Three]]</option>" + Environment.NewLine +
99Environment.NewLine +
101Environment.NewLine +
102"<option value=\"HtmlEncode[[2]]\">HtmlEncode[[Two]]</option>" + Environment.NewLine +
103"<option disabled=\"HtmlEncode[[disabled]]\" value=\"HtmlEncode[[3]]\">HtmlEncode[[Three]]</option>" + Environment.NewLine +
106Environment.NewLine +
107"<option disabled=\"HtmlEncode[[disabled]]\" value=\"HtmlEncode[[1]]\">HtmlEncode[[One]]</option>" + Environment.NewLine +
108"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[2]]\">HtmlEncode[[Two]]</option>" + Environment.NewLine +
109"<option disabled=\"HtmlEncode[[disabled]]\" value=\"HtmlEncode[[3]]\">HtmlEncode[[Three]]</option>" + Environment.NewLine +
115Environment.NewLine +
116"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[0]]\">HtmlEncode[[Zero]]</option>" + Environment.NewLine +
117"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[2]]\">HtmlEncode[[Two]]</option>" + Environment.NewLine +
118"</optgroup>" + Environment.NewLine +
119"<optgroup label=\"HtmlEncode[[Group Two]]\">" + Environment.NewLine +
120"<option value=\"HtmlEncode[[1]]\">HtmlEncode[[One]]</option>" + Environment.NewLine +
121"</optgroup>" + Environment.NewLine +
122"<option value=\"HtmlEncode[[3]]\">HtmlEncode[[Three]]</option>" + Environment.NewLine +
125Environment.NewLine +
126"<option value=\"HtmlEncode[[0]]\">HtmlEncode[[Zero]]</option>" + Environment.NewLine +
127"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[2]]\">HtmlEncode[[Two]]</option>" + Environment.NewLine +
128"</optgroup>" + Environment.NewLine +
129"<optgroup label=\"HtmlEncode[[Group Two]]\">" + Environment.NewLine +
130"<option value=\"HtmlEncode[[1]]\">HtmlEncode[[One]]</option>" + Environment.NewLine +
131"</optgroup>" + Environment.NewLine +
132"<option value=\"HtmlEncode[[3]]\">HtmlEncode[[Three]]</option>" + Environment.NewLine +
138Environment.NewLine +
139"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[0]]\">HtmlEncode[[Zero]]</option>" + Environment.NewLine +
140"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[1]]\">HtmlEncode[[One]]</option>" + Environment.NewLine +
141"<option value=\"HtmlEncode[[2]]\">HtmlEncode[[Two]]</option>" + Environment.NewLine +
142"<option value=\"HtmlEncode[[3]]\">HtmlEncode[[Three]]</option>" + Environment.NewLine +
143"</optgroup>" + Environment.NewLine +
146Environment.NewLine +
147"<option value=\"HtmlEncode[[0]]\">HtmlEncode[[Zero]]</option>" + Environment.NewLine +
148"<option value=\"HtmlEncode[[1]]\">HtmlEncode[[One]]</option>" + Environment.NewLine +
149"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[2]]\">HtmlEncode[[Two]]</option>" + Environment.NewLine +
150"<option value=\"HtmlEncode[[3]]\">HtmlEncode[[Three]]</option>" + Environment.NewLine +
151"</optgroup>" + Environment.NewLine +
157Environment.NewLine +
158"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[0]]\">HtmlEncode[[Zero]]</option>" + Environment.NewLine +
159"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[1]]\">HtmlEncode[[One]]</option>" + Environment.NewLine +
160"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[2]]\">HtmlEncode[[Two]]</option>" + Environment.NewLine +
161"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[3]]\">HtmlEncode[[Three]]</option>" + Environment.NewLine +
162"</optgroup>" + Environment.NewLine +
165Environment.NewLine +
166"<option value=\"HtmlEncode[[0]]\">HtmlEncode[[Zero]]</option>" + Environment.NewLine +
167"<option value=\"HtmlEncode[[1]]\">HtmlEncode[[One]]</option>" + Environment.NewLine +
168"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[2]]\">HtmlEncode[[Two]]</option>" + Environment.NewLine +
169"<option value=\"HtmlEncode[[3]]\">HtmlEncode[[Three]]</option>" + Environment.NewLine +
170"</optgroup>" + Environment.NewLine +
187Environment.NewLine +
188"<option value=\"HtmlEncode[[1]]\">HtmlEncode[[One]]</option>" + Environment.NewLine +
189"<option value=\"HtmlEncode[[2]]\">HtmlEncode[[Two]]</option>" + Environment.NewLine +
190"<option value=\"HtmlEncode[[3]]\">HtmlEncode[[Three]]</option>" + Environment.NewLine +
193Environment.NewLine +
194"<option value=\"HtmlEncode[[1]]\">HtmlEncode[[One]]</option>" + Environment.NewLine +
195"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[2]]\">HtmlEncode[[Two]]</option>" + Environment.NewLine +
196"<option value=\"HtmlEncode[[3]]\">HtmlEncode[[Three]]</option>" + Environment.NewLine +
199Environment.NewLine +
200"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[1]]\">HtmlEncode[[One]]</option>" + Environment.NewLine +
201"<option value=\"HtmlEncode[[2]]\">HtmlEncode[[Two]]</option>" + Environment.NewLine +
202"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[3]]\">HtmlEncode[[Three]]</option>" + Environment.NewLine +
208Environment.NewLine +
210Environment.NewLine +
211"<option value=\"HtmlEncode[[2]]\">HtmlEncode[[Two]]</option>" + Environment.NewLine +
212"<option disabled=\"HtmlEncode[[disabled]]\" value=\"HtmlEncode[[3]]\">HtmlEncode[[Three]]</option>" + Environment.NewLine +
215Environment.NewLine +
216"<option disabled=\"HtmlEncode[[disabled]]\" value=\"HtmlEncode[[1]]\">HtmlEncode[[One]]</option>" + Environment.NewLine +
217"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[2]]\">HtmlEncode[[Two]]</option>" + Environment.NewLine +
218"<option disabled=\"HtmlEncode[[disabled]]\" value=\"HtmlEncode[[3]]\">HtmlEncode[[Three]]</option>" + Environment.NewLine +
221Environment.NewLine +
222"<option disabled=\"HtmlEncode[[disabled]]\" selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[1]]\">HtmlEncode[[One]]</option>" + Environment.NewLine +
223"<option value=\"HtmlEncode[[2]]\">HtmlEncode[[Two]]</option>" + Environment.NewLine +
224"<option disabled=\"HtmlEncode[[disabled]]\" selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[3]]\">HtmlEncode[[Three]]</option>" + Environment.NewLine +
230Environment.NewLine +
231"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[0]]\">HtmlEncode[[Zero]]</option>" + Environment.NewLine +
232"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[2]]\">HtmlEncode[[Two]]</option>" + Environment.NewLine +
233"</optgroup>" + Environment.NewLine +
234"<optgroup label=\"HtmlEncode[[Group Two]]\">" + Environment.NewLine +
235"<option value=\"HtmlEncode[[1]]\">HtmlEncode[[One]]</option>" + Environment.NewLine +
236"</optgroup>" + Environment.NewLine +
237"<option value=\"HtmlEncode[[3]]\">HtmlEncode[[Three]]</option>" + Environment.NewLine +
240Environment.NewLine +
241"<option value=\"HtmlEncode[[0]]\">HtmlEncode[[Zero]]</option>" + Environment.NewLine +
242"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[2]]\">HtmlEncode[[Two]]</option>" + Environment.NewLine +
243"</optgroup>" + Environment.NewLine +
244"<optgroup label=\"HtmlEncode[[Group Two]]\">" + Environment.NewLine +
245"<option value=\"HtmlEncode[[1]]\">HtmlEncode[[One]]</option>" + Environment.NewLine +
246"</optgroup>" + Environment.NewLine +
247"<option value=\"HtmlEncode[[3]]\">HtmlEncode[[Three]]</option>" + Environment.NewLine +
250Environment.NewLine +
251"<option value=\"HtmlEncode[[0]]\">HtmlEncode[[Zero]]</option>" + Environment.NewLine +
252"<option value=\"HtmlEncode[[2]]\">HtmlEncode[[Two]]</option>" + Environment.NewLine +
253"</optgroup>" + Environment.NewLine +
254"<optgroup label=\"HtmlEncode[[Group Two]]\">" + Environment.NewLine +
255"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[1]]\">HtmlEncode[[One]]</option>" + Environment.NewLine +
256"</optgroup>" + Environment.NewLine +
257"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[3]]\">HtmlEncode[[Three]]</option>" + Environment.NewLine +
263Environment.NewLine +
264"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[0]]\">HtmlEncode[[Zero]]</option>" + Environment.NewLine +
265"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[1]]\">HtmlEncode[[One]]</option>" + Environment.NewLine +
266"<option value=\"HtmlEncode[[2]]\">HtmlEncode[[Two]]</option>" + Environment.NewLine +
267"<option value=\"HtmlEncode[[3]]\">HtmlEncode[[Three]]</option>" + Environment.NewLine +
268"</optgroup>" + Environment.NewLine +
271Environment.NewLine +
272"<option value=\"HtmlEncode[[0]]\">HtmlEncode[[Zero]]</option>" + Environment.NewLine +
273"<option value=\"HtmlEncode[[1]]\">HtmlEncode[[One]]</option>" + Environment.NewLine +
274"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[2]]\">HtmlEncode[[Two]]</option>" + Environment.NewLine +
275"<option value=\"HtmlEncode[[3]]\">HtmlEncode[[Three]]</option>" + Environment.NewLine +
276"</optgroup>" + Environment.NewLine +
279Environment.NewLine +
280"<option value=\"HtmlEncode[[0]]\">HtmlEncode[[Zero]]</option>" + Environment.NewLine +
281"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[1]]\">HtmlEncode[[One]]</option>" + Environment.NewLine +
282"<option value=\"HtmlEncode[[2]]\">HtmlEncode[[Two]]</option>" + Environment.NewLine +
283"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[3]]\">HtmlEncode[[Three]]</option>" + Environment.NewLine +
284"</optgroup>" + Environment.NewLine +
290"<optgroup disabled=\"HtmlEncode[[disabled]]\" label=\"HtmlEncode[[Disabled Group]]\">" + Environment.NewLine +
291"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[0]]\">HtmlEncode[[Zero]]</option>" + Environment.NewLine +
292"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[1]]\">HtmlEncode[[One]]</option>" + Environment.NewLine +
293"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[2]]\">HtmlEncode[[Two]]</option>" + Environment.NewLine +
294"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[3]]\">HtmlEncode[[Three]]</option>" + Environment.NewLine +
295"</optgroup>" + Environment.NewLine +
298"<optgroup disabled=\"HtmlEncode[[disabled]]\" label=\"HtmlEncode[[Disabled Group]]\">" + Environment.NewLine +
299"<option value=\"HtmlEncode[[0]]\">HtmlEncode[[Zero]]</option>" + Environment.NewLine +
300"<option value=\"HtmlEncode[[1]]\">HtmlEncode[[One]]</option>" + Environment.NewLine +
301"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[2]]\">HtmlEncode[[Two]]</option>" + Environment.NewLine +
302"<option value=\"HtmlEncode[[3]]\">HtmlEncode[[Three]]</option>" + Environment.NewLine +
303"</optgroup>" + Environment.NewLine +
306"<optgroup disabled=\"HtmlEncode[[disabled]]\" label=\"HtmlEncode[[Disabled Group]]\">" + Environment.NewLine +
307"<option value=\"HtmlEncode[[0]]\">HtmlEncode[[Zero]]</option>" + Environment.NewLine +
308"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[1]]\">HtmlEncode[[One]]</option>" + Environment.NewLine +
309"<option value=\"HtmlEncode[[2]]\">HtmlEncode[[Two]]</option>" + Environment.NewLine +
310"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[3]]\">HtmlEncode[[Three]]</option>" + Environment.NewLine +
311"</optgroup>" + Environment.NewLine +
697Environment.NewLine +
698"<option disabled=\"HtmlEncode[[disabled]]\" value=\"HtmlEncode[[1]]\">HtmlEncode[[One]]</option>" + Environment.NewLine +
699"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[2]]\">HtmlEncode[[Two]]</option>" + Environment.NewLine +
700"<option disabled=\"HtmlEncode[[disabled]]\" value=\"HtmlEncode[[3]]\">HtmlEncode[[Three]]</option>" + Environment.NewLine +
724"<select id=\"HtmlEncode[[unrelated]]\" name=\"HtmlEncode[[unrelated]]\"><option value=\"HtmlEncode[[0]]\">HtmlEncode[[Zero]]</option>" + Environment.NewLine +
725"<option disabled=\"HtmlEncode[[disabled]]\" value=\"HtmlEncode[[1]]\">HtmlEncode[[One]]</option>" + Environment.NewLine +
726"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[2]]\">HtmlEncode[[Two]]</option>" + Environment.NewLine +
727"<option disabled=\"HtmlEncode[[disabled]]\" value=\"HtmlEncode[[3]]\">HtmlEncode[[Three]]</option>" + Environment.NewLine +
1045Environment.NewLine +
1046"<option disabled=\"HtmlEncode[[disabled]]\" value=\"HtmlEncode[[1]]\">HtmlEncode[[One]]</option>" + Environment.NewLine +
1047"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[2]]\">HtmlEncode[[Two]]</option>" + Environment.NewLine +
1048"<option disabled=\"HtmlEncode[[disabled]]\" value=\"HtmlEncode[[3]]\">HtmlEncode[[Three]]</option>" + Environment.NewLine +
1511$"{ GetOption(SelectSources.ModelStateEntry, source) }{ Environment.NewLine }" +
1512$"{ GetOption(SelectSources.ModelStateEntryWithPrefix, source) }{ Environment.NewLine }" +
1513$"{ GetOption(SelectSources.ViewDataEntry, source) }{ Environment.NewLine }" +
1514$"{ GetOption(SelectSources.PropertyOfViewDataEntry, source) }{ Environment.NewLine }" +
1515$"{ GetOption(SelectSources.ViewDataEntryWithPrefix, source) }{ Environment.NewLine }" +
1516$"{ GetOption(SelectSources.PropertyOfViewDataEntryWithPrefix, source) }{ Environment.NewLine }" +
1517$"{ GetOption(SelectSources.ModelValue, source) }{ Environment.NewLine }" +
1518$"{ GetOption(SelectSources.PropertyOfModel, source) }{ Environment.NewLine }" +
1526$"{ GetOption(SelectSources.ModelStateEntry, source) }{ Environment.NewLine }" +
1527$"{ GetOption(SelectSources.ModelStateEntryWithPrefix, source) }{ Environment.NewLine }" +
1528$"{ GetOption(SelectSources.ViewDataEntry, source) }{ Environment.NewLine }" +
1529$"{ GetOption(SelectSources.PropertyOfViewDataEntry, source) }{ Environment.NewLine }" +
1530$"{ GetOption(SelectSources.ViewDataEntryWithPrefix, source) }{ Environment.NewLine }" +
1531$"{ GetOption(SelectSources.PropertyOfViewDataEntryWithPrefix, source) }{ Environment.NewLine }" +
1532$"{ GetOption(SelectSources.ModelValue, source) }{ Environment.NewLine }" +
1533$"{ GetOption(SelectSources.PropertyOfModel, source) }{ Environment.NewLine }" +
Microsoft.AspNetCore.OpenApi.Build.Tests (1)
Microsoft.AspNetCore.OpenApi.Tests (2)
Microsoft.AspNetCore.Routing (7)
Microsoft.AspNetCore.Routing.FunctionalTests (3)
Microsoft.AspNetCore.Routing.Tests (17)
Microsoft.AspNetCore.Server.HttpSys (5)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (5)
Microsoft.AspNetCore.Server.HttpSys.NonHelixTests (1)
Microsoft.AspNetCore.Server.IIS (4)
Microsoft.AspNetCore.Server.IISIntegration (6)
Microsoft.AspNetCore.Server.IntegrationTesting (21)
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (9)
Microsoft.AspNetCore.Server.Kestrel.Core (27)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (14)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (4)
Microsoft.AspNetCore.Server.Kestrel.Tests (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (3)
Microsoft.AspNetCore.Shared.Tests (20)
Microsoft.AspNetCore.SignalR.Common.Tests (4)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (3)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (7)
Microsoft.AspNetCore.SignalR.Tests (4)
Microsoft.AspNetCore.SignalR.Tests.Utils (8)
Microsoft.AspNetCore.SpaProxy (3)
Microsoft.AspNetCore.SpaServices.Extensions (1)
Microsoft.AspNetCore.SpaServices.Extensions.Tests (1)
Microsoft.AspNetCore.TestHost (1)
Microsoft.AspNetCore.TestHost.Tests (2)
Microsoft.AspNetCore.Tests (2)
Microsoft.AspNetCore.WebSockets.ConformanceTests (8)
Microsoft.AspNetCore.WebUtilities (1)
Microsoft.Build.Tasks.CodeAnalysis (19)
Microsoft.Build.Tasks.CodeAnalysis.Sdk (19)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (18)
MapSourceRootTests.cs (12)
269"MapSourceRoots.NoSuchTopLevelSourceRoot", "SourceRoot.ContainingRoot", "SourceRoot", Utilities.GetFullPathNoThrow(path2))) + Environment.NewLine +
271"MapSourceRoots.NoSuchTopLevelSourceRoot", "SourceRoot.ContainingRoot", "SourceRoot", Utilities.GetFullPathNoThrow(path1))) + Environment.NewLine, engine.Log);
330"MapSourceRoots.ContainsDuplicate", "SourceRoot", Utilities.GetFullPathNoThrow(path1), "SourceControl", "git", "tfvc")) + Environment.NewLine +
332"MapSourceRoots.ContainsDuplicate", "SourceRoot", Utilities.GetFullPathNoThrow(path1), "RevisionId", "RevId1", "RevId2")) + Environment.NewLine +
334"MapSourceRoots.ContainsDuplicate", "SourceRoot", Utilities.GetFullPathNoThrow(path1), "NestedRoot", "NR1A", "NR1B")) + Environment.NewLine +
336"MapSourceRoots.ContainsDuplicate", "SourceRoot", Utilities.GetFullPathNoThrow(path1), "ContainingRoot", path3, "CR")) + Environment.NewLine +
338"MapSourceRoots.ContainsDuplicate", "SourceRoot", Utilities.GetFullPathNoThrow(path1), "MappedPath", "MP1", "MP2")) + Environment.NewLine +
340"MapSourceRoots.ContainsDuplicate", "SourceRoot", Utilities.GetFullPathNoThrow(path1), "SourceLinkUrl", "URL1", "URL2")) + Environment.NewLine,
378"MapSourceRoots.NoSuchTopLevelSourceRoot", "SourceRoot.ContainingRoot", "SourceRoot", Utilities.GetFullPathNoThrow(Utilities.FixFilePath(@"c:\MyProjects\MyProject\")))) + Environment.NewLine, engine.Log);
407"MapSourceRoots.NoSuchTopLevelSourceRoot", "SourceRoot.ContainingRoot", "SourceRoot", @"")) + Environment.NewLine, engine.Log);
441"MapSourceRoots.NoTopLevelSourceRoot", "SourceRoot", "DeterministicSourcePaths")) + Environment.NewLine, engine.Log);
497string.Join(Environment.NewLine, task.MappedSourceRoots.Select(InspectSourceRoot)));
Microsoft.Cci.Extensions (2)
Microsoft.CodeAnalysis (27)
Microsoft.CodeAnalysis.Analyzers (25)
Microsoft.CodeAnalysis.Analyzers.UnitTests (3)
Microsoft.CodeAnalysis.AnalyzerUtilities (25)
Microsoft.CodeAnalysis.BannedApiAnalyzers (25)
Microsoft.CodeAnalysis.CodeStyle (25)
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (2)
Microsoft.CodeAnalysis.Collections.Package (4)
Microsoft.CodeAnalysis.Contracts.Package (3)
Microsoft.CodeAnalysis.CSharp (4)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (6)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (15)
CommandLineTests.cs (14)
4805Assert.True(match.Success, $"Expected pattern:{Environment.NewLine}{pattern}{Environment.NewLine}Actual:{Environment.NewLine}{output}");
6024.Replace(Environment.NewLine, string.Empty), workingDirectory: tempDir) :
6059.Replace(Environment.NewLine, string.Empty), workingDirectory: tempDir) :
6139.Replace(Environment.NewLine, string.Empty)) :
8229var errorLines = outWriter.ToString().Trim().Split(new string[] { Environment.NewLine }, StringSplitOptions.None);
8242errorLines = outWriter.ToString().Trim().Split(new string[] { Environment.NewLine }, StringSplitOptions.None);
9011Assert.Contains($"error CS0016: Could not write to output file '{exePath}' -- 'Fake IOException'{Environment.NewLine}", outWriter.ToString());
9034Assert.Contains($"error CS0016: Could not write to output file '{pdbPath}' -- 'Fake IOException'{Environment.NewLine}", outWriter.ToString());
9056Assert.Equal($"error CS0016: Could not write to output file '{xmlPath}' -- 'Fake IOException'{Environment.NewLine}", outWriter.ToString());
9086Assert.Equal($"error CS0016: Could not write to output file '{sourceLinkPath}' -- 'Fake IOException'{Environment.NewLine}", outWriter.ToString());
10663expectedExitCode, exitCode, Environment.NewLine, Environment.NewLine, output));
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (12)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (15)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (7)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (4)
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Features (5)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (10)
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (8)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (22)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (85)
LexicalAndXml\PreprocessorTests.cs (10)
2104Assert.Equal($"#region A//B{Environment.NewLine}", regionDirective.ToFullString());
2126Assert.Equal($"#region A/\\B{Environment.NewLine}", regionDirective.ToFullString());
2214Assert.Equal($"#region \"{Environment.NewLine}", regionDirective.ToFullString());
2235Assert.Equal($"#region \" {Environment.NewLine}", regionDirective.ToFullString());
2256Assert.Equal($"#region \"goo\"{Environment.NewLine}", regionDirective.ToFullString());
2277Assert.Equal($"#region \"goo\" {Environment.NewLine}", regionDirective.ToFullString());
2298Assert.Equal($"#region \"\"{Environment.NewLine}", regionDirective.ToFullString());
2319Assert.Equal($"#region \"\" {Environment.NewLine}", regionDirective.ToFullString());
2340Assert.Equal($"#region \"\"\"{Environment.NewLine}", regionDirective.ToFullString());
2361Assert.Equal($"#region \"\"\" {Environment.NewLine}", regionDirective.ToFullString());
LexicalAndXml\XmlDocCommentTests.cs (67)
153Assert.Equal($"/// <goo />{Environment.NewLine}", node.ToFullString());
328Assert.Equal($"<goo {Environment.NewLine}/// />", doc.Content[1].ToFullString());
346Assert.Equal($"/// <goo {Environment.NewLine}/// />{Environment.NewLine}", node.ToFullString());
352Assert.Equal($"<goo {Environment.NewLine}/// />", doc.Content[1].ToFullString());
377Assert.Equal($"<goo {Environment.NewLine} * />", doc.Content[1].ToFullString());
397Assert.Equal($"/** <goo {Environment.NewLine} * />{Environment.NewLine} */", node.ToFullString());
403Assert.Equal($"<goo {Environment.NewLine} * />", doc.Content[1].ToFullString());
771Assert.Equal(Environment.NewLine, textsyntax.ChildNodesAndTokens()[0].ToString());
773Assert.Equal(Environment.NewLine, textsyntax.ChildNodesAndTokens()[2].ToString());
805Assert.Equal(Environment.NewLine, textsyntax.ChildNodesAndTokens()[0].ToString());
807Assert.Equal(Environment.NewLine, textsyntax.ChildNodesAndTokens()[2].ToString());
835Assert.Equal(Environment.NewLine, cdata.TextTokens[1].ToString());
837Assert.Equal(Environment.NewLine, cdata.TextTokens[3].ToString());
866Assert.Equal(Environment.NewLine, cdata.TextTokens[1].ToString());
868Assert.Equal(Environment.NewLine, cdata.TextTokens[3].ToString());
910Assert.Equal($"/// <![CDATA[ incomplete{Environment.NewLine}", node.ToFullString());
920Assert.Equal(Environment.NewLine, cdata.TextTokens[1].ToString());
997Assert.Equal(Environment.NewLine, comment.TextTokens[1].ToString());
999Assert.Equal(Environment.NewLine, comment.TextTokens[3].ToString());
1028Assert.Equal(Environment.NewLine, comment.TextTokens[1].ToString());
1030Assert.Equal(Environment.NewLine, comment.TextTokens[3].ToString());
1072Assert.Equal($"/// <!-- incomplete{Environment.NewLine}", node.ToFullString());
1082Assert.Equal(Environment.NewLine, comment.TextTokens[1].ToString());
1135Assert.Equal(Environment.NewLine, ProcessingInstruction.TextTokens[1].ToString());
1137Assert.Equal(Environment.NewLine, ProcessingInstruction.TextTokens[3].ToString());
1169Assert.Equal(Environment.NewLine, ProcessingInstruction.TextTokens[1].ToString());
1171Assert.Equal(Environment.NewLine, ProcessingInstruction.TextTokens[3].ToString());
1655Assert.Equal(Environment.NewLine, xmltext.ChildNodesAndTokens()[0].ToString());
1661Assert.Equal(Environment.NewLine, xmltext.ChildNodesAndTokens()[2].ToString());
2398Assert.Equal($"///</Goo>{Environment.NewLine}", xmlText.TextTokens.ToFullString());
2950SyntaxFactory.XmlNewLine(Environment.NewLine),
2955SyntaxFactory.XmlNewLine(Environment.NewLine)),
2956SyntaxFactory.XmlNewLine(Environment.NewLine),
2958SyntaxFactory.XmlNewLine(Environment.NewLine),
2977SyntaxFactory.XmlNewLine(Environment.NewLine),
2979SyntaxFactory.XmlNewLine(Environment.NewLine)));
2997SyntaxFactory.XmlNewLine(Environment.NewLine),
3005SyntaxFactory.XmlNewLine(Environment.NewLine)));
3041SyntaxFactory.XmlNewLine(Environment.NewLine),
3043SyntaxFactory.XmlNewLine(Environment.NewLine)),
3044SyntaxFactory.XmlNewLine(Environment.NewLine),
3045SyntaxFactory.XmlNewLine(Environment.NewLine),
3046SyntaxFactory.XmlNewLine(Environment.NewLine),
3048SyntaxFactory.XmlNewLine(Environment.NewLine),
3049SyntaxFactory.XmlNewLine(Environment.NewLine)));
3069SyntaxFactory.XmlNewLine(Environment.NewLine),
3071SyntaxFactory.XmlNewLine(Environment.NewLine)),
3072SyntaxFactory.XmlNewLine(Environment.NewLine),
3074SyntaxFactory.XmlNewLine(Environment.NewLine),
3096SyntaxFactory.XmlNewLine(Environment.NewLine),
3097SyntaxFactory.XmlNewLine(Environment.NewLine)),
3098SyntaxFactory.XmlNewLine(Environment.NewLine),
3100SyntaxFactory.XmlNewLine(Environment.NewLine),
3102SyntaxFactory.XmlNewLine(Environment.NewLine)));
3123SyntaxFactory.XmlNewLine(Environment.NewLine),
3124SyntaxFactory.XmlNewLine(Environment.NewLine)),
3125SyntaxFactory.XmlNewLine(Environment.NewLine),
3127SyntaxFactory.XmlNewLine(Environment.NewLine),
3131SyntaxFactory.XmlNewLine(Environment.NewLine)));
3150SyntaxFactory.XmlNewLine(Environment.NewLine),
3151SyntaxFactory.XmlNewLine(Environment.NewLine)),
3152SyntaxFactory.XmlNewLine(Environment.NewLine),
3175SyntaxFactory.XmlNewLine(Environment.NewLine),
3176SyntaxFactory.XmlNewLine(Environment.NewLine)),
3177SyntaxFactory.XmlNewLine(Environment.NewLine),
Microsoft.CodeAnalysis.CSharp.Test.Utilities (4)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (5)
Microsoft.CodeAnalysis.Debugging.Package (4)
Microsoft.CodeAnalysis.EditorFeatures (11)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (6)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (8)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (6)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (10)
Microsoft.CodeAnalysis.Extensions.Package (4)
Microsoft.CodeAnalysis.ExternalAccess.Copilot (1)
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (1)
Microsoft.CodeAnalysis.ExternalAccess.Xaml (1)
Microsoft.CodeAnalysis.Features (14)
Microsoft.CodeAnalysis.Features.Test.Utilities (8)
Microsoft.CodeAnalysis.Features.UnitTests (2)
Microsoft.CodeAnalysis.InteractiveHost (16)
Microsoft.CodeAnalysis.LanguageServer (16)
Microsoft.CodeAnalysis.LanguageServer.Protocol (10)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (4)
Microsoft.CodeAnalysis.LanguageServer.UnitTests (4)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (25)
Microsoft.CodeAnalysis.PooledObjects.Package (4)
Microsoft.CodeAnalysis.PublicApiAnalyzers (25)
Microsoft.CodeAnalysis.PublicApiAnalyzers.CodeFixes (1)
Microsoft.CodeAnalysis.PublicApiAnalyzers.UnitTests (1)
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Microsoft.CodeAnalysis.Remote.Workspaces (4)
Microsoft.CodeAnalysis.ResxSourceGenerator (30)
Microsoft.CodeAnalysis.ResxSourceGenerator.UnitTests (2)
Microsoft.CodeAnalysis.Scripting (2)
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (6)
Microsoft.CodeAnalysis.Scripting.TestUtilities (5)
Microsoft.CodeAnalysis.Test.Utilities (80)
Diagnostics\CommonDiagnosticAnalyzers.cs (8)
157" + String.Join("," + Environment.NewLine + " ", Descriptor1.CustomTags.Select(s => $"\"{s}\"")) + @"
171" + String.Join("," + Environment.NewLine + " ", Descriptor2.CustomTags.Select(s => $"\"{s}\"")) + @"
234" + String.Join("," + Environment.NewLine + " ", Descriptor1.CustomTags.Select(s => $"\"{s}\"")) + @"
248" + String.Join("," + Environment.NewLine + " ", Descriptor2.CustomTags.Select(s => $"\"{s}\"")) + @"
376" + string.Join("," + Environment.NewLine + " ", suppressionKinds.Select(s => $"\"{s}\"")) + @"
474" + string.Join("," + Environment.NewLine + " ", Descriptor1.CustomTags.Select(s => $"\"{s}\"")) + @"
495" + String.Join("," + Environment.NewLine + " ", Descriptor2.CustomTags.Select(s => $"\"{s}\"")) + @"
1131Assert.True(Environment.ProcessorCount > 1, "This analyzer is intended to be used only in a concurrent environment.");
Microsoft.CodeAnalysis.TestAnalyzerReference (1)
Microsoft.CodeAnalysis.Threading.Package (4)
Microsoft.CodeAnalysis.UnitTests (23)
Microsoft.CodeAnalysis.Workspaces (41)
Log\TraceLogger.cs (3)
22=> Trace.WriteLine(string.Format("[{0}] {1} - {2}", Environment.CurrentManagedThreadId, functionId.ToString(), logMessage.GetMessage()));
25=> Trace.WriteLine(string.Format("[{0}] Start({1}) : {2} - {3}", Environment.CurrentManagedThreadId, uniquePairId, functionId.ToString(), logMessage.GetMessage()));
30Trace.WriteLine(string.Format("[{0}] End({1}) : [{2}ms] {3}", Environment.CurrentManagedThreadId, uniquePairId, delta, functionString));
Microsoft.CodeAnalysis.Workspaces.MSBuild (7)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (11)
Microsoft.CodeAnalysis.Workspaces.MSBuild.Contracts (4)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (4)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (3)
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
Microsoft.CommonLanguageServerProtocol.Framework.Example (3)
Microsoft.CommonLanguageServerProtocol.Framework.Package (7)
Microsoft.Data.Analysis (1)
Microsoft.Data.Analysis.Tests (1)
Microsoft.DotNet.Arcade.Sdk (2)
Microsoft.DotNet.ArcadeAzureIntegration (15)
Microsoft.DotNet.Baselines.Tasks (1)
Microsoft.DotNet.Build.Tasks.Feed (24)
Microsoft.DotNet.Build.Tasks.Installers (1)
Microsoft.DotNet.Build.Tasks.VisualStudio (3)
Microsoft.DotNet.Helix.JobSender (5)
Microsoft.DotNet.Helix.Sdk (4)
Microsoft.DotNet.Helix.Sdk.Tests (5)
Microsoft.DotNet.NuGetRepack.Tests (1)
Microsoft.DotNet.Open.Api.Tools.Tests (1)
Microsoft.DotNet.RemoteExecutor (7)
Microsoft.DotNet.SharedFramework.Sdk (1)
Microsoft.DotNet.SignCheckLibrary (1)
Microsoft.DotNet.SignCheckTask (3)
Microsoft.DotNet.SignTool (6)
Microsoft.DotNet.SignTool.Tests (1)
Microsoft.DotNet.SwaggerGenerator.CmdLine (1)
Microsoft.DotNet.VersionTools.Cli (1)
Microsoft.DotNet.XUnitAssert.Tests (1041)
Asserts\AsyncCollectionAssertsTests.cs (108)
42 "Assert.All() Failure: 2 out of 6 items in the collection did not pass." + Environment.NewLine +
43 "[2]: Item: 42" + Environment.NewLine +
44 " Error: Assert.Equal() Failure: Values differ" + Environment.NewLine +
45 " Expected: 1" + Environment.NewLine +
46 " Actual: 42" + Environment.NewLine +
47 "[3]: Item: 2112" + Environment.NewLine +
48 " Error: Assert.Equal() Failure: Values differ" + Environment.NewLine +
49 " Expected: 1" + Environment.NewLine +
94 "Assert.All() Failure: 2 out of 6 items in the collection did not pass." + Environment.NewLine +
95 "[2]: Item: 42" + Environment.NewLine +
96 " Error: Assert.Equal() Failure: Values differ" + Environment.NewLine +
97 " Expected: 1" + Environment.NewLine +
98 " Actual: 42" + Environment.NewLine +
99 "[3]: Item: 2112" + Environment.NewLine +
100 " Error: Assert.Equal() Failure: Values differ" + Environment.NewLine +
101 " Expected: 1" + Environment.NewLine +
146 "Assert.Collection() Failure: Mismatched item count" + Environment.NewLine +
147 "Collection: []" + Environment.NewLine +
148 "Expected count: 1" + Environment.NewLine +
180 "Assert.Collection() Failure: Item comparison failure" + Environment.NewLine +
181 " ↓ (pos 1)" + Environment.NewLine +
182 "Collection: [42, 2112]" + Environment.NewLine +
183 "Error: Assert.Equal() Failure: Values differ" + Environment.NewLine +
184 " Expected: 2113" + Environment.NewLine +
185 " Actual: 2112" + Environment.NewLine +
219 "Assert.Collection() Failure: Mismatched item count" + Environment.NewLine +
220 "Collection: []" + Environment.NewLine +
221 "Expected count: 1" + Environment.NewLine +
269 "Assert.Collection() Failure: Item comparison failure" + Environment.NewLine +
270 " ↓ (pos 1)" + Environment.NewLine +
271 "Collection: [42, 2112]" + Environment.NewLine +
272 "Error: Assert.Equal() Failure: Values differ" + Environment.NewLine +
273 " Expected: 2113" + Environment.NewLine +
274 " Actual: 2112" + Environment.NewLine +
314 "Assert.Contains() Failure: Item not found in collection" + Environment.NewLine +
315 "Collection: [41, 43]" + Environment.NewLine +
385 "Assert.Contains() Failure: Filter not matched in collection" + Environment.NewLine +
418 "Assert.Distinct() Failure: Duplicate item found" + Environment.NewLine +
419 "Collection: [42, 42]" + Environment.NewLine +
434 "Assert.Distinct() Failure: Duplicate item found" + Environment.NewLine +
435 $"Collection: [\"a\", null, \"b\", null, \"c\", {ArgumentFormatter.Ellipsis}]" + Environment.NewLine +
459 "Assert.Distinct() Failure: Duplicate item found" + Environment.NewLine +
460 "Collection: [\"a\", \"b\", \"A\"]" + Environment.NewLine +
492 "Assert.DoesNotContain() Failure: Item found in collection" + Environment.NewLine +
493 " ↓ (pos 0)" + Environment.NewLine +
494 "Collection: [42]" + Environment.NewLine +
564 "Assert.DoesNotContain() Failure: Filter matched in collection" + Environment.NewLine +
565 " ↓ (pos 1)" + Environment.NewLine +
605 "Assert.Empty() Failure: Collection was not empty" + Environment.NewLine +
650 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
651 "Expected: " + expectedType + " []" + Environment.NewLine +
672 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
673 "Expected: null" + Environment.NewLine +
765 message += Environment.NewLine + " " + paddingBlanks + expectedPointer;
768 Environment.NewLine + "Expected: " + expectedType.PadRight(padding) + expectedDisplay +
769 Environment.NewLine + "Actual: " + actualType.PadRight(padding) + actualDisplay;
772 message += Environment.NewLine + " " + paddingBlanks + actualPointer;
803 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
804 " " + new string(' ', padding) + " ↓ (pos 0)" + Environment.NewLine +
805 "Expected: " + expectedType.PadRight(padding) + "[1, 2, 3, 4, 5]" + Environment.NewLine +
806 "Actual: " + actualType.PadRight(padding) + "[1, 2, 3, 4, 5]" + Environment.NewLine +
879 "Assert.Equal() Failure: Exception thrown during comparison" + Environment.NewLine +
880 " " + new string(' ', padding) + " ↓ (pos 0)" + Environment.NewLine +
881 "Expected: " + expectedType.PadRight(padding) + "[1, 2]" + Environment.NewLine +
882 "Actual: " + actualType.PadRight(padding) + "[1, 3]" + Environment.NewLine +
933 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
934 " " + new string(' ', padding) + " ↓ (pos 0)" + Environment.NewLine +
936 "Expected: " + expectedType.PadRight(padding) + $"[EquatableObject {{ {ArgumentFormatter.Ellipsis} }}]" + Environment.NewLine +
937 "Actual: " + actualType.PadRight(padding) + $"[EquatableObject {{ {ArgumentFormatter.Ellipsis} }}]" + Environment.NewLine +
984 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
985 " " + new string(' ', padding) + " ↓ (pos 0)" + Environment.NewLine +
986 "Expected: " + expectedType.PadRight(padding) + "[1, 2, 3, 4, 5]" + Environment.NewLine +
987 "Actual: " + actualType.PadRight(padding) + "[1, 2, 3, 4, 5]" + Environment.NewLine +
1046 "Assert.Equal() Failure: Exception thrown during comparison" + Environment.NewLine +
1047 " " + new string(' ', padding) + " ↓ (pos 0)" + Environment.NewLine +
1048 "Expected: " + expectedType.PadRight(padding) + "[1, 2]" + Environment.NewLine +
1049 "Actual: " + actualType.PadRight(padding) + "[1, 3]" + Environment.NewLine +
1112 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
1113 "Expected: Not null" + Environment.NewLine +
1161 "Assert.NotEqual() Failure: Collections are equal" + Environment.NewLine +
1162 $"Expected: Not {expectedType.PadRight(padding)}[1, 2, 3, 4, 5, {ArgumentFormatter.Ellipsis}]" + Environment.NewLine +
1211 "Assert.NotEqual() Failure: Collections are equal" + Environment.NewLine +
1212 "Expected: Not " + expectedType.PadRight(padding) + "[1, 2, 3, 4, 5]" + Environment.NewLine +
1248 "Assert.NotEqual() Failure: Exception thrown during comparison" + Environment.NewLine +
1249 " " + new string(' ', padding) + " ↓ (pos 0)" + Environment.NewLine +
1250 "Expected: Not " + expectedType.PadRight(padding) + "[1, 2]" + Environment.NewLine +
1251 "Actual: " + actualType.PadRight(padding) + "[1, 2]" + Environment.NewLine +
1290 "Assert.NotEqual() Failure: Collections are equal" + Environment.NewLine +
1292 "Expected: Not " + expectedType.PadRight(padding) + $"[EquatableObject {{ {ArgumentFormatter.Ellipsis} }}]" + Environment.NewLine +
1359 "Assert.NotEqual() Failure: Collections are equal" + Environment.NewLine +
1360 "Expected: Not " + expectedType.PadRight(padding) + "[1, 2, 3, 4, 5]" + Environment.NewLine +
1386 "Assert.NotEqual() Failure: Exception thrown during comparison" + Environment.NewLine +
1387 " " + new string(' ', padding) + " ↓ (pos 0)" + Environment.NewLine +
1388 "Expected: Not " + expectedType.PadRight(padding) + "[1, 2]" + Environment.NewLine +
1389 "Actual: " + actualType.PadRight(padding) + "[1, 2]" + Environment.NewLine +
1440 "Assert.Single() Failure: The collection contained 2 items" + Environment.NewLine +
1455 "Assert.Single() Failure: The collection contained 7 items" + Environment.NewLine +
1480 "Assert.Single() Failure: The collection contained 5 items" + Environment.NewLine +
1515 "Assert.Single() Failure: The collection did not contain any matching items" + Environment.NewLine +
1516 "Expected: (predicate expression)" + Environment.NewLine +
1531 "Assert.Single() Failure: The collection contained 2 matching items" + Environment.NewLine +
1532 "Expected: (predicate expression)" + Environment.NewLine +
1533 "Collection: [\"Hello\", \"World\"]" + Environment.NewLine +
1548 "Assert.Single() Failure: The collection contained 2 matching items" + Environment.NewLine +
1549 "Expected: (predicate expression)" + Environment.NewLine +
1550 $"Collection: [1, 2, 3, 4, 5, {ArgumentFormatter.Ellipsis}]" + Environment.NewLine +
1575 "Assert.Single() Failure: The collection did not contain any matching items" + Environment.NewLine +
1576 "Expected: (predicate expression)" + Environment.NewLine +
Asserts\CollectionAssertsTests.cs (166)
46 "Assert.All() Failure: 2 out of 6 items in the collection did not pass." + Environment.NewLine +
47 "[2]: Item: 42" + Environment.NewLine +
48 " Error: Assert.Equal() Failure: Values differ" + Environment.NewLine +
49 " Expected: 1" + Environment.NewLine +
50 " Actual: 42" + Environment.NewLine +
51 "[3]: Item: 2112" + Environment.NewLine +
52 " Error: Assert.Equal() Failure: Values differ" + Environment.NewLine +
53 " Expected: 1" + Environment.NewLine +
67 "Assert.All() Failure: The collection was empty." + Environment.NewLine +
119 "Assert.All() Failure: 2 out of 6 items in the collection did not pass." + Environment.NewLine +
120 "[2]: Item: 42" + Environment.NewLine +
121 " Error: Assert.Equal() Failure: Values differ" + Environment.NewLine +
122 " Expected: 1" + Environment.NewLine +
123 " Actual: 42" + Environment.NewLine +
124 "[3]: Item: 2112" + Environment.NewLine +
125 " Error: Assert.Equal() Failure: Values differ" + Environment.NewLine +
126 " Expected: 1" + Environment.NewLine +
140 "Assert.All() Failure: The collection was empty." + Environment.NewLine +
185 "Assert.Collection() Failure: Mismatched item count" + Environment.NewLine +
186 "Collection: []" + Environment.NewLine +
187 "Expected count: 1" + Environment.NewLine +
219 "Assert.Collection() Failure: Item comparison failure" + Environment.NewLine +
220 " ↓ (pos 1)" + Environment.NewLine +
221 "Collection: [42, 2112]" + Environment.NewLine +
222 "Error: Assert.Equal() Failure: Values differ" + Environment.NewLine +
223 " Expected: 2113" + Environment.NewLine +
224 " Actual: 2112" + Environment.NewLine +
258 "Assert.Collection() Failure: Mismatched item count" + Environment.NewLine +
259 "Collection: []" + Environment.NewLine +
260 "Expected count: 1" + Environment.NewLine +
308 "Assert.Collection() Failure: Item comparison failure" + Environment.NewLine +
309 " ↓ (pos 1)" + Environment.NewLine +
310 "Collection: [42, 2112]" + Environment.NewLine +
311 "Error: Assert.Equal() Failure: Values differ" + Environment.NewLine +
312 " Expected: 2113" + Environment.NewLine +
313 " Actual: 2112" + Environment.NewLine +
353 "Assert.Contains() Failure: Item not found in collection" + Environment.NewLine +
354 "Collection: [41, 43]" + Environment.NewLine +
417 "Assert.Contains() Failure: Item not found in collection" + Environment.NewLine +
418 "Collection: [\"Hi there\"]" + Environment.NewLine +
458 "Assert.Contains() Failure: Filter not matched in collection" + Environment.NewLine +
491 "Assert.Distinct() Failure: Duplicate item found" + Environment.NewLine +
492 "Collection: [42, 42]" + Environment.NewLine +
507 "Assert.Distinct() Failure: Duplicate item found" + Environment.NewLine +
508 $"Collection: [\"a\", null, \"b\", null, \"c\", {ArgumentFormatter.Ellipsis}]" + Environment.NewLine +
532 "Assert.Distinct() Failure: Duplicate item found" + Environment.NewLine +
533 "Collection: [\"a\", \"b\", \"A\"]" + Environment.NewLine +
565 "Assert.DoesNotContain() Failure: Item found in collection" + Environment.NewLine +
566 " ↓ (pos 0)" + Environment.NewLine +
567 "Collection: [42]" + Environment.NewLine +
599 "Assert.DoesNotContain() Failure: Item found in set" + Environment.NewLine +
600 "Set: [\"Hi there\"]" + Environment.NewLine +
618 "Assert.DoesNotContain() Failure: Item found in set" + Environment.NewLine +
619 "Set: [\"Hi there\"]" + Environment.NewLine +
683 "Assert.DoesNotContain() Failure: Filter matched in collection" + Environment.NewLine +
684 " ↓ (pos 1)" + Environment.NewLine +
724 "Assert.Empty() Failure: Collection was not empty" + Environment.NewLine +
764 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
765 "Expected: int[] []" + Environment.NewLine +
781 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
782 "Expected: null" + Environment.NewLine +
833 message += Environment.NewLine + " " + expectedPointer;
843 Environment.NewLine + "Expected: " + expectedType + ArgumentFormatter.Format(expected) +
844 Environment.NewLine + "Actual: " + actualType + ArgumentFormatter.Format(actual);
847 message += Environment.NewLine + " " + actualPointer;
908 message += Environment.NewLine + " " + expectedPointer;
911 Environment.NewLine + "Expected: " + expectedDisplay +
912 Environment.NewLine + "Actual: " + actualDisplay;
915 message += Environment.NewLine + " " + actualPointer;
930 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
931 " ↓ (pos 2, type System.Int32)" + Environment.NewLine +
932 "Expected: [1, 2, 3]" + Environment.NewLine +
933 "Actual: [1, 2, 3]" + Environment.NewLine +
1064 message += Environment.NewLine + " " + expectedPointer;
1067 Environment.NewLine + "Expected: " + expectedDisplay +
1068 Environment.NewLine + "Actual: " + actualDisplay;
1071 message += Environment.NewLine + " " + actualPointer;
1092 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
1093 " ↓ (pos 0)" + Environment.NewLine +
1094 "Expected: int[] [1, 2, 3, 4, 5]" + Environment.NewLine +
1095 "Actual: List<int> [1, 2, 3, 4, 5]" + Environment.NewLine +
1157 "Assert.Equal() Failure: Exception thrown during comparison" + Environment.NewLine +
1158 " ↓ (pos 0)" + Environment.NewLine +
1159 "Expected: [1, 2]" + Environment.NewLine +
1160 "Actual: [1, 3]" + Environment.NewLine +
1238 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
1239 " ↓ (pos 0)" + Environment.NewLine +
1240 "Expected: int[] [1, 2, 3, 4, 5]" + Environment.NewLine +
1241 "Actual: List<int> [1, 2, 3, 4, 5]" + Environment.NewLine +
1291 "Assert.Equal() Failure: Exception thrown during comparison" + Environment.NewLine +
1292 " ↓ (pos 0)" + Environment.NewLine +
1293 "Expected: [1, 2]" + Environment.NewLine +
1294 "Actual: [1, 3]" + Environment.NewLine +
1332 "Assert.Equal() Failure: Dictionaries differ" + Environment.NewLine +
1334 "Expected: [[a, 1], [b, 2], [c, 3]]" + Environment.NewLine +
1354 "Assert.Equal() Failure: Dictionaries differ" + Environment.NewLine +
1356 "Expected: [[a, 1], [b, 2]]" + Environment.NewLine +
1392 "Assert.Equal() Failure: Dictionaries differ" + Environment.NewLine +
1394 $"Expected: [[a, 1], [be, 2], [c, 3], [d, 4], [e, 5], {ArgumentFormatter.Ellipsis}]" + Environment.NewLine +
1453 "Assert.Equal() Failure: Dictionaries differ" + Environment.NewLine +
1455 "Expected: [[toAddresses, System.Collections.Generic.List`1[System.String]], [ccAddresses, System.Collections.Generic.List`1[System.String]]]" + Environment.NewLine +
1576 "Assert.Equal() Failure: Dictionaries differ" + Environment.NewLine +
1578 "Expected: [[key, System.Collections.Generic.Dictionary`2[System.String,System.Object]]]" + Environment.NewLine +
1629 "Assert.Equal() Failure: HashSets differ" + Environment.NewLine +
1630 "Expected: [42, 2112]" + Environment.NewLine +
1647 "Assert.Equal() Failure: HashSets differ" + Environment.NewLine +
1648 "Expected: [[True, False]]" + Environment.NewLine +
1664 "Assert.Equal() Failure: HashSets differ" + Environment.NewLine +
1665 "Expected: [[True, False]]" + Environment.NewLine +
1745 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
1746 "Expected: Not null" + Environment.NewLine +
1782 "Assert.NotEqual() Failure: Collections are equal" + Environment.NewLine +
1783 "Expected: Not [\"@\", \"a\", \"ab\", \"b\"]" + Environment.NewLine +
1798 "Assert.NotEqual() Failure: Collections are equal" + Environment.NewLine +
1799 "Expected: Not [[\"@\", \"a\"], [\"ab\", \"b\"]]" + Environment.NewLine +
1833 "Assert.NotEqual() Failure: Collections are equal" + Environment.NewLine +
1834 $"Expected: Not int[] [1, 2, 3, 4, 5, {ArgumentFormatter.Ellipsis}]" + Environment.NewLine +
1871 "Assert.NotEqual() Failure: Collections are equal" + Environment.NewLine +
1872 "Expected: Not int[] [1, 2, 3, 4, 5]" + Environment.NewLine +
1895 "Assert.NotEqual() Failure: Exception thrown during comparison" + Environment.NewLine +
1896 " ↓ (pos 0)" + Environment.NewLine +
1897 "Expected: Not [1, 2]" + Environment.NewLine +
1898 "Actual: [1, 2]" + Environment.NewLine +
1983 "Assert.NotEqual() Failure: Collections are equal" + Environment.NewLine +
1984 "Expected: Not int[] [1, 2, 3, 4, 5]" + Environment.NewLine +
2003 "Assert.NotEqual() Failure: Exception thrown during comparison" + Environment.NewLine +
2004 " ↓ (pos 0)" + Environment.NewLine +
2005 "Expected: Not [1, 2]" + Environment.NewLine +
2006 "Actual: [1, 2]" + Environment.NewLine +
2026 "Assert.NotEqual() Failure: Dictionaries are equal" + Environment.NewLine +
2028 "Expected: Not [[a, 1], [b, 2], [c, 3]]" + Environment.NewLine +
2048 "Assert.NotEqual() Failure: Dictionaries are equal" + Environment.NewLine +
2050 "Expected: Not [[a, 1], [b, 2], [c, 3]]" + Environment.NewLine +
2128 "Assert.NotEqual() Failure: Dictionaries are equal" + Environment.NewLine +
2130 "Expected: Not [[toAddresses, System.Collections.Generic.List`1[System.String]], [ccAddresses, System.Collections.Generic.List`1[System.String]]]" + Environment.NewLine +
2242 "Assert.NotEqual() Failure: Dictionaries are equal" + Environment.NewLine +
2244 "Expected: Not [[key, System.Collections.Generic.Dictionary`2[System.String,System.Object]]]" + Environment.NewLine +
2300 "Assert.NotEqual() Failure: HashSets are equal" + Environment.NewLine +
2301 "Expected: Not [42, 2112]" + Environment.NewLine +
2318 "Assert.NotEqual() Failure: HashSets are equal" + Environment.NewLine +
2319 "Expected: Not [[True, False]]" + Environment.NewLine +
2335 "Assert.NotEqual() Failure: HashSets are equal" + Environment.NewLine +
2336 "Expected: Not [[True, False]]" + Environment.NewLine +
2434 "Assert.Single() Failure: The collection contained 2 items" + Environment.NewLine +
2449 "Assert.Single() Failure: The collection contained 7 items" + Environment.NewLine +
2489 "Assert.Single() Failure: The collection did not contain any matching items" + Environment.NewLine +
2490 "Expected: \"foo\"" + Environment.NewLine +
2505 "Assert.Single() Failure: The collection contained 2 matching items" + Environment.NewLine +
2506 "Expected: \"Hello\"" + Environment.NewLine +
2507 "Collection: [\"Hello\", \"World\", \"Hello\"]" + Environment.NewLine +
2522 "Assert.Single() Failure: The collection contained 2 matching items" + Environment.NewLine +
2523 "Expected: 4" + Environment.NewLine +
2524 $"Collection: [1, 2, 3, 4, 5, {ArgumentFormatter.Ellipsis}]" + Environment.NewLine +
2569 "Assert.Single() Failure: The collection contained 2 items" + Environment.NewLine +
2584 "Assert.Single() Failure: The collection contained 7 items" + Environment.NewLine +
2609 "Assert.Single() Failure: The collection contained 5 items" + Environment.NewLine +
2644 "Assert.Single() Failure: The collection did not contain any matching items" + Environment.NewLine +
2645 "Expected: (predicate expression)" + Environment.NewLine +
2660 "Assert.Single() Failure: The collection contained 2 matching items" + Environment.NewLine +
2661 "Expected: (predicate expression)" + Environment.NewLine +
2662 "Collection: [\"Hello\", \"World\"]" + Environment.NewLine +
2677 "Assert.Single() Failure: The collection contained 2 matching items" + Environment.NewLine +
2678 "Expected: (predicate expression)" + Environment.NewLine +
2679 $"Collection: [1, 2, 3, 4, 5, {ArgumentFormatter.Ellipsis}]" + Environment.NewLine +
2704 "Assert.Single() Failure: The collection did not contain any matching items" + Environment.NewLine +
2705 "Expected: (predicate expression)" + Environment.NewLine +
Asserts\EqualityAssertsTests.cs (277)
67 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
68 "Expected: 42" + Environment.NewLine +
79 $"This is a long{Environment.NewLine}string with{Environment.NewLine}new lines" as object,
80 $"This is a long{Environment.NewLine}string with embedded{Environment.NewLine}new lines"
86 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
87 "Expected: This is a long" + Environment.NewLine +
88 " string with" + Environment.NewLine +
89 " new lines" + Environment.NewLine +
90 "Actual: This is a long" + Environment.NewLine +
91 " string with embedded" + Environment.NewLine +
119 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
120 "Expected: 42" + Environment.NewLine +
143 "Assert.Equal() Failure: Exception thrown during comparison" + Environment.NewLine +
144 "Expected: 42" + Environment.NewLine +
166 "Assert.Equal() Failure: Exception thrown during comparison" + Environment.NewLine +
167 "Expected: [1, 2]" + Environment.NewLine +
204 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
205 "Expected: 42" + Environment.NewLine +
218 "Assert.Equal() Failure: Exception thrown during comparison" + Environment.NewLine +
219 "Expected: 42" + Environment.NewLine +
239 "Assert.Equal() Failure: Exception thrown during comparison" + Environment.NewLine +
240 "Expected: [1, 2]" + Environment.NewLine +
270 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
272 $"Expected: SpyComparable {{ {ArgumentFormatter.Ellipsis} }}" + Environment.NewLine +
305 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
307 $"Expected: MultiComparable {{ {ArgumentFormatter.Ellipsis} }}" + Environment.NewLine +
344 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
346 $"Expected: MultiComparable {{ {ArgumentFormatter.Ellipsis} }}" + Environment.NewLine +
379 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
381 $"Expected: SpyComparable_Generic {{ {ArgumentFormatter.Ellipsis} }}" + Environment.NewLine +
440 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
442 $"Expected: ComparableBaseClass {{ {ArgumentFormatter.Ellipsis} }}" + Environment.NewLine +
471 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
473 $"Expected: ComparableSubClassA {{ {ArgumentFormatter.Ellipsis} }}" + Environment.NewLine +
506 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
508 $"Expected: ComparableThrower {{ {ArgumentFormatter.Ellipsis} }}" + Environment.NewLine +
627 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
629 $"Expected: NonComparableObject {{ {ArgumentFormatter.Ellipsis} }}" + Environment.NewLine +
664 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
666 $"Expected: SpyEquatable {{ {ArgumentFormatter.Ellipsis} }}" + Environment.NewLine +
695 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
697 $"Expected: EquatableSubClassA {{ {ArgumentFormatter.Ellipsis} }}" + Environment.NewLine +
726 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
728 $"Expected: EquatableBaseClass {{ {ArgumentFormatter.Ellipsis} }}" + Environment.NewLine +
757 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
759 $"Expected: EquatableSubClassA {{ {ArgumentFormatter.Ellipsis} }}" + Environment.NewLine +
851 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
853 $"Expected: StructuralStringWrapper {{ {ArgumentFormatter.Ellipsis} }}" + Environment.NewLine +
891 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
892 "Expected: Tuple (null)" + Environment.NewLine +
919 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
921 $"Expected: Tuple (StringWrapper {{ {ArgumentFormatter.Ellipsis} }})" + Environment.NewLine +
961 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
962 " ↓ (pos 0)" + Environment.NewLine +
963 "Expected: string[] [\"C:\\\\Program Files (x86)\\\\Common Files\\\\Extremely L\"···]" + Environment.NewLine +
964 "Actual: ReadOnlyCollection<string> [\"C:\\\\Program Files (x86)\\\\Common Files\\\\Extremely L\"···]" + Environment.NewLine +
1000 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
1001 " ↓ (pos 0)" + Environment.NewLine +
1002 "Expected: [[[1]]]" + Environment.NewLine +
1003 "Actual: [[[2]]]" + Environment.NewLine +
1032 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
1033 " ↓ (pos 1)" + Environment.NewLine +
1034 "Expected: string[] [\"foo\", \"bar\"]" + Environment.NewLine +
1035 "Actual: object[] [\"foo\", \"baz\"]" + Environment.NewLine +
1073 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
1074 "Expected: [1, 2]" + Environment.NewLine +
1126 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
1127 " ↓ (pos 2)" + Environment.NewLine +
1128 "Expected: [1, 2, 3, 4, 5]" + Environment.NewLine +
1129 "Actual: [1, 2, 0, 4, 5]" + Environment.NewLine +
1149 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
1150 "Expected: [1, 2, 3, 4, 5]" + Environment.NewLine +
1163 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
1164 $"Expected: UnsafeEnumerable [{ArgumentFormatter.Ellipsis}]" + Environment.NewLine +
1208 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
1209 "Expected: [42, 2112]" + Environment.NewLine +
1270 "Assert.Equal() Failure: Dictionaries differ" + Environment.NewLine +
1272 "Expected: [[foo, bar]]" + Environment.NewLine +
1309 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
1311 "Expected: Dictionary<string, string> [[foo, bar]]" + Environment.NewLine +
1344 "Assert.Equal() Failure: Dictionaries differ" + Environment.NewLine +
1346 "Expected: [[two, ]]" + Environment.NewLine +
1378 "Assert.Equal() Failure: HashSets differ" + Environment.NewLine +
1379 "Expected: [1, 2, 3]" + Environment.NewLine +
1404 "Assert.Equal() Failure: HashSets differ" + Environment.NewLine +
1405 "Expected: [1, 2, 3]" + Environment.NewLine +
1421 "Assert.Equal() Failure: HashSets differ" + Environment.NewLine +
1422 "Expected: [1, 2, 3]" + Environment.NewLine +
1438 "Assert.Equal() Failure: HashSets differ" + Environment.NewLine +
1439 "Expected: [1, 2]" + Environment.NewLine +
1532 "Assert.Equal() Failure: Sets differ" + Environment.NewLine +
1533 "Expected: [\"bar\", \"foo\"]" + Environment.NewLine +
1575 "Assert.Equal() Failure: Sets differ" + Environment.NewLine +
1576 "Expected: [\"bar\", \"foo\"]" + Environment.NewLine +
1603 "Assert.Equal() Failure: Sets differ" + Environment.NewLine +
1604 "Expected: [\"bar\"]" + Environment.NewLine +
1646 "Assert.Equal() Failure: Sets differ" + Environment.NewLine +
1647 "Expected: NonGenericSet [\"bar\"]" + Environment.NewLine +
1689 "Assert.Equal() Failure: Sets differ" + Environment.NewLine +
1690 "Expected: [\"foo\", \"bar\"]" + Environment.NewLine +
1749 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
1750 " ↓ (pos 2)" + Environment.NewLine +
1751 "Expected: [1, 2, 3]" + Environment.NewLine +
1752 "Actual: [1, 2, 4]" + Environment.NewLine +
1856 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
1858 "Expected: [EqualityAssertsTests+Equal+KeyValuePair+EquatableObject, 42]" + Environment.NewLine +
1887 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
1889 "Expected: [Key1, EqualityAssertsTests+Equal+KeyValuePair+EquatableObject]" + Environment.NewLine +
1935 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
1936 $"Expected: [{ArgumentFormatter.Ellipsis}, 2, 3, 4, 5]" + Environment.NewLine +
1937 $"Actual: [{ArgumentFormatter.Ellipsis}, 2, 3, 4, 5, 6]" + Environment.NewLine +
1968 $"Assert.Equal() Failure: Values differ" + Environment.NewLine +
1969 $"Expected: {ArgumentFormatter.Format(expected)}" + Environment.NewLine +
2002 $"Assert.Equal() Failure: Values differ" + Environment.NewLine +
2003 $"Expected: {ArgumentFormatter.Format(date1)}" + Environment.NewLine +
2013 $"Assert.Equal() Failure: Values differ" + Environment.NewLine +
2014 $"Expected: {ArgumentFormatter.Format(date2)}" + Environment.NewLine +
2046 $"Assert.Equal() Failure: Values differ" + Environment.NewLine +
2047 $"Expected: {ArgumentFormatter.Format(expected)}" + Environment.NewLine +
2075 $"Assert.Equal() Failure: Values differ" + Environment.NewLine +
2076 $"Expected: {ArgumentFormatter.Format(expected)}" + Environment.NewLine +
2109 $"Assert.Equal() Failure: Values differ" + Environment.NewLine +
2110 $"Expected: {ArgumentFormatter.Format(date1)}" + Environment.NewLine +
2120 $"Assert.Equal() Failure: Values differ" + Environment.NewLine +
2121 $"Expected: {ArgumentFormatter.Format(date2)}" + Environment.NewLine +
2154 $"Assert.Equal() Failure: Values differ" + Environment.NewLine +
2155 $"Expected: {ArgumentFormatter.Format(date1)}" + Environment.NewLine +
2165 $"Assert.Equal() Failure: Values differ" + Environment.NewLine +
2166 $"Expected: {ArgumentFormatter.Format(date2)}" + Environment.NewLine +
2189 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
2190 $"Expected: {0.111M} (rounded from {0.11111M})" + Environment.NewLine +
2214 "Assert.Equal() Failure: Values are not within 3 decimal places" + Environment.NewLine +
2215 $"Expected: {0.111:G17} (rounded from {0.11111:G17})" + Environment.NewLine +
2237 $"Assert.Equal() Failure: Values are not within 4 decimal places" + Environment.NewLine +
2238 $"Expected: {0.1111:G17} (rounded from {0.11113:G17})" + Environment.NewLine +
2270 $"Assert.Equal() Failure: Values are not within tolerance {0.00001:G17}" + Environment.NewLine +
2271 $"Expected: {0.11113:G17}" + Environment.NewLine +
2290 $"Assert.Equal() Failure: Values are not within tolerance {20000000.0:G17}" + Environment.NewLine +
2291 $"Expected: {20210102.2208:G17}" + Environment.NewLine +
2310 $"Assert.Equal() Failure: Values are not within tolerance {1.0:G17}" + Environment.NewLine +
2311 $"Expected: {double.PositiveInfinity}" + Environment.NewLine +
2324 $"Assert.Equal() Failure: Values are not within tolerance {1.0:G17}" + Environment.NewLine +
2325 $"Expected: {0.0:G17}" + Environment.NewLine +
2350 "Assert.Equal() Failure: Values are not within 3 decimal places" + Environment.NewLine +
2351 $"Expected: {0.111:G9} (rounded from {0.11111f:G9})" + Environment.NewLine +
2373 "Assert.Equal() Failure: Values are not within 4 decimal places" + Environment.NewLine +
2374 $"Expected: {0.1111:G9} (rounded from {0.111133f:G9})" + Environment.NewLine +
2406 $"Assert.Equal() Failure: Values are not within tolerance {0.00001f:G9}" + Environment.NewLine +
2407 $"Expected: {0.11113f:G9}" + Environment.NewLine +
2426 $"Assert.Equal() Failure: Values are not within tolerance {20000000.0f:G9}" + Environment.NewLine +
2427 $"Expected: {20210102.2208f:G9}" + Environment.NewLine +
2446 $"Assert.Equal() Failure: Values are not within tolerance {1.0f:G9}" + Environment.NewLine +
2447 $"Expected: {float.PositiveInfinity}" + Environment.NewLine +
2460 $"Assert.Equal() Failure: Values are not within tolerance {1.0f:G9}" + Environment.NewLine +
2461 $"Expected: {0.0f:G9}" + Environment.NewLine +
2480 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
2481 "Expected: Not 42" + Environment.NewLine +
2509 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
2510 "Expected: Not 42" + Environment.NewLine +
2539 "Assert.NotEqual() Failure: Exception thrown during comparison" + Environment.NewLine +
2540 "Expected: Not 42" + Environment.NewLine +
2562 "Assert.NotEqual() Failure: Exception thrown during comparison" + Environment.NewLine +
2563 "Expected: Not [1, 2]" + Environment.NewLine +
2585 "Assert.NotEqual() Failure: Exception thrown during comparison" + Environment.NewLine +
2586 "Expected: Not \"42\"" + Environment.NewLine +
2617 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
2618 "Expected: Not 42" + Environment.NewLine +
2637 "Assert.NotEqual() Failure: Exception thrown during comparison" + Environment.NewLine +
2638 "Expected: Not 42" + Environment.NewLine +
2658 "Assert.NotEqual() Failure: Exception thrown during comparison" + Environment.NewLine +
2659 "Expected: Not [1, 2]" + Environment.NewLine +
2673 "Assert.NotEqual() Failure: Exception thrown during comparison" + Environment.NewLine +
2674 "Expected: Not \"42\"" + Environment.NewLine +
2694 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
2696 $"Expected: Not SpyComparable {{ {ArgumentFormatter.Ellipsis} }}" + Environment.NewLine +
2728 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
2730 $"Expected: Not MultiComparable {{ {ArgumentFormatter.Ellipsis} }}" + Environment.NewLine +
2768 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
2770 $"Expected: Not MultiComparable {{ {ArgumentFormatter.Ellipsis} }}" + Environment.NewLine +
2803 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
2805 $"Expected: Not SpyComparable_Generic {{ {ArgumentFormatter.Ellipsis} }}" + Environment.NewLine +
2835 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
2837 $"Expected: Not ComparableSubClassA {{ {ArgumentFormatter.Ellipsis} }}" + Environment.NewLine +
2866 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
2868 $"Expected: Not ComparableBaseClass {{ {ArgumentFormatter.Ellipsis} }}" + Environment.NewLine +
2897 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
2899 $"Expected: Not ComparableSubClassA {{ {ArgumentFormatter.Ellipsis} }}" + Environment.NewLine +
2930 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
2932 $"Expected: Not ComparableThrower {{ {ArgumentFormatter.Ellipsis} }}" + Environment.NewLine +
3053 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
3055 $"Expected: Not NonComparableObject {{ {ArgumentFormatter.Ellipsis} }}" + Environment.NewLine +
3087 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
3089 $"Expected: Not SpyEquatable {{ {ArgumentFormatter.Ellipsis} }}" + Environment.NewLine +
3121 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
3123 $"Expected: Not EquatableSubClassA {{ {ArgumentFormatter.Ellipsis} }}" + Environment.NewLine +
3152 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
3154 $"Expected: Not EquatableBaseClass {{ {ArgumentFormatter.Ellipsis} }}" + Environment.NewLine +
3183 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
3185 $"Expected: Not EquatableSubClassA {{ {ArgumentFormatter.Ellipsis} }}" + Environment.NewLine +
3275 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
3277 $"Expected: Not StructuralStringWrapper {{ {ArgumentFormatter.Ellipsis} }}" + Environment.NewLine +
3315 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
3316 "Expected: Not Tuple (null)" + Environment.NewLine +
3364 "Assert.NotEqual() Failure: Collections are equal" + Environment.NewLine +
3365 "Expected: Not string[] [\"foo\", \"bar\"]" + Environment.NewLine +
3395 "Assert.NotEqual() Failure: Collections are equal" + Environment.NewLine +
3396 "Expected: Not [[[1]]]" + Environment.NewLine +
3423 "Assert.NotEqual() Failure: Collections are equal" + Environment.NewLine +
3424 "Expected: Not string[] [\"foo\", \"bar\"]" + Environment.NewLine +
3456 "Assert.NotEqual() Failure: Collections are equal" + Environment.NewLine +
3457 "Expected: Not [1, 2]" + Environment.NewLine +
3517 "Assert.NotEqual() Failure: Collections are equal" + Environment.NewLine +
3518 "Expected: Not [42, 2112]" + Environment.NewLine +
3576 "Assert.NotEqual() Failure: Dictionaries are equal" + Environment.NewLine +
3578 "Expected: Not [[foo, bar]]" + Environment.NewLine +
3616 "Assert.NotEqual() Failure: Collections are equal" + Environment.NewLine +
3618 "Expected: Not Dictionary<string, string> [[foo, bar]]" + Environment.NewLine +
3652 "Assert.NotEqual() Failure: Dictionaries are equal" + Environment.NewLine +
3654 "Expected: Not [[two, ]]" + Environment.NewLine +
3686 "Assert.NotEqual() Failure: HashSets are equal" + Environment.NewLine +
3687 "Expected: Not [1, 2, 3]" + Environment.NewLine +
3712 "Assert.NotEqual() Failure: HashSets are equal" + Environment.NewLine +
3713 "Expected: Not [1, 2, 3]" + Environment.NewLine +
3740 "Assert.NotEqual() Failure: Sets are equal" + Environment.NewLine +
3741 "Expected: Not HashSet<string> [\"bar\", \"foo\"]" + Environment.NewLine +
3801 "Assert.NotEqual() Failure: Sets are equal" + Environment.NewLine +
3802 "Expected: Not [\"bar\", \"foo\"]" + Environment.NewLine +
3844 "Assert.NotEqual() Failure: Sets are equal" + Environment.NewLine +
3845 "Expected: Not [\"bar\", \"foo\"]" + Environment.NewLine +
3902 "Assert.NotEqual() Failure: Sets are equal" + Environment.NewLine +
3903 "Expected: Not NonGenericSet [\"bar\"]" + Environment.NewLine +
3945 "Assert.NotEqual() Failure: Sets are equal" + Environment.NewLine +
3946 "Expected: Not [\"foo\", \"bar\"]" + Environment.NewLine +
4011 "Assert.NotEqual() Failure: Collections are equal" + Environment.NewLine +
4012 "Expected: Not [1, 2, 3]" + Environment.NewLine +
4037 @"Assert.NotEqual() Failure: Strings are equal" + Environment.NewLine +
4038 @"Expected: Not ""actual""" + Environment.NewLine +
4062 "Assert.NotEqual() Failure: Strings are equal" + Environment.NewLine +
4063 @"Expected: Not ""This is a long string so that we can test truncati""···" + Environment.NewLine +
4168 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
4170 "Expected: Not [EqualityAssertsTests+NotEqual+KeyValuePair+EquatableObject, 42]" + Environment.NewLine +
4199 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
4201 "Expected: Not [Key1, EqualityAssertsTests+NotEqual+KeyValuePair+EquatableObject]" + Environment.NewLine +
4247 "Assert.NotEqual() Failure: Collections are equal" + Environment.NewLine +
4248 "Expected: Not [1, 2, 3, 4, 5]" + Environment.NewLine +
4274 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
4275 $"Expected: Not {0.11M} (rounded from {0.11111})" + Environment.NewLine +
4299 "Assert.NotEqual() Failure: Values are within 2 decimal places" + Environment.NewLine +
4300 $"Expected: Not {0.11:G17} (rounded from {0.11111:G17})" + Environment.NewLine +
4322 $"Assert.NotEqual() Failure: Values are within 2 decimal places" + Environment.NewLine +
4323 $"Expected: Not {10.57:G17} (rounded from {10.565:G17})" + Environment.NewLine +
4355 $"Assert.NotEqual() Failure: Values are within tolerance {0.01:G17}" + Environment.NewLine +
4356 $"Expected: Not {10.566:G17}" + Environment.NewLine +
4375 $"Assert.NotEqual() Failure: Values are within tolerance {1000.0:G17}" + Environment.NewLine +
4376 $"Expected: Not {double.NaN}" + Environment.NewLine +
4395 $"Assert.NotEqual() Failure: Values are within tolerance {double.PositiveInfinity}" + Environment.NewLine +
4396 $"Expected: Not {double.MinValue:G17}" + Environment.NewLine +
4427 "Assert.NotEqual() Failure: Values are within 2 decimal places" + Environment.NewLine +
4428 $"Expected: Not {0.11:G9} (rounded from {0.11111f:G9})" + Environment.NewLine +
4450 "Assert.NotEqual() Failure: Values are within 2 decimal places" + Environment.NewLine +
4451 $"Expected: Not {10.57:G9} (rounded from {10.5655f:G9})" + Environment.NewLine +
4483 $"Assert.NotEqual() Failure: Values are within tolerance {0.01f:G9}" + Environment.NewLine +
4484 $"Expected: Not {10.569f:G9}" + Environment.NewLine +
4503 $"Assert.NotEqual() Failure: Values are within tolerance {1000.0f:G9}" + Environment.NewLine +
4504 "Expected: Not NaN" + Environment.NewLine +
4523 $"Assert.NotEqual() Failure: Values are within tolerance {float.PositiveInfinity}" + Environment.NewLine +
4524 $"Expected: Not {float.MinValue:G9}" + Environment.NewLine +
4553 "Assert.NotStrictEqual() Failure: Values are equal" + Environment.NewLine +
4554 @"Expected: Not ""actual""" + Environment.NewLine +
4579 "Assert.NotStrictEqual() Failure: Values are equal" + Environment.NewLine +
4581 $"Expected: Not DerivedClass {{ {ArgumentFormatter.Ellipsis} }}" + Environment.NewLine +
4611 "Assert.StrictEqual() Failure: Values differ" + Environment.NewLine +
4612 @"Expected: ""bob""" + Environment.NewLine +
4627 "Assert.StrictEqual() Failure: Values differ" + Environment.NewLine +
4628 $"Expected: [{ArgumentFormatter.Ellipsis}]" + Environment.NewLine +
Asserts\MemoryAssertsTests.cs (80)
29 "Assert.Contains() Failure: Sub-string not found" + Environment.NewLine +
30 "String: \"Hello, world!\"" + Environment.NewLine +
43 "Assert.Contains() Failure: Sub-string not found" + Environment.NewLine +
44 "String: \"Hello, world!\"" + Environment.NewLine +
69 "Assert.Contains() Failure: Sub-string not found" + Environment.NewLine +
70 "String: \"\"" + Environment.NewLine +
83 "Assert.Contains() Failure: Sub-string not found" + Environment.NewLine +
84 "String: \"\"" + Environment.NewLine +
102 "Assert.Contains() Failure: Sub-string not found" + Environment.NewLine +
103 "String: \"This is a relatively long string so that we can se\"" + ArgumentFormatter.Ellipsis + Environment.NewLine +
143 "Assert.Contains() Failure: Sub-memory not found" + Environment.NewLine +
144 "Memory: [1, 2, 3, 4, 5, " + ArgumentFormatter.Ellipsis + "]" + Environment.NewLine +
157 "Assert.Contains() Failure: Sub-memory not found" + Environment.NewLine +
158 "Memory: [1, 2, 3, 4, 5, " + ArgumentFormatter.Ellipsis + "]" + Environment.NewLine +
171 "Assert.Contains() Failure: Sub-memory not found" + Environment.NewLine +
172 "Memory: []" + Environment.NewLine +
222 "Assert.DoesNotContain() Failure: Sub-string found" + Environment.NewLine +
223 " ↓ (pos 7)" + Environment.NewLine +
224 "String: \"Hello, world!\"" + Environment.NewLine +
237 "Assert.DoesNotContain() Failure: Sub-string found" + Environment.NewLine +
238 " ↓ (pos 7)" + Environment.NewLine +
239 "String: \"Hello, world!\"" + Environment.NewLine +
252 "Assert.DoesNotContain() Failure: Sub-string found" + Environment.NewLine +
253 " ↓ (pos 7)" + Environment.NewLine +
254 "String: \"Hello, world!\"" + Environment.NewLine +
267 "Assert.DoesNotContain() Failure: Sub-string found" + Environment.NewLine +
268 " ↓ (pos 7)" + Environment.NewLine +
269 "String: \"Hello, world!\"" + Environment.NewLine +
294 "Assert.DoesNotContain() Failure: Sub-string found" + Environment.NewLine +
295 " ↓ (pos 7)" + Environment.NewLine +
296 "String: \"Hello, world from a very long string that will end\"" + ArgumentFormatter.Ellipsis + Environment.NewLine +
309 "Assert.DoesNotContain() Failure: Sub-string found" + Environment.NewLine +
310 " ↓ (pos 50)" + Environment.NewLine +
311 "String: " + ArgumentFormatter.Ellipsis + "\" string that has 'Hello, world' placed in the midd\"" + ArgumentFormatter.Ellipsis + Environment.NewLine +
324 "Assert.DoesNotContain() Failure: Sub-string found" + Environment.NewLine +
325 " ↓ (pos 89)" + Environment.NewLine +
326 "String: " + ArgumentFormatter.Ellipsis + "\"om the front truncated, just to say 'Hello, world'\"" + Environment.NewLine +
366 "Assert.DoesNotContain() Failure: Sub-memory found" + Environment.NewLine +
367 " ↓ (pos 2)" + Environment.NewLine +
368 "Memory: [1, 2, 3, 4, 5, " + ArgumentFormatter.Ellipsis + "]" + Environment.NewLine +
381 "Assert.DoesNotContain() Failure: Sub-memory found" + Environment.NewLine +
382 " ↓ (pos 2)" + Environment.NewLine +
383 "Memory: [1, 2, 3, 4, 5, " + ArgumentFormatter.Ellipsis + "]" + Environment.NewLine +
404 "Assert.DoesNotContain() Failure: Sub-memory found" + Environment.NewLine +
405 (data.Any() ? " ↓ (pos 0)" + Environment.NewLine : "") +
406 "Memory: " + CollectionTracker<int>.FormatStart(data) + Environment.NewLine +
434 "Assert.EndsWith() Failure: String end does not match" + Environment.NewLine +
435 "String: \"Hello, world!\"" + Environment.NewLine +
456 "Assert.EndsWith() Failure: String end does not match" + Environment.NewLine +
457 "String: \"world!\"" + Environment.NewLine +
487 "Assert.EndsWith() Failure: String end does not match" + Environment.NewLine +
488 "String: \"\"" + Environment.NewLine +
510 "Assert.EndsWith() Failure: String end does not match" + Environment.NewLine +
511 "String: " + ArgumentFormatter.Ellipsis + "\"string that we expected to find this ending inside\"" + Environment.NewLine +
623 message += Environment.NewLine + " " + expectedPointer;
626 Environment.NewLine + "Expected: " + ArgumentFormatter.Format(expected) +
627 Environment.NewLine + "Actual: " + ArgumentFormatter.Format(actual);
630 message += Environment.NewLine + " " + actualPointer;
658 "Assert.Equal() Failure: Strings differ" + Environment.NewLine +
659 " ↓ (pos 21)" + Environment.NewLine +
660 "Expected: \"Why hello there world, you're a long string with s\"" + ArgumentFormatter.Ellipsis + Environment.NewLine +
661 "Actual: \"Why hello there world! You're a long string!\"" + Environment.NewLine +
735 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
736 " ↓ (pos 1)" + Environment.NewLine +
737 "Expected: [1, 0, 2, 3]" + Environment.NewLine +
738 "Actual: [1, 2, 3]" + Environment.NewLine +
759 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
760 "Expected: [1, 2, 3]" + Environment.NewLine +
761 "Actual: [1, 2, 3, 4]" + Environment.NewLine +
815 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
816 "Expected: [\"yes\", \"no\", \"maybe\"]" + Environment.NewLine +
817 "Actual: [\"yes\", \"no\", \"maybe\", \"so\"]" + Environment.NewLine +
851 "Assert.StartsWith() Failure: String start does not match" + Environment.NewLine +
852 "String: \"Hello, world!\"" + Environment.NewLine +
873 "Assert.StartsWith() Failure: String start does not match" + Environment.NewLine +
874 "String: \"world!\"" + Environment.NewLine +
904 "Assert.StartsWith() Failure: String start does not match" + Environment.NewLine +
905 "String: \"\"" + Environment.NewLine +
927 "Assert.StartsWith() Failure: String start does not match" + Environment.NewLine +
928 "String: \"This is the long string that we expected to find t\"" + ArgumentFormatter.Ellipsis + Environment.NewLine +
Asserts\SetAssertsTests.cs (24)
35 "Assert.Contains() Failure: Item not found in set" + Environment.NewLine +
36 "Set: [\"eleventeen\"]" + Environment.NewLine +
81 "Assert.DoesNotContain() Failure: Item found in set" + Environment.NewLine +
82 "Set: [\"forty-two\"]" + Environment.NewLine +
117 "Assert.ProperSubset() Failure: Value is not a proper subset" + Environment.NewLine +
118 "Expected: [1, 2, 3]" + Environment.NewLine +
143 "Assert.ProperSubset() Failure: Value is not a proper subset" + Environment.NewLine +
144 "Expected: [1, 2, 3]" + Environment.NewLine +
157 "Assert.ProperSubset() Failure: Value is not a proper subset" + Environment.NewLine +
158 "Expected: []" + Environment.NewLine +
183 "Assert.ProperSuperset() Failure: Value is not a proper superset" + Environment.NewLine +
184 "Expected: [1, 2, 3]" + Environment.NewLine +
209 "Assert.ProperSuperset() Failure: Value is not a proper superset" + Environment.NewLine +
210 "Expected: [1, 2, 3]" + Environment.NewLine +
223 "Assert.ProperSuperset() Failure: Value is not a proper superset" + Environment.NewLine +
224 "Expected: []" + Environment.NewLine +
267 "Assert.Subset() Failure: Value is not a subset" + Environment.NewLine +
268 "Expected: [1, 2, 3]" + Environment.NewLine +
281 "Assert.Subset() Failure: Value is not a subset" + Environment.NewLine +
282 "Expected: []" + Environment.NewLine +
324 "Assert.Superset() Failure: Value is not a superset" + Environment.NewLine +
325 "Expected: [1, 2, 3]" + Environment.NewLine +
338 "Assert.Superset() Failure: Value is not a superset" + Environment.NewLine +
339 "Expected: []" + Environment.NewLine +
Asserts\SpanAssertsTests.cs (80)
29 "Assert.Contains() Failure: Sub-string not found" + Environment.NewLine +
30 "String: \"Hello, world!\"" + Environment.NewLine +
43 "Assert.Contains() Failure: Sub-string not found" + Environment.NewLine +
44 "String: \"Hello, world!\"" + Environment.NewLine +
69 "Assert.Contains() Failure: Sub-string not found" + Environment.NewLine +
70 "String: \"\"" + Environment.NewLine +
83 "Assert.Contains() Failure: Sub-string not found" + Environment.NewLine +
84 "String: \"\"" + Environment.NewLine +
102 "Assert.Contains() Failure: Sub-string not found" + Environment.NewLine +
103 $"String: \"This is a relatively long string so that we can se\"{ArgumentFormatter.Ellipsis}" + Environment.NewLine +
143 "Assert.Contains() Failure: Sub-span not found" + Environment.NewLine +
144 $"Span: [1, 2, 3, 4, 5, {ArgumentFormatter.Ellipsis}]" + Environment.NewLine +
157 "Assert.Contains() Failure: Sub-span not found" + Environment.NewLine +
158 $"Span: [1, 2, 3, 4, 5, {ArgumentFormatter.Ellipsis}]" + Environment.NewLine +
171 "Assert.Contains() Failure: Sub-span not found" + Environment.NewLine +
172 "Span: []" + Environment.NewLine +
222 "Assert.DoesNotContain() Failure: Sub-string found" + Environment.NewLine +
223 " ↓ (pos 7)" + Environment.NewLine +
224 "String: \"Hello, world!\"" + Environment.NewLine +
237 "Assert.DoesNotContain() Failure: Sub-string found" + Environment.NewLine +
238 " ↓ (pos 7)" + Environment.NewLine +
239 "String: \"Hello, world!\"" + Environment.NewLine +
252 "Assert.DoesNotContain() Failure: Sub-string found" + Environment.NewLine +
253 " ↓ (pos 7)" + Environment.NewLine +
254 "String: \"Hello, world!\"" + Environment.NewLine +
267 "Assert.DoesNotContain() Failure: Sub-string found" + Environment.NewLine +
268 " ↓ (pos 7)" + Environment.NewLine +
269 "String: \"Hello, world!\"" + Environment.NewLine +
294 "Assert.DoesNotContain() Failure: Sub-string found" + Environment.NewLine +
295 " ↓ (pos 7)" + Environment.NewLine +
296 $"String: \"Hello, world from a very long string that will end\"{ArgumentFormatter.Ellipsis}" + Environment.NewLine +
309 "Assert.DoesNotContain() Failure: Sub-string found" + Environment.NewLine +
310 " ↓ (pos 50)" + Environment.NewLine +
311 $"String: {ArgumentFormatter.Ellipsis}\" string that has 'Hello, world' placed in the midd\"{ArgumentFormatter.Ellipsis}" + Environment.NewLine +
324 "Assert.DoesNotContain() Failure: Sub-string found" + Environment.NewLine +
325 " ↓ (pos 89)" + Environment.NewLine +
326 $"String: {ArgumentFormatter.Ellipsis}\"om the front truncated, just to say 'Hello, world'\"" + Environment.NewLine +
366 "Assert.DoesNotContain() Failure: Sub-span found" + Environment.NewLine +
367 " ↓ (pos 2)" + Environment.NewLine +
368 $"Span: [1, 2, 3, 4, 5, {ArgumentFormatter.Ellipsis}]" + Environment.NewLine +
381 "Assert.DoesNotContain() Failure: Sub-span found" + Environment.NewLine +
382 " ↓ (pos 2)" + Environment.NewLine +
383 $"Span: [1, 2, 3, 4, 5, {ArgumentFormatter.Ellipsis}]" + Environment.NewLine +
404 "Assert.DoesNotContain() Failure: Sub-span found" + Environment.NewLine +
405 (data.Any() ? " ↓ (pos 0)" + Environment.NewLine : "") +
406 "Span: " + CollectionTracker<int>.FormatStart(data) + Environment.NewLine +
434 "Assert.EndsWith() Failure: String end does not match" + Environment.NewLine +
435 "String: \"Hello, world!\"" + Environment.NewLine +
456 "Assert.EndsWith() Failure: String end does not match" + Environment.NewLine +
457 "String: \"world!\"" + Environment.NewLine +
487 "Assert.EndsWith() Failure: String end does not match" + Environment.NewLine +
488 "String: \"\"" + Environment.NewLine +
510 "Assert.EndsWith() Failure: String end does not match" + Environment.NewLine +
511 "String: " + ArgumentFormatter.Ellipsis + "\"string that we expected to find this ending inside\"" + Environment.NewLine +
623 message += Environment.NewLine + " " + expectedPointer;
626 Environment.NewLine + "Expected: " + ArgumentFormatter.Format(expected) +
627 Environment.NewLine + "Actual: " + ArgumentFormatter.Format(actual);
630 message += Environment.NewLine + " " + actualPointer;
658 "Assert.Equal() Failure: Strings differ" + Environment.NewLine +
659 " ↓ (pos 21)" + Environment.NewLine +
660 $"Expected: \"Why hello there world, you're a long string with s\"{ArgumentFormatter.Ellipsis}" + Environment.NewLine +
661 "Actual: \"Why hello there world! You're a long string!\"" + Environment.NewLine +
743 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
744 " ↓ (pos 1)" + Environment.NewLine +
745 "Expected: [1, 0, 2, 3]" + Environment.NewLine +
746 "Actual: [1, 2, 3]" + Environment.NewLine +
767 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
768 "Expected: [1, 2, 3]" + Environment.NewLine +
769 "Actual: [1, 2, 3, 4]" + Environment.NewLine +
823 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
824 "Expected: [\"yes\", \"no\", \"maybe\"]" + Environment.NewLine +
825 "Actual: [\"yes\", \"no\", \"maybe\", \"so\"]" + Environment.NewLine +
859 "Assert.StartsWith() Failure: String start does not match" + Environment.NewLine +
860 "String: \"Hello, world!\"" + Environment.NewLine +
881 "Assert.StartsWith() Failure: String start does not match" + Environment.NewLine +
882 "String: \"world!\"" + Environment.NewLine +
912 "Assert.StartsWith() Failure: String start does not match" + Environment.NewLine +
913 "String: \"\"" + Environment.NewLine +
935 "Assert.StartsWith() Failure: String start does not match" + Environment.NewLine +
936 "String: \"This is the long string that we expected to find t\"" + ArgumentFormatter.Ellipsis + Environment.NewLine +
Asserts\StringAssertsTests.cs (90)
34 "Assert.Contains() Failure: Sub-string not found" + Environment.NewLine +
35 "String: \"Hello, world!\"" + Environment.NewLine +
61 "Assert.Contains() Failure: Sub-string not found" + Environment.NewLine +
62 "String: \"Hello, world!\"" + Environment.NewLine +
86 "Assert.Contains() Failure: Sub-string not found" + Environment.NewLine +
87 "String: null" + Environment.NewLine +
105 "Assert.Contains() Failure: Sub-string not found" + Environment.NewLine +
106 $"String: \"This is a relatively long string so that we can se\"{ArgumentFormatter.Ellipsis}" + Environment.NewLine +
177 "Assert.DoesNotContain() Failure: Sub-string found" + Environment.NewLine +
178 " ↓ (pos 7)" + Environment.NewLine +
179 "String: \"Hello, world!\"" + Environment.NewLine +
211 "Assert.DoesNotContain() Failure: Sub-string found" + Environment.NewLine +
212 " ↓ (pos 7)" + Environment.NewLine +
213 $"String: \"Hello, world from a very long string that will end\"{ArgumentFormatter.Ellipsis}" + Environment.NewLine +
239 "Assert.DoesNotContain() Failure: Sub-string found" + Environment.NewLine +
240 " ↓ (pos 50)" + Environment.NewLine +
241 $"String: {ArgumentFormatter.Ellipsis}\" string that has 'Hello, world' placed in the midd\"{ArgumentFormatter.Ellipsis}" + Environment.NewLine +
267 "Assert.DoesNotContain() Failure: Sub-string found" + Environment.NewLine +
268 " ↓ (pos 89)" + Environment.NewLine +
269 $"String: {ArgumentFormatter.Ellipsis}\"om the front truncated, just to say 'Hello, world'\"" + Environment.NewLine +
295 "Assert.DoesNotContain() Failure: Sub-string found" + Environment.NewLine +
296 " ↓ (pos 7)" + Environment.NewLine +
297 "String: \"Hello, world!\"" + Environment.NewLine +
336 "Assert.DoesNotMatch() Failure: Match found" + Environment.NewLine +
337 " ↓ (pos 2)" + Environment.NewLine +
338 "String: \"Hello, world!\"" + Environment.NewLine +
366 "Assert.DoesNotMatch() Failure: Match found" + Environment.NewLine +
367 " ↓ (pos 2)" + Environment.NewLine +
368 "String: \"Hello, world!\"" + Environment.NewLine +
396 "Assert.Empty() Failure: String was not empty" + Environment.NewLine +
428 "Assert.EndsWith() Failure: String end does not match" + Environment.NewLine +
429 "String: \"Hello, world!\"" + Environment.NewLine +
455 "Assert.EndsWith() Failure: String end does not match" + Environment.NewLine +
456 "String: \"world!\"" + Environment.NewLine +
494 "Assert.EndsWith() Failure: String end does not match" + Environment.NewLine +
495 "String: null" + Environment.NewLine +
513 "Assert.EndsWith() Failure: String end does not match" + Environment.NewLine +
514 "String: " + ArgumentFormatter.Ellipsis + "\"string that we expected to find this ending inside\"" + Environment.NewLine +
633 message += Environment.NewLine + " " + expectedPointer;
636 Environment.NewLine + "Expected: " + ArgumentFormatter.Format(expected) +
637 Environment.NewLine + "Actual: " + ArgumentFormatter.Format(actual);
640 message += Environment.NewLine + " " + actualPointer;
674 "Assert.Equal() Failure: Strings differ" + Environment.NewLine +
675 " ↓ (pos 21)" + Environment.NewLine +
676 $"Expected: \"Why hello there world, you're a long string with s\"{ArgumentFormatter.Ellipsis}" + Environment.NewLine +
677 "Actual: \"Why hello there world! You're a long string!\"" + Environment.NewLine +
706 "Assert.Equal() Failure: Strings differ" + Environment.NewLine +
707 " ↓ (pos 50)" + Environment.NewLine +
708 $"Expected: {ArgumentFormatter.Ellipsis}\"01234567890123456789012345678901234567890123456789\"" + Environment.NewLine +
737 "Assert.Equal() Failure: Strings differ" + Environment.NewLine +
738 " ↓ (pos 55)" + Environment.NewLine +
739 $"Expected: {ArgumentFormatter.Ellipsis}\"01234567890123456789012345678901234567890123456789\"" + Environment.NewLine +
768 "Assert.Equal() Failure: Strings differ" + Environment.NewLine +
769 $"Expected: {ArgumentFormatter.Ellipsis}\"0123456789012345678901234567890123456789\"" + Environment.NewLine +
770 $"Actual: {ArgumentFormatter.Ellipsis}\"01234567890123456789012345678901234567890123456789\"" + Environment.NewLine +
799 "Assert.Equal() Failure: Strings differ" + Environment.NewLine +
800 $"Expected: {ArgumentFormatter.Ellipsis}\"23456789012345678901234567890123456789\"" + Environment.NewLine +
801 $"Actual: {ArgumentFormatter.Ellipsis}\"234567890123456789012345678901234567890123456789\"" + Environment.NewLine +
830 "Assert.Equal() Failure: Strings differ" + Environment.NewLine +
831 " ↓ (pos 50)" + Environment.NewLine +
832 $"Expected: {ArgumentFormatter.Ellipsis}\"01234567890123456789012345678901234567890123456789\"" + Environment.NewLine +
833 $"Actual: {ArgumentFormatter.Ellipsis}\"0123456789012345678901234567890123456789_1234\"" + Environment.NewLine +
862 "Assert.Equal() Failure: Strings differ" + Environment.NewLine +
863 " ↓ (pos 55)" + Environment.NewLine +
864 $"Expected: {ArgumentFormatter.Ellipsis}\"01234567890123456789012345678901234567890123456789\"" + Environment.NewLine +
865 $"Actual: {ArgumentFormatter.Ellipsis}\"0123456789012345678901234567890123456789_1234\"" + Environment.NewLine +
894 "Assert.Equal() Failure: Strings differ" + Environment.NewLine +
895 " ↓ (pos 50)" + Environment.NewLine +
896 $"Expected: {ArgumentFormatter.Ellipsis}\"0123456789012345678901234567890123456789_1234\"" + Environment.NewLine +
897 $"Actual: {ArgumentFormatter.Ellipsis}\"01234567890123456789012345678901234567890123456789\"" + Environment.NewLine +
926 "Assert.Equal() Failure: Strings differ" + Environment.NewLine +
927 " ↓ (pos 53)" + Environment.NewLine +
928 $"Expected: {ArgumentFormatter.Ellipsis}\"23456789012345678901234567890123456789_1234\"" + Environment.NewLine +
929 $"Actual: {ArgumentFormatter.Ellipsis}\"234567890123456789012345678901234567890123456789\"" + Environment.NewLine +
968 "Assert.Matches() Failure: Pattern not found in value" + Environment.NewLine +
969 @"Regex: ""\\d+""" + Environment.NewLine +
982 "Assert.Matches() Failure: Pattern not found in value" + Environment.NewLine +
983 @"Regex: ""\\d+""" + Environment.NewLine +
1017 "Assert.Matches() Failure: Pattern not found in value" + Environment.NewLine +
1018 @"Regex: ""\\d+""" + Environment.NewLine +
1031 "Assert.Matches() Failure: Pattern not found in value" + Environment.NewLine +
1032 @"Regex: ""\\d+""" + Environment.NewLine +
1064 "Assert.StartsWith() Failure: String start does not match" + Environment.NewLine +
1065 "String: \"Hello, world!\"" + Environment.NewLine +
1091 "Assert.StartsWith() Failure: String start does not match" + Environment.NewLine +
1092 "String: \"world!\"" + Environment.NewLine +
1130 "Assert.StartsWith() Failure: String start does not match" + Environment.NewLine +
1131 "String: null" + Environment.NewLine +
1149 "Assert.StartsWith() Failure: String start does not match" + Environment.NewLine +
1150 "String: \"This is the long string that we expected to find t\"" + ArgumentFormatter.Ellipsis + Environment.NewLine +
Microsoft.DotNet.XUnitExtensions (8)
Microsoft.DotNet.XUnitV3Extensions (8)
Microsoft.Extensions.AI (2)
Microsoft.Extensions.AI.Abstractions (1)
Microsoft.Extensions.AI.Abstractions.Tests (4)
Microsoft.Extensions.AI.Evaluation.Console (13)
Microsoft.Extensions.AI.Evaluation.Integration.Tests (1)
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (1)
Microsoft.Extensions.AI.Evaluation.Safety (2)
Microsoft.Extensions.AI.Integration.Tests (3)
Microsoft.Extensions.AI.OpenAI (2)
Microsoft.Extensions.AI.OpenAI.Tests (1)
Microsoft.Extensions.AI.Tests (1)
Microsoft.Extensions.ApiDescription.Client.Tests (5)
Microsoft.Extensions.Caching.Hybrid.Tests (2)
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (5)
Microsoft.Extensions.Configuration.EnvironmentVariables (1)
Microsoft.Extensions.Configuration.KeyPerFile (2)
Microsoft.Extensions.Configuration.UserSecrets (7)
Microsoft.Extensions.DataIngestion (4)
Microsoft.Extensions.DataIngestion.Abstractions (1)
Microsoft.Extensions.DataIngestion.Tests (1)
Microsoft.Extensions.DependencyInjection (2)
Microsoft.Extensions.DependencyModel (3)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (6)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (2)
Microsoft.Extensions.FileProviders.Physical (1)
Microsoft.Extensions.Hosting (3)
Microsoft.Extensions.Hosting.Systemd (5)
Microsoft.Extensions.Hosting.WindowsServices (1)
Microsoft.Extensions.Http (3)
Microsoft.Extensions.Logging.AzureAppServices (4)
Microsoft.Extensions.Logging.Console (14)
Microsoft.Extensions.Logging.Debug (2)
Microsoft.Extensions.ObjectPool (5)
Microsoft.Extensions.SecretManager.Tools.Tests (2)
Microsoft.Extensions.ServiceDiscovery.Dns (3)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (3)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests.Fuzzing (1)
Microsoft.Extensions.Telemetry (5)
Microsoft.Extensions.Telemetry.Tests (1)
Microsoft.Extensions.Validation.GeneratorTests (3)
Microsoft.Gen.MetricsReports.Unit.Tests (1)
Microsoft.Maui (2)
Microsoft.Maui.Resizetizer (5)
Microsoft.ML.AutoML (2)
Microsoft.ML.AutoML.SourceGenerator (15)
Microsoft.ML.AutoML.Tests (6)
Microsoft.ML.CodeGenerator (30)
Microsoft.ML.CodeGenerator.Tests (2)
Microsoft.ML.Core (12)
Microsoft.ML.Core.Tests (14)
Microsoft.ML.CpuMath.PerformanceTests (1)
Microsoft.ML.CpuMath.UnitTests (3)
Microsoft.ML.Data (6)
Microsoft.ML.FastTree (4)
Microsoft.ML.GenAI.LLaMA.Tests (2)
Microsoft.ML.GenAI.Mistral.Tests (1)
Microsoft.ML.GenAI.Phi.Tests (2)
Microsoft.ML.KMeansClustering (1)
Microsoft.ML.Mkl.Components (1)
Microsoft.ML.OneDal (3)
Microsoft.ML.OnnxTransformerTest (2)
Microsoft.ML.PerformanceTests (1)
Microsoft.ML.Recommender (2)
Microsoft.ML.Samples (2)
Microsoft.ML.SearchSpace.Tests (3)
Microsoft.ML.StandardTrainers (6)
Microsoft.ML.Sweeper (1)
Microsoft.ML.TensorFlow.Tests (3)
Microsoft.ML.TestFramework (13)
Microsoft.ML.TestFrameworkCommon (5)
Microsoft.ML.Tests (7)
Microsoft.ML.Tokenizers (4)
Microsoft.ML.Tokenizers.Data.Tests (1)
Microsoft.ML.Tokenizers.Tests (3)
Microsoft.NET.StringTools (2)
Microsoft.Private.Windows.Core (7)
Microsoft.Private.Windows.Polyfills.Tests (3)
Microsoft.TestUtilities (1)
Microsoft.VisualBasic.Core (19)
Microsoft.VisualBasic.Tests (5)
Microsoft.VisualStudio.Extensibility.Testing.Xunit (10)
Microsoft.VisualStudio.IntegrationTest.Setup (4)
Microsoft.VisualStudio.LanguageServices (32)
Microsoft.VisualStudio.LanguageServices.CSharp (3)
Microsoft.VisualStudio.LanguageServices.Implementation (3)
MinimalSampleOwin (4)
mscorlib (1)
MyFrontend (1)
NativeIISSample (47)
netstandard (1)
PhotinoTestApp (2)
PresentationBuildTasks (2)
PresentationCore (92)
System\Windows\Input\Stylus\Wisp\PenThreadWorker.cs (8)
151Debug.WriteLine("WorkerOperationGetTabletsInfo.OnDoWork failed due to: {0}{1}", Environment.NewLine, e.ToString());
198result.CommHandle = Environment.Is64BitProcess ? (nint)commHandle : (int)commHandle;
207Debug.WriteLine("WorkerOperationCreateContext.OnDoWork failed due to a {0}{1}", Environment.NewLine, e.ToString());
314Debug.WriteLine("WorkerOperationRefreshCursorInfo.OnDoWork failed due to a {0}{1}", Environment.NewLine, e.ToString());
356Debug.WriteLine("WorkerOperationGetTabletInfo.OnDoWork failed due to {0}{1}", Environment.NewLine, e.ToString());
396Debug.WriteLine("WorkerOperationWorkerGetUpdatedSizes.OnDoWork failed due to a {0}{1}", Environment.NewLine, e.ToString());
799int timestamp = Environment.TickCount;
1252penContext.FirePenOutOfRange(0, Environment.TickCount);
System\Windows\InterOp\HwndPointerInputProvider.cs (5)
410handled = ProcessMessage(GetPointerId(wParam), RawStylusActions.InRange, Environment.TickCount);
415handled = ProcessMessage(GetPointerId(wParam), RawStylusActions.Move, Environment.TickCount);
420handled = ProcessMessage(GetPointerId(wParam), RawStylusActions.Down, Environment.TickCount);
425handled = ProcessMessage(GetPointerId(wParam), RawStylusActions.Up, Environment.TickCount);
433handled = ProcessMessage(GetPointerId(wParam), RawStylusActions.OutOfRange, Environment.TickCount);
PresentationCore.Tests (2)
PresentationFramework (23)
PresentationUI (2)
ProjectCachePlugin (1)
RazorBuildWebSite (2)
Replay (16)
RepoTasks (19)
Roslyn.Compilers.Extension (2)
Roslyn.Diagnostics.Analyzers (25)
Roslyn.Diagnostics.CSharp.Analyzers (1)
Roslyn.Test.PdbUtilities (6)
Roslyn.Test.Performance.Utilities (5)
Roslyn.VisualStudio.DiagnosticsWindow (5)
Loggers\OutputWindowLogger.cs (4)
35OutputPane.WriteLine(string.Format("[{0}] {1} - {2}", Environment.CurrentManagedThreadId, functionId.ToString(), logMessage.GetMessage()));
40OutputPane.WriteLine(string.Format("[{0}] Start({1}) : {2} - {3}", Environment.CurrentManagedThreadId, uniquePairId, functionId.ToString(), logMessage.GetMessage()));
46OutputPane.WriteLine(string.Format("[{0}] End({1}) : [{2}ms] {3}", Environment.CurrentManagedThreadId, uniquePairId, delta, functionString));
81pane.OutputStringThreadSafe(value + Environment.NewLine);
Roslyn.VisualStudio.Next.UnitTests (1)
RoutingSandbox (1)
RoutingWebSite (1)
RulesetToEditorconfigConverter (1)
RunTests (16)
Security.TransportSecurity.IntegrationTests (4)
SemanticSearch.BuildTask (6)
ServerComparison.TestSites (1)
Shared.Tests (1)
SocialSample (1)
Sockets.BindTests (7)
Sockets.FunctionalTests (7)
Stress.ApiService (3)
Stress.AppHost (3)
Program.cs (3)
139builder.AddExecutable("executableWithSingleArg", "dotnet", Environment.CurrentDirectory, "--version");
140builder.AddExecutable("executableWithSingleEscapedArg", "dotnet", Environment.CurrentDirectory, "one two");
141builder.AddExecutable("executableWithMultipleArgs", "dotnet", Environment.CurrentDirectory, "--version", "one two");
Swaggatherer (4)
System.CodeDom (4)
System\CodeDom\Compiler\Executor.cs (2)
25ExecWaitWithCapture(userToken, cmd, Environment.CurrentDirectory, tempFiles, ref outputName, ref errorName);
31ExecWaitWithCapture(IntPtr.Zero, cmd, Environment.CurrentDirectory, tempFiles, ref outputName, ref errorName);
System.Collections.Concurrent (12)
System.Configuration.ConfigurationManager (4)
System.Console (7)
System.Data.Common (1)
System.Data.Odbc (4)
System.Diagnostics.DiagnosticSource (7)
System.Diagnostics.Process (15)
System.Diagnostics.TextWriterTraceListener (3)
System.Diagnostics.TraceSource (9)
System.DirectoryServices.Protocols (1)
System.Drawing.Common.Tests (4)
System.Formats.Tar (3)
System.IO.Compression (1)
System.IO.IsolatedStorage (7)
System.IO.Pipes (3)
System.IO.Ports (8)
System.Linq (2)
System.Linq.AsyncEnumerable (2)
System.Linq.Parallel (3)
System.Net.Http (36)
System.Net.HttpListener (1)
System.Net.NameResolution (1)
System.Net.NetworkInformation (21)
System.Net.Ping (3)
System.Net.Quic (4)
System.Net.Requests (4)
System.Net.Security (5)
System.Net.Sockets (15)
System.Net.WebSockets (4)
System.Private.CoreLib (205)
System.Private.DataContractSerialization (1)
System.Private.Windows.Core (17)
System.Private.Windows.Core.TestUtilities (7)
System.Private.Xml (14)
System.Reflection.Metadata (1)
System.Runtime (1)
System.Runtime.Caching (6)
System.Runtime.Extensions (1)
System.Runtime.InteropServices (1)
System.Runtime.Numerics (2)
System.Security.Cryptography (4)
System.Security.Cryptography.Xml (1)
System.Security.Permissions (3)
System.ServiceModel.Primitives (11)
System.ServiceModel.Primitives.Tests (2)
System.Text.Json (6)
System.Text.RegularExpressions (7)
System.Threading (7)
System.Threading.Tasks.Dataflow (2)
System.Threading.Tasks.Parallel (12)
System.Windows.Forms (32)
System.Windows.Forms.Analyzers.CSharp.Tests (2)
System.Windows.Forms.Design (11)
System.Windows.Forms.Design.Tests (5)
System.Windows.Forms.Primitives (14)
System.Windows.Forms.Primitives.Tests (29)
System.Windows.Forms.Primitives.TestUtilities (11)
System.Windows.Forms.Tests (104)
System.Windows.Forms.UI.IntegrationTests (2)
System.Xaml (1)
SystemdTestApp (2)
Templates.Blazor.Tests (42)
Templates.Blazor.WebAssembly.Auth.Tests (46)
Templates.Blazor.WebAssembly.Tests (46)
Templates.Mvc.Tests (46)
Templates.Tests (47)
Test.Utilities (23)
TestPassApp (1)
TestProject.IntegrationServiceA (2)
TestProject.ServiceA (1)
TestProject.ServiceB (1)
TestProject.ServiceC (1)
Text.Analyzers (25)
Text.Analyzers.UnitTests (2)
UIAutomationClient (5)
UIAutomationClientSideProviders (32)
vbc (13)
VBCSCompiler (14)
VBCSCompiler.UnitTests (5)
VisualBasicRuntimeTest (1)
Wasm.Performance.ConsoleHost (1)
Wasm.Performance.Driver (2)
WinFormsControlsTest (5)
WithDockerfile.AppHost (1)
xunit.assert (156)
Sdk\Exceptions\CollectionException.cs (9)
46 text += Environment.NewLine;
48 text += "Stack Trace:" + Environment.NewLine + filteredStack;
56 return string.Join(Environment.NewLine, lines);
78 message += string.Format(CultureInfo.CurrentCulture, "{0} {1}\u2193 (pos {2})", Environment.NewLine, new string(' ', failurePointerIndent.Value), indexFailurePoint);
80 message += string.Format(CultureInfo.CurrentCulture, "{0}Collection: {1}{2}Error: {3}", Environment.NewLine, formattedCollection, Environment.NewLine, FormatInnerException(exception));
100 Environment.NewLine,
102 Environment.NewLine,
104 Environment.NewLine,
Sdk\Exceptions\ContainsException.cs (13)
39 Environment.NewLine,
57 Environment.NewLine,
59 Environment.NewLine,
77 Environment.NewLine,
79 Environment.NewLine,
97 Environment.NewLine,
99 Environment.NewLine,
117 Environment.NewLine,
119 Environment.NewLine,
137 Environment.NewLine,
139 Environment.NewLine,
161 Environment.NewLine,
163 Environment.NewLine,
Sdk\Exceptions\DoesNotContainException.cs (18)
46 message += string.Format(CultureInfo.CurrentCulture, "{0} {1}\u2193 (pos {2})", Environment.NewLine, new string(' ', failurePointerIndent.Value), indexFailurePoint);
48 message += string.Format(CultureInfo.CurrentCulture, "{0}Collection: {1}", Environment.NewLine, collection);
73 message += string.Format(CultureInfo.CurrentCulture, "{0} {1}\u2193 (pos {2})", Environment.NewLine, new string(' ', failurePointerIndent.Value), indexFailurePoint);
75 message += string.Format(CultureInfo.CurrentCulture, "{0}Collection: {1}{2}Found: {3}", Environment.NewLine, collection, Environment.NewLine, item);
93 Environment.NewLine,
95 Environment.NewLine,
113 Environment.NewLine,
115 Environment.NewLine,
140 message += string.Format(CultureInfo.CurrentCulture, "{0} {1}\u2193 (pos {2})", Environment.NewLine, new string(' ', failurePointerIndent.Value), indexFailurePoint);
142 message += string.Format(CultureInfo.CurrentCulture, "{0}Memory: {1}{2}Found: {3}", Environment.NewLine, memory, Environment.NewLine, expectedSubMemory);
167 message += string.Format(CultureInfo.CurrentCulture, "{0} {1}\u2193 (pos {2})", Environment.NewLine, new string(' ', failurePointerIndent.Value), indexFailurePoint);
169 message += string.Format(CultureInfo.CurrentCulture, "{0}Span: {1}{2}Found: {3}", Environment.NewLine, span, Environment.NewLine, expectedSubSpan);
195 Environment.NewLine,
198 Environment.NewLine,
200 Environment.NewLine,
Sdk\Exceptions\EqualException.cs (13)
28 static readonly string newLineAndIndent = Environment.NewLine + new string(' ', 10); // Length of "Expected: " and "Actual: "
121 message += string.Format(CultureInfo.CurrentCulture, "{0} {1}\u2193 (pos {2}{3})", Environment.NewLine, new string(' ', expectedPointer.Value), mismatchedIndex, expectedTypeText);
123 message += string.Format(CultureInfo.CurrentCulture, "{0}Expected: {1}{2}Actual: {3}", Environment.NewLine, expected, Environment.NewLine, actual);
126 message += string.Format(CultureInfo.CurrentCulture, "{0} {1}\u2191 (pos {2}{3})", Environment.NewLine, new string(' ', actualPointer.Value), mismatchedIndex, actualTypeText);
172 Environment.NewLine,
175 Environment.NewLine,
243 message += string.Format(CultureInfo.CurrentCulture, "{0}Expected: {1}{2}Actual: {3}", Environment.NewLine, formattedExpected, Environment.NewLine, formattedActual);
350 Environment.NewLine,
352 expected.Replace(Environment.NewLine, newLineAndIndent, StringComparison.Ordinal),
356 Environment.NewLine,
358 actual.Replace(Environment.NewLine, newLineAndIndent, StringComparison.Ordinal)
Sdk\Exceptions\EquivalentException.cs (12)
101 Environment.NewLine,
103 Environment.NewLine,
124 Environment.NewLine,
126 Environment.NewLine,
160 Environment.NewLine,
162 Environment.NewLine,
190 Environment.NewLine,
192 Environment.NewLine,
225 Environment.NewLine,
227 Environment.NewLine,
253 Environment.NewLine,
255 Environment.NewLine,
Sdk\Exceptions\NotEqualException.cs (8)
96 message += string.Format(CultureInfo.CurrentCulture, "{0} {1}\u2193 (pos {2})", Environment.NewLine, new string(' ', expectedPointer.Value), mismatchedIndex);
98 message += string.Format(CultureInfo.CurrentCulture, "{0}Expected: Not {1}{2}Actual: {3}", Environment.NewLine, expected, Environment.NewLine, actual);
101 message += string.Format(CultureInfo.CurrentCulture, "{0} {1}\u2191 (pos {2})", Environment.NewLine, new string(' ', actualPointer.Value), mismatchedIndex);
147 Environment.NewLine,
150 Environment.NewLine,
210 Environment.NewLine,
212 Environment.NewLine,
xunit.console (7)