6290 references to Environment
Accessibility_Core_App (1)
Aspire.Azure.AI.OpenAI (1)
Aspire.Azure.Messaging.EventHubs (2)
Aspire.Azure.Messaging.ServiceBus (1)
Aspire.Components.Common.Tests (4)
Aspire.Dashboard (12)
Aspire.Dashboard.Components.Tests (3)
Aspire.Dashboard.Tests (7)
Aspire.EndToEnd.Tests (26)
Aspire.Hosting (10)
Aspire.Hosting.Azure (9)
Aspire.Hosting.Azure.Tests (1)
Aspire.Hosting.Dapr (9)
Aspire.Hosting.Testing (1)
Aspire.Hosting.Testing.Tests (3)
Aspire.Hosting.Tests (27)
Dcp\ApplicationExecutorTests.cs (18)
108var exe = builder.AddExecutable("CoolProgram", "cool", Environment.CurrentDirectory, "--alpha", "--bravo")
140var exe = builder.AddExecutable("CoolProgram", "cool", Environment.CurrentDirectory, "--alpha", "--bravo")
172var exe = builder.AddExecutable("CoolProgram", "cool", Environment.CurrentDirectory, "--alpha", "--bravo")
205var exe = builder.AddExecutable("CoolProgram", "cool", Environment.CurrentDirectory, "--alpha", "--bravo")
242builder.AddExecutable("CoolProgram", "cool", Environment.CurrentDirectory, "--alpha", "--bravo")
259builder.AddExecutable("CoolProgram", "cool", Environment.CurrentDirectory, "--alpha", "--bravo")
293builder.AddExecutable("CoolProgram", "cool", Environment.CurrentDirectory, "--alpha", "--bravo")
327builder.AddExecutable("CoolProgram", "cool", Environment.CurrentDirectory, "--alpha", "--bravo")
394var exe = builder.AddExecutable("CoolProgram", "cool", Environment.CurrentDirectory, "--alpha", "--bravo");
485await pipes.StandardOut.Writer.WriteAsync(Encoding.UTF8.GetBytes("2024-08-19T06:10:33.473275911Z Hello world" + Environment.NewLine));
496await pipes.StandardErr.Writer.WriteAsync(Encoding.UTF8.GetBytes("2024-08-19T06:10:32.661Z Next" + Environment.NewLine));
539return new MemoryStream(Encoding.UTF8.GetBytes("2024-08-19T06:10:01.000Z First" + Environment.NewLine));
541return new MemoryStream(Encoding.UTF8.GetBytes("2024-08-19T06:10:02.000Z Second" + Environment.NewLine));
543return new MemoryStream(Encoding.UTF8.GetBytes("2024-08-19T06:10:03.000Z Third" + Environment.NewLine));
546"2024-08-19T06:10:05.000Z Sixth" + Environment.NewLine +
547"2024-08-19T06:10:05.000Z Seventh" + Environment.NewLine +
548"2024-08-19T06:10:04.000Z Forth" + Environment.NewLine +
549"2024-08-19T06:10:04.000Z Fifth" + Environment.NewLine));
Aspire.OpenAI (1)
Aspire.Playground.Tests (8)
Aspire.Workload.Tests (26)
AutobahnTestApp (1)
AzureAppServicesHostingStartupSample (25)
AzureAppServicesSample (25)
BuildActionTelemetryTable (3)
BuildValidator (3)
Client.TypedClient.IntegrationTests (3)
ClientSample (1)
ConfigurationSchemaGenerator (2)
CreateDefaultBuilderApp (1)
CreateDefaultBuilderOfTApp (1)
Crossgen2Tasks (4)
csc (9)
CSharpSyntaxGenerator (10)
DefaultBuilder.SampleApp (1)
DelegationSite (1)
DeveloperExceptionPageSample (1)
dotnet-dev-certs (23)
dotnet-getdocument (4)
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 (15)
dotnet-user-secrets (4)
EventHubsConsumer (1)
GetDocument.Insider (5)
HealthChecksSample (1)
HelixTestRunner (20)
HotAddSample (1)
Http2SampleApp (1)
IdeBenchmarks (5)
IdeCoreBenchmarks (22)
IIS.Common.TestLib (7)
IIS.FunctionalTests (18)
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.NewShim.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 (14)
IISSample (26)
illink (1)
ILLink.Tasks (1)
Infrastructure.Common (14)
Infrastructure.IntegrationTests (2)
InMemory.FunctionalTests (10)
InProcessWebSite (16)
installer.tasks (16)
InteractiveHost.UnitTests (2)
Interop.FunctionalTests (6)
InteropClient (2)
InteropTests (4)
Kestrel.SampleApp (3)
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 (8)
Microsoft.AspNetCore.Components (4)
Microsoft.AspNetCore.Components.Analyzers (2)
Microsoft.AspNetCore.Components.Analyzers.Tests (2)
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 (6)
Microsoft.AspNetCore.Components.WebAssembly.Server (5)
Microsoft.AspNetCore.Components.WebAssembly.Tests (2)
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 (17)
Microsoft.AspNetCore.Diagnostics (3)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (2)
Microsoft.AspNetCore.FunctionalTests (2)
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Microsoft.AspNetCore.Hosting (9)
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.Extensions.Tests (3)
Microsoft.AspNetCore.Http.Microbenchmarks (3)
Microsoft.AspNetCore.HttpLogging (3)
Microsoft.AspNetCore.HttpLogging.Tests (16)
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 (14)
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.Tests (1)
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 (25)
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 (1)
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 (156)
Microsoft.Build.BuildCheck.UnitTests (2)
Microsoft.Build.CommandLine.UnitTests (18)
Microsoft.Build.Engine.OM.UnitTests (31)
Microsoft.Build.Engine.UnitTests (383)
ConsoleLogger_Tests.cs (97)
129foreach (DictionaryEntry entry in Environment.GetEnvironmentVariables())
632console.ToString().ShouldBe(message + Environment.NewLine);
693console.ToString().ShouldMatch($@"<{expectedColor}><cyan>\d\d:\d\d:\d\d\.\d\d\d\s+\d+><reset color>{Regex.Escape(file)}\({lineNumber}\): {subcategory} {expectedMessageType} {code}: {message} \(TaskId:\d+\){Environment.NewLine}<reset color>");
697console.ToString().ShouldMatch($@"<cyan>\d\d:\d\d:\d\d\.\d\d\d\s+\d+><reset color><{expectedColor}>{Regex.Escape(file)}\({lineNumber}\): {subcategory} {expectedMessageType} {code}: {message}{Environment.NewLine}<reset color>");
704console.ToString().ShouldMatch($@"<{expectedColor}>{Regex.Escape(file)}\({lineNumber}\): {subcategory} {expectedMessageType} {code}: {message}{Environment.NewLine}<reset color>");
822"<cyan>" + BaseConsoleLogger.projectSeparatorLine + Environment.NewLine +
823ResourceUtilities.FormatResourceStringStripCodeAndKeyword("ProjectStartedPrefixForTopLevelProjectWithDefaultTargets", "fname") + Environment.NewLine + Environment.NewLine +
824"<reset color><red>file.vb(42): VBC error 31415: Some long message" + Environment.NewLine +
825"<reset color><cyan>pf" + Environment.NewLine +
830sc.ToString().ShouldBe("<red>file.vb(42): VBC error 31415: Some long message" + Environment.NewLine + "<reset color>");
899"<cyan>" + BaseConsoleLogger.projectSeparatorLine + Environment.NewLine +
900ResourceUtilities.FormatResourceStringStripCodeAndKeyword("ProjectStartedPrefixForTopLevelProjectWithDefaultTargets", "fname") + Environment.NewLine + Environment.NewLine +
901"<reset color><yellow>file.vb(42): VBC warning 31415: Some long message" + Environment.NewLine +
902"<reset color><cyan>pf" + Environment.NewLine +
907sc.ToString().ShouldBe("<yellow>file.vb(42): VBC warning 31415: Some long message" + Environment.NewLine + "<reset color>");
1031"<cyan>" + BaseConsoleLogger.projectSeparatorLine + Environment.NewLine +
1032ResourceUtilities.FormatResourceStringStripCodeAndKeyword("ProjectStartedPrefixForTopLevelProjectWithDefaultTargets", "fname") + Environment.NewLine + Environment.NewLine +
1033"<reset color><red>file.vb(42): VBC error 31415: Some long message" + Environment.NewLine +
1034"<reset color><cyan>pf" + Environment.NewLine +
1039sc.ToString().ShouldBe("<red>file.vb(42): VBC error 31415: Some long message" + Environment.NewLine + "<reset color>");
1107"<cyan>" + BaseConsoleLogger.projectSeparatorLine + Environment.NewLine +
1108ResourceUtilities.FormatResourceStringStripCodeAndKeyword("ProjectStartedPrefixForTopLevelProjectWithDefaultTargets", "fname") + Environment.NewLine + Environment.NewLine +
1109"<reset color><yellow>file.vb(42): VBC warning 31415: Some long message" + Environment.NewLine +
1110"<reset color><cyan>pf" + Environment.NewLine +
1115sc.ToString().ShouldBe("<yellow>file.vb(42): VBC warning 31415: Some long message" + Environment.NewLine + "<reset color>");
1183"<cyan>" + BaseConsoleLogger.projectSeparatorLine + Environment.NewLine +
1184ResourceUtilities.FormatResourceStringStripCodeAndKeyword("ProjectStartedPrefixForTopLevelProjectWithDefaultTargets", "fname") + Environment.NewLine + Environment.NewLine +
1185"<reset color><yellow>file.vb(42): VBC warning 31415: Some long message" + Environment.NewLine +
1186"<reset color><cyan>pf" + Environment.NewLine +
1191sc.ToString().ShouldBe("<yellow>file.vb(42): VBC warning 31415: Some long message" + Environment.NewLine + "<reset color>");
1205ss.ShouldBe($"foo{Environment.NewLine}");
1219ss.ShouldBe($" foo{Environment.NewLine} bar{Environment.NewLine} baz{Environment.NewLine} {Environment.NewLine}");
1231ss.ShouldBe($"foo{Environment.NewLine}bar{Environment.NewLine}baz{Environment.NewLine}{Environment.NewLine}");
1245ss.ShouldBe($"{Environment.NewLine}foo{Environment.NewLine}{Environment.NewLine}bar{Environment.NewLine}baz{Environment.NewLine}{Environment.NewLine}{Environment.NewLine}jazz{Environment.NewLine}razz{Environment.NewLine}{Environment.NewLine}matazz{Environment.NewLine}end{Environment.NewLine}");
1278"<cyan>" + BaseConsoleLogger.projectSeparatorLine + Environment.NewLine +
1279ResourceUtilities.FormatResourceStringStripCodeAndKeyword("ProjectStartedPrefixForTopLevelProjectWithDefaultTargets", "fname1") + Environment.NewLine +
1280Environment.NewLine + "<reset color>" +
1281"<cyan>" + BaseConsoleLogger.projectSeparatorLine + Environment.NewLine +
1282ResourceUtilities.FormatResourceStringStripCodeAndKeyword("ProjectStartedPrefixForNestedProjectWithDefaultTargets", "fname1", "fname2") + Environment.NewLine +
1283Environment.NewLine + "<reset color>" +
1285Environment.NewLine + "<reset color>");
1305sc.ToString().ShouldBe("<cyan>" + BaseConsoleLogger.projectSeparatorLine + Environment.NewLine +
1306ResourceUtilities.FormatResourceStringStripCodeAndKeyword("ProjectStartedPrefixForTopLevelProjectWithDefaultTargets", "fname1") + Environment.NewLine +
1307Environment.NewLine + "<reset color>");
1321"<cyan>" + ResourceUtilities.FormatResourceStringStripCodeAndKeyword("TargetStartedPrefix", "tarname") + Environment.NewLine + "<reset color>"
1323+ Environment.NewLine +
1324" " + ResourceUtilities.FormatResourceStringStripCodeAndKeyword("ProjectStartedPrefixForNestedProjectWithDefaultTargets", "fname1", "fname2") + Environment.NewLine +
1325Environment.NewLine + "<reset color>");
1350sc.ToString().ShouldStartWith("<green>" + Environment.NewLine + "bf" +
1351Environment.NewLine + "<reset color>" +
1353Environment.NewLine + "<reset color>" +
1355Environment.NewLine + "<reset color>" +
1356Environment.NewLine);
1379sc.ToString().ShouldBe($"msg{Environment.NewLine}");
1646message = message.Replace("\r\n", "\n").Replace("\n", Environment.NewLine);
1689item1spec = "spec" + Environment.NewLine;
1690item2spec = "spec2" + Environment.NewLine;
1691item3spec = "(spec;3" + Environment.NewLine;
1692item3metadatum = "f)oo = !@#" + Environment.NewLine;
1699item1spec = Environment.NewLine + " spec" + Environment.NewLine;
1700item2spec = Environment.NewLine + " spec2" + Environment.NewLine;
1701item3spec = Environment.NewLine + " (spec;3" + Environment.NewLine;
1704item1type = "type" + Environment.NewLine;
1705item2type = "type2" + Environment.NewLine;
1706item3type = "type(3)" + Environment.NewLine;
2437actualLog.ShouldContain(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("ProjectFinishedPrefixWithTargetNamesMultiProc", "None", "Build") + Environment.NewLine);
2440actualLog.ShouldContain(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("ProjectFinishedPrefixWithTargetNamesMultiProc", "None", "Build") + Environment.NewLine + Environment.NewLine);
2444actualLog.ShouldNotContain(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("ProjectFinishedPrefixWithTargetNamesMultiProc", "None", "Build") + Environment.NewLine + Environment.NewLine);
2448actualLog.ShouldNotContain(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("ProjectFinishedPrefixWithTargetNamesMultiProc", "None", "Build") + Environment.NewLine + Environment.NewLine);
ConsoleOutputAlignerTests.cs (34)
27output.ShouldBe(indent + input + Environment.NewLine);
39output.ShouldBe(input + Environment.NewLine);
52output.ShouldBe(input + Environment.NewLine);
64output.ShouldBe(input + Environment.NewLine);
76output.ShouldBe(input + Environment.NewLine);
89output.ShouldBe(indent + input + Environment.NewLine);
102output.ShouldBe(expected1stLine + Environment.NewLine + expected2ndLine + Environment.NewLine);
123output.ShouldBe(expected.Replace("\n", Environment.NewLine));
137output.ShouldBe(expected1stLine + Environment.NewLine + expected2ndLine + Environment.NewLine);
146input = input.Replace("\n", Environment.NewLine);
151output.ShouldBe(input + Environment.NewLine);
168expected = expected.Replace("\n", Environment.NewLine) + Environment.NewLine;
183input = input.Replace("\n", Environment.NewLine);
188output.ShouldBe(input + Environment.NewLine);
206string expected = input.Replace("\r", "").Replace("\n", Environment.NewLine) + Environment.NewLine;
220input = input.Replace("\n", Environment.NewLine);
221expected = expected.Replace("\n", Environment.NewLine);
234input = input.Replace("\n", Environment.NewLine);
235expected = expected.Replace("\n", Environment.NewLine);
248input = input.Replace("\n", Environment.NewLine);
253output.ShouldBe(input + Environment.NewLine);
263input = input.Replace("\n", Environment.NewLine);
268output.ShouldBe((prefixAlreadyWritten ? string.Empty : prefix) + input + Environment.NewLine);
278input = input.Replace("\n", Environment.NewLine);
283output.ShouldBe((prefixAlreadyWritten ? string.Empty : prefix) + input + Environment.NewLine);
293input = input.Replace("\n", Environment.NewLine);
298string expected = (prefixAlreadyWritten ? string.Empty : prefix) + input + Environment.NewLine +
299prefix + "x" + Environment.NewLine;
369input = input.Replace("\n", Environment.NewLine);
370expected = expected.Replace("\n", Environment.NewLine);
Construction\SolutionProjectGenerator_Tests.cs (14)
48_originalVisualStudioVersion = Environment.GetEnvironmentVariable("VisualStudioVersion");
54Environment.SetEnvironmentVariable("VisualStudioVersion", _originalVisualStudioVersion);
270Environment.SetEnvironmentVariable("MSBuildSolutionBatchTargets", "1");
282Environment.SetEnvironmentVariable("MSBuildSolutionBatchTargets", null);
421Environment.SetEnvironmentVariable("VisualStudioVersion", null);
465Environment.SetEnvironmentVariable("VisualStudioVersion", null);
502Environment.SetEnvironmentVariable("VisualStudioVersion", "ABC");
616string previousLegacyEnvironmentVariable = Environment.GetEnvironmentVariable("MSBUILDLEGACYDEFAULTTOOLSVERSION");
620Environment.SetEnvironmentVariable("MSBUILDLEGACYDEFAULTTOOLSVERSION", "1");
665Environment.SetEnvironmentVariable("MSBUILDLEGACYDEFAULTTOOLSVERSION", previousLegacyEnvironmentVariable);
1062Assert.True(buildResult, String.Join(Environment.NewLine, logger.Errors.Select(beea => beea.Message)));
1917string oldValueForMSBuildEmitSolution = Environment.GetEnvironmentVariable("MSBuildEmitSolution");
1950Environment.SetEnvironmentVariable("MSBuildEmitSolution", "1");
1965Environment.SetEnvironmentVariable("MSBuildEmitSolution", oldValueForMSBuildEmitSolution);
Definition\Toolset_Tests.cs (33)
192string originalVisualStudioVersion = Environment.GetEnvironmentVariable("VisualStudioVersion");
196Environment.SetEnvironmentVariable("VisualStudioVersion", null);
214Environment.SetEnvironmentVariable("VisualStudioVersion", originalVisualStudioVersion);
226string originalVisualStudioVersion = Environment.GetEnvironmentVariable("VisualStudioVersion");
230Environment.SetEnvironmentVariable("VisualStudioVersion", null);
250Environment.SetEnvironmentVariable("VisualStudioVersion", originalVisualStudioVersion);
257string originalVisualStudioVersion = Environment.GetEnvironmentVariable("VisualStudioVersion");
261Environment.SetEnvironmentVariable("VisualStudioVersion", null);
275Environment.SetEnvironmentVariable("VisualStudioVersion", originalVisualStudioVersion);
282string originalVisualStudioVersion = Environment.GetEnvironmentVariable("VisualStudioVersion");
286Environment.SetEnvironmentVariable("VisualStudioVersion", "foo");
297Environment.SetEnvironmentVariable("VisualStudioVersion", originalVisualStudioVersion);
304string originalVisualStudioVersion = Environment.GetEnvironmentVariable("VisualStudioVersion");
308Environment.SetEnvironmentVariable("VisualStudioVersion", null);
322Environment.SetEnvironmentVariable("VisualStudioVersion", originalVisualStudioVersion);
329string originalVisualStudioVersion = Environment.GetEnvironmentVariable("VisualStudioVersion");
333Environment.SetEnvironmentVariable("VisualStudioVersion", "foo");
350Environment.SetEnvironmentVariable("VisualStudioVersion", originalVisualStudioVersion);
357string originalVisualStudioVersion = Environment.GetEnvironmentVariable("VisualStudioVersion");
361Environment.SetEnvironmentVariable("VisualStudioVersion", null);
372Environment.SetEnvironmentVariable("VisualStudioVersion", originalVisualStudioVersion);
379string originalVisualStudioVersion = Environment.GetEnvironmentVariable("VisualStudioVersion");
383Environment.SetEnvironmentVariable("VisualStudioVersion", "FakeSubToolset");
391Environment.SetEnvironmentVariable("VisualStudioVersion", originalVisualStudioVersion);
398string originalVisualStudioVersion = Environment.GetEnvironmentVariable("VisualStudioVersion");
402Environment.SetEnvironmentVariable("VisualStudioVersion", null);
413Environment.SetEnvironmentVariable("VisualStudioVersion", originalVisualStudioVersion);
420string originalVisualStudioVersion = Environment.GetEnvironmentVariable("VisualStudioVersion");
424Environment.SetEnvironmentVariable("VisualStudioVersion", null);
438Environment.SetEnvironmentVariable("VisualStudioVersion", originalVisualStudioVersion);
445string originalVisualStudioVersion = Environment.GetEnvironmentVariable("VisualStudioVersion");
449Environment.SetEnvironmentVariable("VisualStudioVersion", ObjectModelHelpers.CurrentVisualStudioVersion);
466Environment.SetEnvironmentVariable("VisualStudioVersion", originalVisualStudioVersion);
Definition\ToolsVersion_Tests.cs (42)
294string oldLegacyToolsVersion = Environment.GetEnvironmentVariable("MSBUILDLEGACYDEFAULTTOOLSVERSION");
295string oldTreatHigherToolsVersions = Environment.GetEnvironmentVariable("MSBUILDTREATHIGHERTOOLSVERSIONASCURRENT");
299Environment.SetEnvironmentVariable("MSBUILDTREATHIGHERTOOLSVERSIONASCURRENT", "1");
300Environment.SetEnvironmentVariable("MSBUILDLEGACYDEFAULTTOOLSVERSION", "1");
324Environment.SetEnvironmentVariable("MSBUILDTREATHIGHERTOOLSVERSIONASCURRENT", oldTreatHigherToolsVersions);
325Environment.SetEnvironmentVariable("MSBUILDLEGACYDEFAULTTOOLSVERSION", oldLegacyToolsVersion);
333string oldLegacyToolsVersion = Environment.GetEnvironmentVariable("MSBUILDLEGACYDEFAULTTOOLSVERSION");
337Environment.SetEnvironmentVariable("MSBUILDLEGACYDEFAULTTOOLSVERSION", "1");
361Environment.SetEnvironmentVariable("MSBUILDLEGACYDEFAULTTOOLSVERSION", oldLegacyToolsVersion);
369string oldLegacyToolsVersion = Environment.GetEnvironmentVariable("MSBUILDLEGACYDEFAULTTOOLSVERSION");
373Environment.SetEnvironmentVariable("MSBUILDLEGACYDEFAULTTOOLSVERSION", "1");
396Environment.SetEnvironmentVariable("MSBUILDLEGACYDEFAULTTOOLSVERSION", oldLegacyToolsVersion);
429string oldLegacyToolsVersion = Environment.GetEnvironmentVariable("MSBUILDLEGACYDEFAULTTOOLSVERSION");
430string oldForceToolsVersionToCurrent = Environment.GetEnvironmentVariable("MSBUILDTREATALLTOOLSVERSIONSASCURRENT");
434Environment.SetEnvironmentVariable("MSBUILDLEGACYDEFAULTTOOLSVERSION", "1");
435Environment.SetEnvironmentVariable("MSBUILDTREATALLTOOLSVERSIONSASCURRENT", "1");
458Environment.SetEnvironmentVariable("MSBUILDLEGACYDEFAULTTOOLSVERSION", oldLegacyToolsVersion);
459Environment.SetEnvironmentVariable("MSBUILDTREATALLTOOLSVERSIONSASCURRENT", oldForceToolsVersionToCurrent);
538string oldDefaultToolsVersion = Environment.GetEnvironmentVariable("MSBUILDDEFAULTTOOLSVERSION");
542Environment.SetEnvironmentVariable("MSBUILDDEFAULTTOOLSVERSION", "foo");
565Environment.SetEnvironmentVariable("MSBUILDDEFAULTTOOLSVERSION", oldDefaultToolsVersion);
577string oldDefaultToolsVersion = Environment.GetEnvironmentVariable("MSBUILDDEFAULTTOOLSVERSION");
581Environment.SetEnvironmentVariable("MSBUILDDEFAULTTOOLSVERSION", "foo");
604Environment.SetEnvironmentVariable("MSBUILDDEFAULTTOOLSVERSION", oldDefaultToolsVersion);
616string oldLegacyToolsVersion = Environment.GetEnvironmentVariable("MSBUILDLEGACYDEFAULTTOOLSVERSION");
617string oldForceToolsVersionToCurrent = Environment.GetEnvironmentVariable("MSBUILDTREATALLTOOLSVERSIONSASCURRENT");
621Environment.SetEnvironmentVariable("MSBUILDLEGACYDEFAULTTOOLSVERSION", "1");
622Environment.SetEnvironmentVariable("MSBUILDTREATALLTOOLSVERSIONSASCURRENT", "1");
646Environment.SetEnvironmentVariable("MSBUILDLEGACYDEFAULTTOOLSVERSION", oldLegacyToolsVersion);
647Environment.SetEnvironmentVariable("MSBUILDTREATALLTOOLSVERSIONSASCURRENT", oldForceToolsVersionToCurrent);
688string oldDefaultToolsVersion = Environment.GetEnvironmentVariable("MSBUILDDEFAULTTOOLSVERSION");
692Environment.SetEnvironmentVariable("MSBUILDDEFAULTTOOLSVERSION", "foo");
717Environment.SetEnvironmentVariable("MSBUILDDEFAULTTOOLSVERSION", oldDefaultToolsVersion);
772string oldLegacyToolsVersion = Environment.GetEnvironmentVariable("MSBUILDLEGACYDEFAULTTOOLSVERSION");
773string oldForceToolsVersionToCurrent = Environment.GetEnvironmentVariable("MSBUILDTREATALLTOOLSVERSIONSASCURRENT");
777Environment.SetEnvironmentVariable("MSBUILDLEGACYDEFAULTTOOLSVERSION", "1");
778Environment.SetEnvironmentVariable("MSBUILDTREATALLTOOLSVERSIONSASCURRENT", "1");
802Environment.SetEnvironmentVariable("MSBUILDLEGACYDEFAULTTOOLSVERSION", oldLegacyToolsVersion);
803Environment.SetEnvironmentVariable("MSBUILDTREATALLTOOLSVERSIONSASCURRENT", oldForceToolsVersionToCurrent);
885string oldDefaultToolsVersion = Environment.GetEnvironmentVariable("MSBUILDDEFAULTTOOLSVERSION");
889Environment.SetEnvironmentVariable("MSBUILDDEFAULTTOOLSVERSION", "foo");
913Environment.SetEnvironmentVariable("MSBUILDDEFAULTTOOLSVERSION", oldDefaultToolsVersion);
Evaluation\Evaluator_Tests.cs (76)
549string originalValue = Environment.GetEnvironmentVariable("MSBUILDWARNONUNINITIALIZEDPROPERTY");
552Environment.SetEnvironmentVariable("MSBUILDWARNONUNINITIALIZEDPROPERTY", "true");
567Environment.SetEnvironmentVariable("MSBUILDWARNONUNINITIALIZEDPROPERTY", originalValue);
591string originalValue = Environment.GetEnvironmentVariable("MSBUILDWARNONUNINITIALIZEDPROPERTY");
596Environment.SetEnvironmentVariable("MSBUILDWARNONUNINITIALIZEDPROPERTY", null);
612Environment.SetEnvironmentVariable("MSBUILDWARNONUNINITIALIZEDPROPERTY", originalValue);
637string originalValue = Environment.GetEnvironmentVariable("MSBUILDWARNONUNINITIALIZEDPROPERTY");
640Environment.SetEnvironmentVariable("MSBUILDWARNONUNINITIALIZEDPROPERTY", "true");
655Environment.SetEnvironmentVariable("MSBUILDWARNONUNINITIALIZEDPROPERTY", originalValue);
683string originalValue = Environment.GetEnvironmentVariable("MSBUILDWARNONUNINITIALIZEDPROPERTY");
686Environment.SetEnvironmentVariable("MSBUILDWARNONUNINITIALIZEDPROPERTY", "true");
701Environment.SetEnvironmentVariable("MSBUILDWARNONUNINITIALIZEDPROPERTY", originalValue);
2425string backupMSBuildExtensionsPath = Environment.GetEnvironmentVariable(specialPropertyName);
2426string backupMSBuildExtensionsPath32 = Environment.GetEnvironmentVariable(specialPropertyName32);
2427string backupMagicSwitch = Environment.GetEnvironmentVariable("MSBUILDLEGACYEXTENSIONSPATH");
2428string targetVar = Environment.GetEnvironmentVariable("Target");
2429string numberVar = Environment.GetEnvironmentVariable("0env");
2430string msbuildVar = Environment.GetEnvironmentVariable("msbuildtoolsversion");
2436Environment.SetEnvironmentVariable(specialPropertyName, null);
2437Environment.SetEnvironmentVariable(specialPropertyName32, null);
2438Environment.SetEnvironmentVariable("MSBUILDLEGACYEXTENSIONSPATH", null);
2449Environment.SetEnvironmentVariable(specialPropertyName, backupMSBuildExtensionsPath);
2450Environment.SetEnvironmentVariable(specialPropertyName32, backupMSBuildExtensionsPath32);
2451Environment.SetEnvironmentVariable("MSBUILDLEGACYEXTENSIONSPATH", backupMagicSwitch);
2452Environment.SetEnvironmentVariable("Target", targetVar);
2453Environment.SetEnvironmentVariable("0env", numberVar);
2454Environment.SetEnvironmentVariable("msbuildtoolsversion", msbuildVar);
2466string backupMSBuildExtensionsPath = Environment.GetEnvironmentVariable("MSBuildExtensionsPath");
2472Environment.SetEnvironmentVariable("MSBuildExtensionsPath", @"c:\foo\bar");
2482Environment.SetEnvironmentVariable("MSBuildExtensionsPath", backupMSBuildExtensionsPath);
2546string originalMSBuildExtensionsPath32Value = Environment.GetEnvironmentVariable("MSBuildExtensionsPath32");
2550Environment.SetEnvironmentVariable("MSBuildExtensionsPath32", @"c:\devdiv\vscore\msbuild");
2559Environment.SetEnvironmentVariable("MSBuildExtensionsPath32", originalMSBuildExtensionsPath32Value);
2621string originalMSBuildExtensionsPath64Value = Environment.GetEnvironmentVariable("MSBuildExtensionsPath64");
2625Environment.SetEnvironmentVariable("MSBuildExtensionsPath64", @"c:\devdiv\vscore\msbuild");
2634Environment.SetEnvironmentVariable("MSBuildExtensionsPath64", originalMSBuildExtensionsPath64Value);
2660string expected = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
2663expected = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
2678string originalLocalAppDataValue = Environment.GetEnvironmentVariable("LocalAppData");
2682Environment.SetEnvironmentVariable("LocalAppData", @"c:\AppData\Local");
2691Environment.SetEnvironmentVariable("LocalAppData", originalLocalAppDataValue);
3073string oldEnvironmentValue = Environment.GetEnvironmentVariable("EnvironmentProperty");
3077Environment.SetEnvironmentVariable("EnvironmentProperty", "Bar;Baz");
3113Environment.SetEnvironmentVariable("EnvironmentProperty", oldEnvironmentValue);
3829string originalVisualStudioVersion = Environment.GetEnvironmentVariable("VisualStudioVerson");
3832Environment.SetEnvironmentVariable("VisualStudioVersion", null);
3884Environment.SetEnvironmentVariable("VisualStudioVersion", originalVisualStudioVersion);
3895string originalVisualStudioVersion = Environment.GetEnvironmentVariable("VisualStudioVerson");
3898Environment.SetEnvironmentVariable("VisualStudioVersion", "ABCDE");
3937Environment.SetEnvironmentVariable("VisualStudioVersion", originalVisualStudioVersion);
3947string originalVisualStudioVersion = Environment.GetEnvironmentVariable("VisualStudioVerson");
3950Environment.SetEnvironmentVariable("VisualStudioVersion", "FakeSubToolset");
3989Environment.SetEnvironmentVariable("VisualStudioVersion", originalVisualStudioVersion);
3999string originalVisualStudioVersion = Environment.GetEnvironmentVariable("VisualStudioVerson");
4002Environment.SetEnvironmentVariable("VisualStudioVersion", "abcdef");
4041Environment.SetEnvironmentVariable("VisualStudioVersion", originalVisualStudioVersion);
4051string originalVisualStudioVersion = Environment.GetEnvironmentVariable("VisualStudioVerson");
4052string originalC = Environment.GetEnvironmentVariable("C");
4053string originalD = Environment.GetEnvironmentVariable("D");
4057Environment.SetEnvironmentVariable("VisualStudioVersion", "FakeSubToolset");
4058Environment.SetEnvironmentVariable("C", "c4"); // not explosive :)
4059Environment.SetEnvironmentVariable("D", "d4");
4101Environment.SetEnvironmentVariable("VisualStudioVersion", originalVisualStudioVersion);
4102Environment.SetEnvironmentVariable("C", originalC);
4103Environment.SetEnvironmentVariable("D", originalD);
4113string originalVisualStudioVersion = Environment.GetEnvironmentVariable("VisualStudioVerson");
4117Environment.SetEnvironmentVariable("VisualStudioVersion", "FakeSubToolset");
4164Environment.SetEnvironmentVariable("VisualStudioVersion", originalVisualStudioVersion);
4174string originalVisualStudioVersion = Environment.GetEnvironmentVariable("VisualStudioVerson");
4178Environment.SetEnvironmentVariable("VisualStudioVersion", "FakeSubToolset");
4222Environment.SetEnvironmentVariable("VisualStudioVersion", originalVisualStudioVersion);
4323string originalVisualStudioVersion = Environment.GetEnvironmentVariable("VisualStudioVerson");
4329Environment.SetEnvironmentVariable("VisualStudioVersion", null);
4342Environment.SetEnvironmentVariable("VisualStudioVersion", originalVisualStudioVersion);
Evaluation\Expander_Tests.cs (14)
1869Assert.Equal(Environment.GetEnvironmentVariable(envVar), result);
2287string expected = ("OS=" + Environment.GetEnvironmentVariable("OS")).ToUpperInvariant();
2620string env = Environment.GetEnvironmentVariable("MSBUILDENABLEALLPROPERTYFUNCTIONS");
2624Environment.SetEnvironmentVariable("MSBUILDENABLEALLPROPERTYFUNCTIONS", "1");
2634Environment.SetEnvironmentVariable("MSBUILDENABLEALLPROPERTYFUNCTIONS", env);
2649string env = Environment.GetEnvironmentVariable("MSBUILDENABLEALLPROPERTYFUNCTIONS");
2653Environment.SetEnvironmentVariable("MSBUILDENABLEALLPROPERTYFUNCTIONS", "1");
2665Environment.SetEnvironmentVariable("MSBUILDENABLEALLPROPERTYFUNCTIONS", env);
2858Assert.Equal(System.Environment.GetFolderPath(Environment.SpecialFolder.System), result);
3823Assert.Equal(Environment.GetEnvironmentVariable(envVar), result);
3847Assert.Equal(Environment.GetEnvironmentVariable(envVar), result);
3871Assert.Equal(Environment.GetEnvironmentVariable(envVar), result);
3895Assert.Equal(Environment.GetEnvironmentVariable(envVar), result);
Microsoft.Build.Framework (69)
Microsoft.Build.Framework.UnitTests (12)
Microsoft.Build.Tasks.CodeAnalysis (10)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (17)
MapSourceRootTests.cs (11)
269"MapSourceRoots.NoSuchTopLevelSourceRoot", "SourceRoot.ContainingRoot", "SourceRoot", path2)) + Environment.NewLine +
271"MapSourceRoots.NoSuchTopLevelSourceRoot", "SourceRoot.ContainingRoot", "SourceRoot", path1)) + Environment.NewLine, engine.Log);
330"MapSourceRoots.ContainsDuplicate", "SourceRoot", path1, "SourceControl", "git", "tfvc")) + Environment.NewLine +
332"MapSourceRoots.ContainsDuplicate", "SourceRoot", path1, "RevisionId", "RevId1", "RevId2")) + Environment.NewLine +
334"MapSourceRoots.ContainsDuplicate", "SourceRoot", path1, "NestedRoot", "NR1A", "NR1B")) + Environment.NewLine +
336"MapSourceRoots.ContainsDuplicate", "SourceRoot", path1, "ContainingRoot", path3, "CR")) + Environment.NewLine +
338"MapSourceRoots.ContainsDuplicate", "SourceRoot", path1, "MappedPath", "MP1", "MP2")) + Environment.NewLine +
340"MapSourceRoots.ContainsDuplicate", "SourceRoot", path1, "SourceLinkUrl", "URL1", "URL2")) + Environment.NewLine,
378"MapSourceRoots.NoSuchTopLevelSourceRoot", "SourceRoot.ContainingRoot", "SourceRoot", @"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);
Microsoft.Build.Tasks.Core (84)
ManifestUtil\XmlUtil.cs (10)
79int t1 = Environment.TickCount;
83int t2 = Environment.TickCount;
85Util.WriteLog(String.Format(CultureInfo.CurrentCulture, "new XPathDocument(1) t={0}", Environment.TickCount - t2));
87int t3 = Environment.TickCount;
92Util.WriteLog(String.Format(CultureInfo.CurrentCulture, "XslCompiledTransform.Load t={0}", Environment.TickCount - t3));
99int t4 = Environment.TickCount;
102Util.WriteLog(String.Format(CultureInfo.CurrentCulture, "new XmlReader(2) t={0}", Environment.TickCount - t4));
123int t5 = Environment.TickCount;
125Util.WriteLog(String.Format(CultureInfo.CurrentCulture, "XslCompiledTransform.Transform t={0}", Environment.TickCount - t4));
131Util.WriteLog(String.Format(CultureInfo.CurrentCulture, "XslCompiledTransform(\"{0}\") t={1}", resource, Environment.TickCount - t1));
Microsoft.Build.Tasks.UnitTests (94)
Exec_Tests.cs (22)
271Environment.GetFolderPath(Environment.SpecialFolder.Windows); // not desktop etc - IT redirection messes it up
283string working = @"\\" + Environment.MachineName + @"\c$";
291string system = Environment.GetFolderPath(Environment.SpecialFolder.System);
303Environment.GetFolderPath(Environment.SpecialFolder.Windows) : "/usr/lib");
326string oldTmp = Environment.GetEnvironmentVariable("TMP");
339Environment.SetEnvironmentVariable("TMP", newTmp);
347Environment.SetEnvironmentVariable("TMP", oldTmp);
363string oldTmp = Environment.GetEnvironmentVariable("TMP");
376Environment.SetEnvironmentVariable("TMP", newTmp);
385Environment.SetEnvironmentVariable("TMP", oldTmp);
401string oldTmp = Environment.GetEnvironmentVariable("TMP");
414Environment.SetEnvironmentVariable("TMP", newTmp);
422Environment.SetEnvironmentVariable("TMP", oldTmp);
438string oldTmp = Environment.GetEnvironmentVariable("TMP");
451Environment.SetEnvironmentVariable("TMP", newTmp);
459Environment.SetEnvironmentVariable("TMP", oldTmp);
852string oldValue = Environment.GetEnvironmentVariable("errorlevel");
857Environment.SetEnvironmentVariable("errorlevel", "1");
864Environment.SetEnvironmentVariable("errorlevel", oldValue);
GetInstalledSDKLocations_Tests.cs (10)
274Environment.SetEnvironmentVariable("MSBUILDSDKREFERENCEDIRECTORY", _fakeSDKStructureRoot + ";" + _fakeSDKStructureRoot2);
275Environment.SetEnvironmentVariable("MSBUILDDISABLEREGISTRYFORSDKLOOKUP", "true");
308Environment.SetEnvironmentVariable("MSBUILDSDKREFERENCEDIRECTORY", null);
309Environment.SetEnvironmentVariable("MSBUILDDISABLEREGISTRYFORSDKLOOKUP", null);
321Environment.SetEnvironmentVariable("MSBUILDSDKREFERENCEDIRECTORY", _fakeSDKStructureRoot + ";" + _fakeSDKStructureRoot2);
322Environment.SetEnvironmentVariable("MSBUILDDISABLEREGISTRYFORSDKLOOKUP", "true");
382Environment.SetEnvironmentVariable("MSBUILDSDKREFERENCEDIRECTORY", null);
383Environment.SetEnvironmentVariable("MSBUILDDISABLEREGISTRYFORSDKLOOKUP", null);
395Environment.SetEnvironmentVariable("MSBUILDDISABLEREGISTRYFORSDKLOOKUP", "true");
456Environment.SetEnvironmentVariable("MSBUILDDISABLEREGISTRYFORSDKLOOKUP", null);
ResolveSDKReference_Tests.cs (20)
3766Environment.SetEnvironmentVariable("MSBUILDSDKREFERENCEDIRECTORY", testDirectoryRoot);
3767Environment.SetEnvironmentVariable("MSBUILDDISABLEREGISTRYFORSDKLOOKUP", "true");
3835Environment.SetEnvironmentVariable("MSBUILDSDKREFERENCEDIRECTORY", null);
3836Environment.SetEnvironmentVariable("MSBUILDDISABLEREGISTRYFORSDKLOOKUP", null);
3907Environment.SetEnvironmentVariable("MSBUILDSDKREFERENCEDIRECTORY", testDirectoryRoot);
3908Environment.SetEnvironmentVariable("MSBUILDDISABLEREGISTRYFORSDKLOOKUP", "true");
3978Environment.SetEnvironmentVariable("MSBUILDSDKREFERENCEDIRECTORY", null);
3979Environment.SetEnvironmentVariable("MSBUILDDISABLEREGISTRYFORSDKLOOKUP", null);
4029Environment.SetEnvironmentVariable("MSBUILDSDKREFERENCEDIRECTORY", testDirectoryRoot);
4030Environment.SetEnvironmentVariable("MSBUILDDISABLEREGISTRYFORSDKLOOKUP", "true");
4087Environment.SetEnvironmentVariable("MSBUILDSDKREFERENCEDIRECTORY", null);
4088Environment.SetEnvironmentVariable("MSBUILDDISABLEREGISTRYFORSDKLOOKUP", null);
4134Environment.SetEnvironmentVariable("MSBUILDSDKREFERENCEDIRECTORY", testDirectoryRoot);
4135Environment.SetEnvironmentVariable("MSBUILDDISABLEREGISTRYFORSDKLOOKUP", "true");
4186Environment.SetEnvironmentVariable("MSBUILDSDKREFERENCEDIRECTORY", null);
4187Environment.SetEnvironmentVariable("MSBUILDDISABLEREGISTRYFORSDKLOOKUP", null);
4273Environment.SetEnvironmentVariable("MSBUILDSDKREFERENCEDIRECTORY", testDirectoryRoot);
4274Environment.SetEnvironmentVariable("MSBUILDDISABLEREGISTRYFORSDKLOOKUP", "true");
4318Environment.SetEnvironmentVariable("MSBUILDSDKREFERENCEDIRECTORY", null);
4319Environment.SetEnvironmentVariable("MSBUILDDISABLEREGISTRYFORSDKLOOKUP", null);
Microsoft.Build.UnitTests.Shared (26)
TestEnvironment.cs (19)
157() => Environment.GetEnvironmentVariable(environmentVariableName)));
431_initialEnvironment = Environment.GetEnvironmentVariables();
436var environment = Environment.GetEnvironmentVariables();
578Environment.SetEnvironmentVariable(key, tempPath);
590Environment.SetEnvironmentVariable(key, tempPaths[key]);
600[TMP] = Environment.GetEnvironmentVariable(TMP),
601[TEMP] = Environment.GetEnvironmentVariable(TEMP)
606tempPaths[TMPDIR] = Environment.GetEnvironmentVariable(TMPDIR);
655_previousDebugEngineEnv = Environment.GetEnvironmentVariable("MSBuildDebugEngine");
656_previousDebugPath = Environment.GetEnvironmentVariable("MSBUILDDEBUGPATH");
660Environment.SetEnvironmentVariable("MSBuildDebugEngine", "1");
661Environment.SetEnvironmentVariable("MSBUILDDEBUGPATH", FileUtilities.TempFileDirectory);
665Environment.SetEnvironmentVariable("MSBuildDebugEngine", null);
666Environment.SetEnvironmentVariable("MSBUILDDEBUGPATH", null);
672Environment.SetEnvironmentVariable("MSBuildDebugEngine", _previousDebugEngineEnv);
673Environment.SetEnvironmentVariable("MSBUILDDEBUGPATH", _previousDebugPath);
772_originalValue = Environment.GetEnvironmentVariable(environmentVariableName);
774Environment.SetEnvironmentVariable(environmentVariableName, newValue);
779Environment.SetEnvironmentVariable(_environmentVariableName, _originalValue);
Microsoft.Build.Utilities.Core (42)
Microsoft.Build.Utilities.UnitTests (38)
ToolLocationHelper_Tests.cs (22)
658if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("ProgramFiles(x86)")))
1954Environment.SpecialFolder folder = Environment.Is64BitOperatingSystem ? Environment.SpecialFolder.ProgramFilesX86 : Environment.SpecialFolder.ProgramFiles;
1955string programFilesX86 = Environment.GetFolderPath(folder);
2990Environment.SetEnvironmentVariable("MSBUILDDISABLEREGISTRYFORSDKLOOKUP", "true");
3015Environment.SetEnvironmentVariable("MSBUILDDISABLEREGISTRYFORSDKLOOKUP", null);
3027Environment.SetEnvironmentVariable("MSBUILDDISABLEREGISTRYFORSDKLOOKUP", "true");
3061Environment.SetEnvironmentVariable("MSBUILDDISABLEREGISTRYFORSDKLOOKUP", null);
3479Environment.SetEnvironmentVariable("MSBUILDDISABLEREGISTRYFORSDKLOOKUP", "True");
3510Environment.SetEnvironmentVariable("MSBUILDDISABLEREGISTRYFORSDKLOOKUP", null);
3523Environment.SetEnvironmentVariable("MSBUILDDISABLEREGISTRYFORSDKLOOKUP", "True");
3536Environment.SetEnvironmentVariable("MSBUILDDISABLEREGISTRYFORSDKLOOKUP", null);
3568Environment.SetEnvironmentVariable("MSBUILDSDKREFERENCEDIRECTORY", testDirectoryRoot);
3569Environment.SetEnvironmentVariable("MSBUILDDISABLEREGISTRYFORSDKLOOKUP", "true");
3600Environment.SetEnvironmentVariable("MSBUILDSDKREFERENCEDIRECTORY", null);
3601Environment.SetEnvironmentVariable("MSBUILDDISABLEREGISTRYFORSDKLOOKUP", null);
3642Environment.SetEnvironmentVariable("MSBUILDDISABLEREGISTRYFORSDKLOOKUP", "true");
3670Environment.SetEnvironmentVariable("MSBUILDDISABLEREGISTRYFORSDKLOOKUP", null);
4054Environment.SetEnvironmentVariable("MSBUILDDISABLEREGISTRYFORSDKLOOKUP", "true");
4083Environment.SetEnvironmentVariable("MSBUILDDISABLEREGISTRYFORSDKLOOKUP", null);
Microsoft.Cci.Extensions (2)
Microsoft.CodeAnalysis (22)
Microsoft.CodeAnalysis.CodeStyle (24)
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (2)
Microsoft.CodeAnalysis.CSharp (1)
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)
4802Assert.True(match.Success, $"Expected pattern:{Environment.NewLine}{pattern}{Environment.NewLine}Actual:{Environment.NewLine}{output}");
6007.Replace(Environment.NewLine, string.Empty), workingDirectory: tempDir) :
6042.Replace(Environment.NewLine, string.Empty), workingDirectory: tempDir) :
6122.Replace(Environment.NewLine, string.Empty)) :
8223var errorLines = outWriter.ToString().Trim().Split(new string[] { Environment.NewLine }, StringSplitOptions.None);
8236errorLines = outWriter.ToString().Trim().Split(new string[] { Environment.NewLine }, StringSplitOptions.None);
9006Assert.Contains($"error CS0016: Could not write to output file '{exePath}' -- 'Fake IOException'{Environment.NewLine}", outWriter.ToString());
9029Assert.Contains($"error CS0016: Could not write to output file '{pdbPath}' -- 'Fake IOException'{Environment.NewLine}", outWriter.ToString());
9051Assert.Equal($"error CS0016: Could not write to output file '{xmlPath}' -- 'Fake IOException'{Environment.NewLine}", outWriter.ToString());
9081Assert.Equal($"error CS0016: Could not write to output file '{sourceLinkPath}' -- 'Fake IOException'{Environment.NewLine}", outWriter.ToString());
10597expectedExitCode, exitCode, Environment.NewLine, Environment.NewLine, output));
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (12)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (15)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (6)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Features (5)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (16)
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (8)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (23)
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 (3)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (5)
Microsoft.CodeAnalysis.EditorFeatures (10)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (7)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (8)
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (6)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (10)
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (1)
Microsoft.CodeAnalysis.ExternalAccess.Xaml (1)
Microsoft.CodeAnalysis.Features (13)
Microsoft.CodeAnalysis.Features.Test.Utilities (6)
Microsoft.CodeAnalysis.Features.UnitTests (2)
Microsoft.CodeAnalysis.InteractiveHost (15)
Microsoft.CodeAnalysis.LanguageServer (17)
Microsoft.CodeAnalysis.LanguageServer.Protocol (10)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
Microsoft.CodeAnalysis.LanguageServer.UnitTests (1)
Microsoft.CodeAnalysis.PooledObjects.Package (1)
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Microsoft.CodeAnalysis.Scripting (2)
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (6)
Microsoft.CodeAnalysis.Scripting.TestUtilities (5)
Microsoft.CodeAnalysis.Test.Utilities (76)
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.UnitTests (23)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (6)
Microsoft.CodeAnalysis.Workspaces (39)
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 (4)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (12)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (3)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (3)
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
Microsoft.CommonLanguageServerProtocol.Framework.Package (4)
Microsoft.Data.Analysis (1)
Microsoft.Data.Analysis.Tests (1)
Microsoft.DotNet.Arcade.Sdk (2)
Microsoft.DotNet.AsmDiff (1)
Microsoft.DotNet.Build.Tasks.Feed (12)
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.SignCheck (3)
Microsoft.DotNet.SignTool (6)
Microsoft.DotNet.SignTool.Tests (1)
Microsoft.DotNet.SourceBuild.Tasks (8)
Microsoft.DotNet.SwaggerGenerator.CmdLine (1)
Microsoft.DotNet.VersionTools (3)
Microsoft.DotNet.VersionTools.Cli (1)
Microsoft.DotNet.XUnitAssert.Tests (1119)
AsyncCollectionAssertsTests.cs (108)
43 "Assert.All() Failure: 2 out of 6 items in the collection did not pass." + Environment.NewLine +
44 "[2]: Item: 42" + Environment.NewLine +
45 " Error: Assert.Equal() Failure: Values differ" + Environment.NewLine +
46 " Expected: 1" + Environment.NewLine +
47 " Actual: 42" + Environment.NewLine +
48 "[3]: Item: 2112" + Environment.NewLine +
49 " Error: Assert.Equal() Failure: Values differ" + Environment.NewLine +
50 " Expected: 1" + Environment.NewLine +
95 "Assert.All() Failure: 2 out of 6 items in the collection did not pass." + Environment.NewLine +
96 "[2]: Item: 42" + Environment.NewLine +
97 " Error: Assert.Equal() Failure: Values differ" + Environment.NewLine +
98 " Expected: 1" + Environment.NewLine +
99 " Actual: 42" + Environment.NewLine +
100 "[3]: Item: 2112" + Environment.NewLine +
101 " Error: Assert.Equal() Failure: Values differ" + Environment.NewLine +
102 " Expected: 1" + Environment.NewLine +
145 "Assert.Collection() Failure: Mismatched item count" + Environment.NewLine +
146 "Collection: []" + Environment.NewLine +
147 "Expected count: 1" + Environment.NewLine +
179 "Assert.Collection() Failure: Item comparison failure" + Environment.NewLine +
180 " ↓ (pos 1)" + Environment.NewLine +
181 "Collection: [42, 2112]" + Environment.NewLine +
182 "Error: Assert.Equal() Failure: Values differ" + Environment.NewLine +
183 " Expected: 2113" + Environment.NewLine +
184 " Actual: 2112" + Environment.NewLine +
216 "Assert.Collection() Failure: Mismatched item count" + Environment.NewLine +
217 "Collection: []" + Environment.NewLine +
218 "Expected count: 1" + Environment.NewLine +
266 "Assert.Collection() Failure: Item comparison failure" + Environment.NewLine +
267 " ↓ (pos 1)" + Environment.NewLine +
268 "Collection: [42, 2112]" + Environment.NewLine +
269 "Error: Assert.Equal() Failure: Values differ" + Environment.NewLine +
270 " Expected: 2113" + Environment.NewLine +
271 " Actual: 2112" + Environment.NewLine +
311 "Assert.Contains() Failure: Item not found in collection" + Environment.NewLine +
312 "Collection: [41, 43]" + Environment.NewLine +
380 "Assert.Contains() Failure: Filter not matched in collection" + Environment.NewLine +
413 "Assert.Distinct() Failure: Duplicate item found" + Environment.NewLine +
414 "Collection: [42, 42]" + Environment.NewLine +
429 "Assert.Distinct() Failure: Duplicate item found" + Environment.NewLine +
430 $"Collection: [\"a\", null, \"b\", null, \"c\", {ArgumentFormatter.Ellipsis}]" + Environment.NewLine +
454 "Assert.Distinct() Failure: Duplicate item found" + Environment.NewLine +
455 "Collection: [\"a\", \"b\", \"A\"]" + Environment.NewLine +
487 "Assert.DoesNotContain() Failure: Item found in collection" + Environment.NewLine +
488 " ↓ (pos 0)" + Environment.NewLine +
489 "Collection: [42]" + Environment.NewLine +
557 "Assert.DoesNotContain() Failure: Filter matched in collection" + Environment.NewLine +
558 " ↓ (pos 1)" + Environment.NewLine +
598 "Assert.Empty() Failure: Collection was not empty" + Environment.NewLine +
643 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
644 "Expected: " + expectedType + " []" + Environment.NewLine +
665 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
666 "Expected: null" + Environment.NewLine +
758 message += Environment.NewLine + " " + paddingBlanks + expectedPointer;
761 Environment.NewLine + "Expected: " + expectedType.PadRight(padding) + expectedDisplay +
762 Environment.NewLine + "Actual: " + actualType.PadRight(padding) + actualDisplay;
765 message += Environment.NewLine + " " + paddingBlanks + actualPointer;
796 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
797 " " + new string(' ', padding) + " ↓ (pos 0)" + Environment.NewLine +
798 "Expected: " + expectedType.PadRight(padding) + "[1, 2, 3, 4, 5]" + Environment.NewLine +
799 "Actual: " + actualType.PadRight(padding) + "[1, 2, 3, 4, 5]" + Environment.NewLine +
877 "Assert.Equal() Failure: Exception thrown during comparison" + Environment.NewLine +
878 " " + new string(' ', padding) + " ↓ (pos 0)" + Environment.NewLine +
879 "Expected: " + expectedType.PadRight(padding) + "[1, 2]" + Environment.NewLine +
880 "Actual: " + actualType.PadRight(padding) + "[1, 3]" + Environment.NewLine +
929 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
930 " " + new string(' ', padding) + " ↓ (pos 0)" + Environment.NewLine +
931 "Expected: " + expectedType.PadRight(padding) + "[EquatableObject { Char = 'a' }]" + Environment.NewLine +
932 "Actual: " + actualType.PadRight(padding) + "[EquatableObject { Char = 'b' }]" + Environment.NewLine +
969 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
970 " " + new string(' ', padding) + " ↓ (pos 0)" + Environment.NewLine +
971 "Expected: " + expectedType.PadRight(padding) + "[1, 2, 3, 4, 5]" + Environment.NewLine +
972 "Actual: " + actualType.PadRight(padding) + "[1, 2, 3, 4, 5]" + Environment.NewLine +
1030 "Assert.Equal() Failure: Exception thrown during comparison" + Environment.NewLine +
1031 " " + new string(' ', padding) + " ↓ (pos 0)" + Environment.NewLine +
1032 "Expected: " + expectedType.PadRight(padding) + "[1, 2]" + Environment.NewLine +
1033 "Actual: " + actualType.PadRight(padding) + "[1, 3]" + Environment.NewLine +
1096 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
1097 "Expected: Not null" + Environment.NewLine +
1145 "Assert.NotEqual() Failure: Collections are equal" + Environment.NewLine +
1146 $"Expected: Not {expectedType.PadRight(padding)}[1, 2, 3, 4, 5, {ArgumentFormatter.Ellipsis}]" + Environment.NewLine +
1195 "Assert.NotEqual() Failure: Collections are equal" + Environment.NewLine +
1196 "Expected: Not " + expectedType.PadRight(padding) + "[1, 2, 3, 4, 5]" + Environment.NewLine +
1236 "Assert.NotEqual() Failure: Exception thrown during comparison" + Environment.NewLine +
1237 " " + new string(' ', padding) + " ↓ (pos 0)" + Environment.NewLine +
1238 "Expected: Not " + expectedType.PadRight(padding) + "[1, 2]" + Environment.NewLine +
1239 "Actual: " + actualType.PadRight(padding) + "[1, 2]" + Environment.NewLine +
1278 "Assert.NotEqual() Failure: Collections are equal" + Environment.NewLine +
1279 "Expected: Not " + expectedType.PadRight(padding) + "[EquatableObject { Char = 'a' }]" + Environment.NewLine +
1336 "Assert.NotEqual() Failure: Collections are equal" + Environment.NewLine +
1337 "Expected: Not " + expectedType.PadRight(padding) + "[1, 2, 3, 4, 5]" + Environment.NewLine +
1363 "Assert.NotEqual() Failure: Exception thrown during comparison" + Environment.NewLine +
1364 " " + new string(' ', padding) + " ↓ (pos 0)" + Environment.NewLine +
1365 "Expected: Not " + expectedType.PadRight(padding) + "[1, 2]" + Environment.NewLine +
1366 "Actual: " + actualType.PadRight(padding) + "[1, 2]" + Environment.NewLine +
1417 "Assert.Single() Failure: The collection contained 2 items" + Environment.NewLine +
1432 "Assert.Single() Failure: The collection contained 7 items" + Environment.NewLine +
1457 "Assert.Single() Failure: The collection contained 5 items" + Environment.NewLine +
1492 "Assert.Single() Failure: The collection did not contain any matching items" + Environment.NewLine +
1493 "Expected: (predicate expression)" + Environment.NewLine +
1508 "Assert.Single() Failure: The collection contained 2 matching items" + Environment.NewLine +
1509 "Expected: (predicate expression)" + Environment.NewLine +
1510 "Collection: [\"Hello\", \"World\"]" + Environment.NewLine +
1525 "Assert.Single() Failure: The collection contained 2 matching items" + Environment.NewLine +
1526 "Expected: (predicate expression)" + Environment.NewLine +
1527 $"Collection: [1, 2, 3, 4, 5, {ArgumentFormatter.Ellipsis}]" + Environment.NewLine +
1552 "Assert.Single() Failure: The collection did not contain any matching items" + Environment.NewLine +
1553 "Expected: (predicate expression)" + Environment.NewLine +
CollectionAssertsTests.cs (174)
41 "Assert.All() Failure: 2 out of 6 items in the collection did not pass." + Environment.NewLine +
42 "[2]: Item: 42" + Environment.NewLine +
43 " Error: Assert.Equal() Failure: Values differ" + Environment.NewLine +
44 " Expected: 1" + Environment.NewLine +
45 " Actual: 42" + Environment.NewLine +
46 "[3]: Item: 2112" + Environment.NewLine +
47 " Error: Assert.Equal() Failure: Values differ" + Environment.NewLine +
48 " Expected: 1" + Environment.NewLine +
93 "Assert.All() Failure: 2 out of 6 items in the collection did not pass." + Environment.NewLine +
94 "[2]: Item: 42" + Environment.NewLine +
95 " Error: Assert.Equal() Failure: Values differ" + Environment.NewLine +
96 " Expected: 1" + Environment.NewLine +
97 " Actual: 42" + Environment.NewLine +
98 "[3]: Item: 2112" + Environment.NewLine +
99 " Error: Assert.Equal() Failure: Values differ" + Environment.NewLine +
100 " Expected: 1" + Environment.NewLine +
143 "Assert.Collection() Failure: Mismatched item count" + Environment.NewLine +
144 "Collection: []" + Environment.NewLine +
145 "Expected count: 1" + Environment.NewLine +
178 "Assert.Collection() Failure: Item comparison failure" + Environment.NewLine +
179 " ↓ (pos 1)" + Environment.NewLine +
180 "Collection: [42, 2112]" + Environment.NewLine +
181 "Error: Assert.Equal() Failure: Values differ" + Environment.NewLine +
182 " Expected: 2113" + Environment.NewLine +
183 " Actual: 2112" + Environment.NewLine +
216 "Assert.Collection() Failure: Mismatched item count" + Environment.NewLine +
217 "Collection: []" + Environment.NewLine +
218 "Expected count: 1" + Environment.NewLine +
266 "Assert.Collection() Failure: Item comparison failure" + Environment.NewLine +
267 " ↓ (pos 1)" + Environment.NewLine +
268 "Collection: [42, 2112]" + Environment.NewLine +
269 "Error: Assert.Equal() Failure: Values differ" + Environment.NewLine +
270 " Expected: 2113" + Environment.NewLine +
271 " Actual: 2112" + Environment.NewLine +
311 "Assert.Contains() Failure: Item not found in collection" + Environment.NewLine +
312 "Collection: [41, 43]" + Environment.NewLine +
373 "Assert.Contains() Failure: Item not found in collection" + Environment.NewLine +
374 "Collection: [\"Hi there\"]" + Environment.NewLine +
414 "Assert.Contains() Failure: Filter not matched in collection" + Environment.NewLine +
447 "Assert.Distinct() Failure: Duplicate item found" + Environment.NewLine +
448 "Collection: [42, 42]" + Environment.NewLine +
463 "Assert.Distinct() Failure: Duplicate item found" + Environment.NewLine +
464 $"Collection: [\"a\", null, \"b\", null, \"c\", {ArgumentFormatter.Ellipsis}]" + Environment.NewLine +
488 "Assert.Distinct() Failure: Duplicate item found" + Environment.NewLine +
489 "Collection: [\"a\", \"b\", \"A\"]" + Environment.NewLine +
521 "Assert.DoesNotContain() Failure: Item found in collection" + Environment.NewLine +
522 " ↓ (pos 0)" + Environment.NewLine +
523 "Collection: [42]" + Environment.NewLine +
555 "Assert.DoesNotContain() Failure: Item found in set" + Environment.NewLine +
556 "Set: [\"Hi there\"]" + Environment.NewLine +
573 "Assert.DoesNotContain() Failure: Item found in set" + Environment.NewLine +
574 "Set: [\"Hi there\"]" + Environment.NewLine +
635 "Assert.DoesNotContain() Failure: Filter matched in collection" + Environment.NewLine +
636 " ↓ (pos 1)" + Environment.NewLine +
676 "Assert.Empty() Failure: Collection was not empty" + Environment.NewLine +
716 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
717 "Expected: int[] []" + Environment.NewLine +
733 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
734 "Expected: null" + Environment.NewLine +
785 message += Environment.NewLine + " " + expectedPointer;
795 Environment.NewLine + "Expected: " + expectedType + ArgumentFormatter.Format(expected) +
796 Environment.NewLine + "Actual: " + actualType + ArgumentFormatter.Format(actual);
799 message += Environment.NewLine + " " + actualPointer;
860 message += Environment.NewLine + " " + expectedPointer;
863 Environment.NewLine + "Expected: " + expectedDisplay +
864 Environment.NewLine + "Actual: " + actualDisplay;
867 message += Environment.NewLine + " " + actualPointer;
882 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
883 " ↓ (pos 2, type System.Int32)" + Environment.NewLine +
884 "Expected: [1, 2, 3]" + Environment.NewLine +
885 "Actual: [1, 2, 3]" + Environment.NewLine +
1014 message += Environment.NewLine + " " + expectedPointer;
1017 Environment.NewLine + "Expected: " + expectedDisplay +
1018 Environment.NewLine + "Actual: " + actualDisplay;
1021 message += Environment.NewLine + " " + actualPointer;
1042 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
1043 " ↓ (pos 0)" + Environment.NewLine +
1044 "Expected: int[] [1, 2, 3, 4, 5]" + Environment.NewLine +
1045 "Actual: List<int> [1, 2, 3, 4, 5]" + Environment.NewLine +
1111 "Assert.Equal() Failure: Exception thrown during comparison" + Environment.NewLine +
1112 " ↓ (pos 0)" + Environment.NewLine +
1113 "Expected: [1, 2]" + Environment.NewLine +
1114 "Actual: [1, 3]" + Environment.NewLine +
1156 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
1157 " ↓ (pos 0)" + Environment.NewLine +
1158 "Expected: [EquatableObject { Char = 'a' }]" + Environment.NewLine +
1159 "Actual: [EquatableObject { Char = 'b' }]" + Environment.NewLine +
1186 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
1187 " ↓ (pos 0)" + Environment.NewLine +
1188 "Expected: int[] [1, 2, 3, 4, 5]" + Environment.NewLine +
1189 "Actual: List<int> [1, 2, 3, 4, 5]" + Environment.NewLine +
1238 "Assert.Equal() Failure: Exception thrown during comparison" + Environment.NewLine +
1239 " ↓ (pos 0)" + Environment.NewLine +
1240 "Expected: [1, 2]" + Environment.NewLine +
1241 "Actual: [1, 3]" + Environment.NewLine +
1279 "Assert.Equal() Failure: Dictionaries differ" + Environment.NewLine +
1280 "Expected: [[\"a\"] = 1, [\"b\"] = 2, [\"c\"] = 3]" + Environment.NewLine +
1296 "Assert.Equal() Failure: Dictionaries differ" + Environment.NewLine +
1297 "Expected: [[\"a\"] = 1, [\"b\"] = 2]" + Environment.NewLine +
1329 "Assert.Equal() Failure: Dictionaries differ" + Environment.NewLine +
1330 $"Expected: [[\"a\"] = 1, [\"be\"] = 2, [\"c\"] = 3, [\"d\"] = 4, [\"e\"] = 5, {ArgumentFormatter.Ellipsis}]" + Environment.NewLine +
1373 "Assert.Equal() Failure: Dictionaries differ" + Environment.NewLine +
1374 "Expected: [[\"toAddresses\"] = [\"test1@example.com\"], [\"ccAddresses\"] = [\"test2@example.com\"]]" + Environment.NewLine +
1403 "Assert.Equal() Failure: Dictionaries differ" + Environment.NewLine +
1404 "Expected: [[\"Key1\"] = EquatableObject { Char = 'a' }]" + Environment.NewLine +
1485 "Assert.Equal() Failure: Dictionaries differ" + Environment.NewLine +
1486 "Expected: [[\"key\"] = [[\"key\"] = [[[\"key\"] = [\"value1\"]]]]]" + Environment.NewLine +
1541 "Assert.Equal() Failure: HashSets differ" + Environment.NewLine +
1542 "Expected: [42, 2112]" + Environment.NewLine +
1559 "Assert.Equal() Failure: HashSets differ" + Environment.NewLine +
1560 "Expected: [[True, False]]" + Environment.NewLine +
1576 "Assert.Equal() Failure: HashSets differ" + Environment.NewLine +
1577 "Expected: [[True, False]]" + Environment.NewLine +
1657 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
1658 "Expected: Not null" + Environment.NewLine +
1694 "Assert.NotEqual() Failure: Collections are equal" + Environment.NewLine +
1695 "Expected: Not [\"@\", \"a\", \"ab\", \"b\"]" + Environment.NewLine +
1710 "Assert.NotEqual() Failure: Collections are equal" + Environment.NewLine +
1711 "Expected: Not [[\"@\", \"a\"], [\"ab\", \"b\"]]" + Environment.NewLine +
1745 "Assert.NotEqual() Failure: Collections are equal" + Environment.NewLine +
1746 $"Expected: Not int[] [1, 2, 3, 4, 5, {ArgumentFormatter.Ellipsis}]" + Environment.NewLine +
1783 "Assert.NotEqual() Failure: Collections are equal" + Environment.NewLine +
1784 "Expected: Not int[] [1, 2, 3, 4, 5]" + Environment.NewLine +
1811 "Assert.NotEqual() Failure: Exception thrown during comparison" + Environment.NewLine +
1812 " ↓ (pos 0)" + Environment.NewLine +
1813 "Expected: Not [1, 2]" + Environment.NewLine +
1814 "Actual: [1, 2]" + Environment.NewLine +
1847 "Assert.NotEqual() Failure: Collections are equal" + Environment.NewLine +
1848 "Expected: Not [EquatableObject { Char = 'a' }]" + Environment.NewLine +
1893 "Assert.NotEqual() Failure: Collections are equal" + Environment.NewLine +
1894 "Expected: Not int[] [1, 2, 3, 4, 5]" + Environment.NewLine +
1913 "Assert.NotEqual() Failure: Exception thrown during comparison" + Environment.NewLine +
1914 " ↓ (pos 0)" + Environment.NewLine +
1915 "Expected: Not [1, 2]" + Environment.NewLine +
1916 "Actual: [1, 2]" + Environment.NewLine +
1936 "Assert.NotEqual() Failure: Dictionaries are equal" + Environment.NewLine +
1937 "Expected: Not [[\"a\"] = 1, [\"b\"] = 2, [\"c\"] = 3]" + Environment.NewLine +
1953 "Assert.NotEqual() Failure: Dictionaries are equal" + Environment.NewLine +
1954 "Expected: Not [[\"a\"] = 1, [\"b\"] = 2, [\"c\"] = 3]" + Environment.NewLine +
2022 "Assert.NotEqual() Failure: Dictionaries are equal" + Environment.NewLine +
2023 "Expected: Not [[\"toAddresses\"] = [\"test1@example.com\"], [\"ccAddresses\"] = [\"test2@example.com\"]]" + Environment.NewLine +
2061 "Assert.NotEqual() Failure: Dictionaries are equal" + Environment.NewLine +
2062 "Expected: Not [[\"Key1\"] = EquatableObject { Char = 'a' }]" + Environment.NewLine +
2119 "Assert.NotEqual() Failure: Dictionaries are equal" + Environment.NewLine +
2120 "Expected: Not [[\"key\"] = [[\"key\"] = [[[\"key\"] = [\"value\"]]]]]" + Environment.NewLine +
2172 "Assert.NotEqual() Failure: HashSets are equal" + Environment.NewLine +
2173 "Expected: Not [42, 2112]" + Environment.NewLine +
2194 "Assert.NotEqual() Failure: HashSets are equal" + Environment.NewLine +
2195 "Expected: Not [[True, False]]" + Environment.NewLine +
2215 "Assert.NotEqual() Failure: HashSets are equal" + Environment.NewLine +
2216 "Expected: Not [[True, False]]" + Environment.NewLine +
2314 "Assert.Single() Failure: The collection contained 2 items" + Environment.NewLine +
2329 "Assert.Single() Failure: The collection contained 7 items" + Environment.NewLine +
2369 "Assert.Single() Failure: The collection did not contain any matching items" + Environment.NewLine +
2370 "Expected: \"foo\"" + Environment.NewLine +
2385 "Assert.Single() Failure: The collection contained 2 matching items" + Environment.NewLine +
2386 "Expected: \"Hello\"" + Environment.NewLine +
2387 "Collection: [\"Hello\", \"World\", \"Hello\"]" + Environment.NewLine +
2402 "Assert.Single() Failure: The collection contained 2 matching items" + Environment.NewLine +
2403 "Expected: 4" + Environment.NewLine +
2404 $"Collection: [1, 2, 3, 4, 5, {ArgumentFormatter.Ellipsis}]" + Environment.NewLine +
2449 "Assert.Single() Failure: The collection contained 2 items" + Environment.NewLine +
2464 "Assert.Single() Failure: The collection contained 7 items" + Environment.NewLine +
2489 "Assert.Single() Failure: The collection contained 5 items" + Environment.NewLine +
2524 "Assert.Single() Failure: The collection did not contain any matching items" + Environment.NewLine +
2525 "Expected: (predicate expression)" + Environment.NewLine +
2540 "Assert.Single() Failure: The collection contained 2 matching items" + Environment.NewLine +
2541 "Expected: (predicate expression)" + Environment.NewLine +
2542 "Collection: [\"Hello\", \"World\"]" + Environment.NewLine +
2557 "Assert.Single() Failure: The collection contained 2 matching items" + Environment.NewLine +
2558 "Expected: (predicate expression)" + Environment.NewLine +
2559 $"Collection: [1, 2, 3, 4, 5, {ArgumentFormatter.Ellipsis}]" + Environment.NewLine +
2584 "Assert.Single() Failure: The collection did not contain any matching items" + Environment.NewLine +
2585 "Expected: (predicate expression)" + Environment.NewLine +
EqualityAssertsTests.cs (307)
30 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
31 "Expected: 42" + Environment.NewLine +
42 $"This is a long{Environment.NewLine}string with{Environment.NewLine}new lines",
43 $"This is a long{Environment.NewLine}string with embedded{Environment.NewLine}new lines"
49 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
50 "Expected: This is a long" + Environment.NewLine +
51 " string with" + Environment.NewLine +
52 " new lines" + Environment.NewLine +
53 "Actual: This is a long" + Environment.NewLine +
54 " string with embedded" + Environment.NewLine +
82 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
83 "Expected: 42" + Environment.NewLine +
110 "Assert.Equal() Failure: Exception thrown during comparison" + Environment.NewLine +
111 "Expected: 42" + Environment.NewLine +
133 "Assert.Equal() Failure: Exception thrown during comparison" + Environment.NewLine +
134 "Expected: [1, 2]" + Environment.NewLine +
171 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
172 "Expected: 42" + Environment.NewLine +
185 "Assert.Equal() Failure: Exception thrown during comparison" + Environment.NewLine +
186 "Expected: 42" + Environment.NewLine +
206 "Assert.Equal() Failure: Exception thrown during comparison" + Environment.NewLine +
207 "Expected: [1, 2]" + Environment.NewLine +
237 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
238 "Expected: SpyComparable { CompareCalled = True }" + Environment.NewLine +
267 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
268 "Expected: MultiComparable { Value = 1 }" + Environment.NewLine +
301 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
302 "Expected: MultiComparable { Value = 1 }" + Environment.NewLine +
332 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
333 "Expected: SpyComparable_Generic { CompareCalled = True }" + Environment.NewLine +
358 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
359 "Expected: ComparableSubClassA { Value = 1 }" + Environment.NewLine +
384 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
385 "Expected: ComparableBaseClass { Value = 1 }" + Environment.NewLine +
410 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
411 "Expected: ComparableSubClassA { Value = 1 }" + Environment.NewLine +
440 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
441 "Expected: ComparableThrower { Value = 1 }" + Environment.NewLine +
475 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
476 "Expected: ImplicitIComparableExpected { Value = 1 }" + Environment.NewLine +
505 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
506 "Expected: ExplicitIComparableActual { Value = 1 }" + Environment.NewLine +
531 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
532 "Expected: IComparableActualThrower { Value = 1 }" + Environment.NewLine +
560 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
561 "Expected: NonComparableObject { }" + Environment.NewLine +
592 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
593 "Expected: SpyEquatable { Equals__Called = True, Equals_Other = SpyEquatable { Equals__Called = False, Equals_Other = null } }" + Environment.NewLine +
618 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
619 "Expected: EquatableSubClassA { Value = 1 }" + Environment.NewLine +
644 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
645 "Expected: EquatableBaseClass { Value = 1 }" + Environment.NewLine +
670 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
671 "Expected: EquatableSubClassA { Value = 1 }" + Environment.NewLine +
700 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
701 "Expected: ImplicitIEquatableExpected { Value = 1 }" + Environment.NewLine +
730 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
731 "Expected: ExplicitIEquatableExpected { Value = 1 }" + Environment.NewLine +
767 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
768 "Expected: Tuple (StringWrapper { Value = \"a\" })" + Environment.NewLine +
802 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
803 "Expected: Tuple (null)" + Environment.NewLine +
826 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
827 "Expected: Tuple (StringWrapper { Value = \"a\" })" + Environment.NewLine +
863 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
864 " ↓ (pos 0)" + Environment.NewLine +
865 "Expected: string[] [\"foo\", \"bar\"]" + Environment.NewLine +
866 "Actual: ReadOnlyCollection<string> [\"bar\", \"foo\"]" + Environment.NewLine +
895 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
896 " ↓ (pos 0)" + Environment.NewLine +
897 "Expected: [[[1]]]" + Environment.NewLine +
898 "Actual: [[[2]]]" + Environment.NewLine +
926 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
927 " ↓ (pos 1)" + Environment.NewLine +
928 "Expected: string[] [\"foo\", \"bar\"]" + Environment.NewLine +
929 "Actual: object[] [\"foo\", \"baz\"]" + Environment.NewLine +
960 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
961 "Expected: [1, 2]" + Environment.NewLine +
990 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
991 "Expected: int[*] [42]" + Environment.NewLine +
1009 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
1010 " ↓ (pos 2)" + Environment.NewLine +
1011 "Expected: [1, 2, 3, 4, 5]" + Environment.NewLine +
1012 "Actual: [1, 2, 0, 4, 5]" + Environment.NewLine +
1032 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
1033 "Expected: [1, 2, 3, 4, 5]" + Environment.NewLine +
1046 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
1047 $"Expected: UnsafeEnumerable [{ArgumentFormatter.Ellipsis}]" + Environment.NewLine +
1091 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
1092 "Expected: [42, 2112]" + Environment.NewLine +
1144 "Assert.Equal() Failure: Dictionaries differ" + Environment.NewLine +
1145 "Expected: [[\"foo\"] = \"bar\"]" + Environment.NewLine +
1178 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
1179 "Expected: Dictionary<string, string> [[\"foo\"] = \"bar\"]" + Environment.NewLine +
1208 "Assert.Equal() Failure: Dictionaries differ" + Environment.NewLine +
1209 "Expected: [[\"two\"] = null]" + Environment.NewLine +
1237 "Assert.Equal() Failure: HashSets differ" + Environment.NewLine +
1238 "Expected: [1, 2, 3]" + Environment.NewLine +
1263 "Assert.Equal() Failure: HashSets differ" + Environment.NewLine +
1264 "Expected: [1, 2, 3]" + Environment.NewLine +
1280 "Assert.Equal() Failure: HashSets differ" + Environment.NewLine +
1281 "Expected: [1, 2, 3]" + Environment.NewLine +
1297 "Assert.Equal() Failure: HashSets differ" + Environment.NewLine +
1298 "Expected: [1, 2]" + Environment.NewLine +
1327 "Assert.Equal() Failure: HashSets differ" + Environment.NewLine +
1328 "Expected: HashSet<int> [42]" + Environment.NewLine +
1383 "Assert.Equal() Failure: Sets differ" + Environment.NewLine +
1384 "Expected: [\"bar\", \"foo\"]" + Environment.NewLine +
1422 "Assert.Equal() Failure: Sets differ" + Environment.NewLine +
1423 "Expected: [\"bar\", \"foo\"]" + Environment.NewLine +
1448 "Assert.Equal() Failure: Sets differ" + Environment.NewLine +
1449 "Expected: [\"bar\"]" + Environment.NewLine +
1487 "Assert.Equal() Failure: Sets differ" + Environment.NewLine +
1488 "Expected: NonGenericSet [\"bar\"]" + Environment.NewLine +
1526 "Assert.Equal() Failure: Sets differ" + Environment.NewLine +
1527 "Expected: [\"foo\", \"bar\"]" + Environment.NewLine +
1585 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
1586 "Expected: [[\"Key1\", \"Key2\"]] = 42" + Environment.NewLine +
1613 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
1614 "Expected: [\"Key1\"] = [\"Value1a\", \"Value1b\"]" + Environment.NewLine +
1643 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
1644 "Expected: [EquatableObject { Char = 'a' }] = 42" + Environment.NewLine +
1673 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
1674 "Expected: [\"Key1\"] = EquatableObject { Char = 'a' }" + Environment.NewLine +
1710 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
1711 $"Expected: [{ArgumentFormatter.Ellipsis}, 2, 3, 4, 5]" + Environment.NewLine +
1712 $"Actual: [{ArgumentFormatter.Ellipsis}, 2, 3, 4, 5, 6]" + Environment.NewLine +
1747 $"Assert.Equal() Failure: Values differ" + Environment.NewLine +
1748 $"Expected: {ArgumentFormatter.Format(expected)}" + Environment.NewLine +
1785 $"Assert.Equal() Failure: Values differ" + Environment.NewLine +
1786 $"Expected: {ArgumentFormatter.Format(date1)}" + Environment.NewLine +
1796 $"Assert.Equal() Failure: Values differ" + Environment.NewLine +
1797 $"Expected: {ArgumentFormatter.Format(date2)}" + Environment.NewLine +
1833 $"Assert.Equal() Failure: Values differ" + Environment.NewLine +
1834 $"Expected: {ArgumentFormatter.Format(expected)}" + Environment.NewLine +
1866 $"Assert.Equal() Failure: Values differ" + Environment.NewLine +
1867 $"Expected: {ArgumentFormatter.Format(expected)}" + Environment.NewLine +
1904 $"Assert.Equal() Failure: Values differ" + Environment.NewLine +
1905 $"Expected: {ArgumentFormatter.Format(date1)}" + Environment.NewLine +
1915 $"Assert.Equal() Failure: Values differ" + Environment.NewLine +
1916 $"Expected: {ArgumentFormatter.Format(date2)}" + Environment.NewLine +
1953 $"Assert.Equal() Failure: Values differ" + Environment.NewLine +
1954 $"Expected: {ArgumentFormatter.Format(date1)}" + Environment.NewLine +
1964 $"Assert.Equal() Failure: Values differ" + Environment.NewLine +
1965 $"Expected: {ArgumentFormatter.Format(date2)}" + Environment.NewLine +
1992 "Assert.Equal() Failure: Values differ" + Environment.NewLine +
1993 $"Expected: {0.111M} (rounded from {0.11111M})" + Environment.NewLine +
2021 "Assert.Equal() Failure: Values are not within 3 decimal places" + Environment.NewLine +
2022 $"Expected: {0.111:G17} (rounded from {0.11111:G17})" + Environment.NewLine +
2048 $"Assert.Equal() Failure: Values are not within 4 decimal places" + Environment.NewLine +
2049 $"Expected: {0.1111:G17} (rounded from {0.11113:G17})" + Environment.NewLine +
2085 $"Assert.Equal() Failure: Values are not within tolerance {0.00001:G17}" + Environment.NewLine +
2086 $"Expected: {0.11113:G17}" + Environment.NewLine +
2109 $"Assert.Equal() Failure: Values are not within tolerance {20000000.0:G17}" + Environment.NewLine +
2110 $"Expected: {20210102.2208:G17}" + Environment.NewLine +
2133 $"Assert.Equal() Failure: Values are not within tolerance {1.0:G17}" + Environment.NewLine +
2134 $"Expected: {double.PositiveInfinity}" + Environment.NewLine +
2151 $"Assert.Equal() Failure: Values are not within tolerance {1.0:G17}" + Environment.NewLine +
2152 $"Expected: {0.0:G17}" + Environment.NewLine +
2181 "Assert.Equal() Failure: Values are not within 3 decimal places" + Environment.NewLine +
2182 $"Expected: {0.111:G9} (rounded from {0.11111f:G9})" + Environment.NewLine +
2208 "Assert.Equal() Failure: Values are not within 4 decimal places" + Environment.NewLine +
2209 $"Expected: {0.1111:G9} (rounded from {0.111133f:G9})" + Environment.NewLine +
2245 $"Assert.Equal() Failure: Values are not within tolerance {0.00001f:G9}" + Environment.NewLine +
2246 $"Expected: {0.11113f:G9}" + Environment.NewLine +
2269 $"Assert.Equal() Failure: Values are not within tolerance {20000000.0f:G9}" + Environment.NewLine +
2270 $"Expected: {20210102.2208f:G9}" + Environment.NewLine +
2293 $"Assert.Equal() Failure: Values are not within tolerance {1.0f:G9}" + Environment.NewLine +
2294 $"Expected: {float.PositiveInfinity}" + Environment.NewLine +
2311 $"Assert.Equal() Failure: Values are not within tolerance {1.0f:G9}" + Environment.NewLine +
2312 $"Expected: {0.0f:G9}" + Environment.NewLine +
2331 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
2332 "Expected: Not 42" + Environment.NewLine +
2360 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
2361 "Expected: Not 42" + Environment.NewLine +
2394 "Assert.NotEqual() Failure: Exception thrown during comparison" + Environment.NewLine +
2395 "Expected: Not 42" + Environment.NewLine +
2417 "Assert.NotEqual() Failure: Exception thrown during comparison" + Environment.NewLine +
2418 "Expected: Not [1, 2]" + Environment.NewLine +
2440 "Assert.NotEqual() Failure: Exception thrown during comparison" + Environment.NewLine +
2441 "Expected: Not \"42\"" + Environment.NewLine +
2472 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
2473 "Expected: Not 42" + Environment.NewLine +
2492 "Assert.NotEqual() Failure: Exception thrown during comparison" + Environment.NewLine +
2493 "Expected: Not 42" + Environment.NewLine +
2513 "Assert.NotEqual() Failure: Exception thrown during comparison" + Environment.NewLine +
2514 "Expected: Not [1, 2]" + Environment.NewLine +
2528 "Assert.NotEqual() Failure: Exception thrown during comparison" + Environment.NewLine +
2529 "Expected: Not \"42\"" + Environment.NewLine +
2549 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
2550 "Expected: Not SpyComparable { CompareCalled = True }" + Environment.NewLine +
2578 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
2579 "Expected: Not MultiComparable { Value = 1 }" + Environment.NewLine +
2613 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
2614 "Expected: Not MultiComparable { Value = 1 }" + Environment.NewLine +
2644 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
2645 "Expected: Not SpyComparable_Generic { CompareCalled = True }" + Environment.NewLine +
2671 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
2672 "Expected: Not ComparableSubClassA { Value = 1 }" + Environment.NewLine +
2697 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
2698 "Expected: Not ComparableBaseClass { Value = 1 }" + Environment.NewLine +
2723 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
2724 "Expected: Not ComparableSubClassA { Value = 1 }" + Environment.NewLine +
2751 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
2752 "Expected: Not ComparableThrower { Value = 1 }" + Environment.NewLine +
2788 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
2789 "Expected: Not ImplicitIComparableExpected { Value = 1 }" + Environment.NewLine +
2818 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
2819 "Expected: Not ExplicitIComparableActual { Value = 1 }" + Environment.NewLine +
2844 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
2845 "Expected: Not IComparableActualThrower { Value = 1 }" + Environment.NewLine +
2873 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
2874 "Expected: Not NonComparableObject { }" + Environment.NewLine +
2902 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
2903 "Expected: Not SpyEquatable { Equals__Called = True, Equals_Other = SpyEquatable { Equals__Called = False, Equals_Other = null } }" + Environment.NewLine +
2931 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
2932 "Expected: Not EquatableSubClassA { Value = 1 }" + Environment.NewLine +
2957 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
2958 "Expected: Not EquatableBaseClass { Value = 1 }" + Environment.NewLine +
2983 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
2984 "Expected: Not EquatableSubClassA { Value = 1 }" + Environment.NewLine +
3013 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
3014 "Expected: Not ImplicitIEquatableExpected { Value = 1 }" + Environment.NewLine +
3043 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
3044 "Expected: Not ExplicitIEquatableExpected { Value = 1 }" + Environment.NewLine +
3078 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
3079 "Expected: Not Tuple (StringWrapper { Value = \"a\" })" + Environment.NewLine +
3113 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
3114 "Expected: Not Tuple (null)" + Environment.NewLine +
3162 "Assert.NotEqual() Failure: Collections are equal" + Environment.NewLine +
3163 "Expected: Not string[] [\"foo\", \"bar\"]" + Environment.NewLine +
3193 "Assert.NotEqual() Failure: Collections are equal" + Environment.NewLine +
3194 "Expected: Not [[[1]]]" + Environment.NewLine +
3221 "Assert.NotEqual() Failure: Collections are equal" + Environment.NewLine +
3222 "Expected: Not string[] [\"foo\", \"bar\"]" + Environment.NewLine +
3254 "Assert.NotEqual() Failure: Collections are equal" + Environment.NewLine +
3255 "Expected: Not [1, 2]" + Environment.NewLine +
3283 "Assert.NotEqual() Failure: Collections are equal" + Environment.NewLine +
3284 "Expected: Not [42]" + Environment.NewLine +
3311 "Assert.NotEqual() Failure: Collections are equal" + Environment.NewLine +
3312 "Expected: Not [42, 2112]" + Environment.NewLine +
3362 "Assert.NotEqual() Failure: Dictionaries are equal" + Environment.NewLine +
3363 "Expected: Not [[\"foo\"] = \"bar\"]" + Environment.NewLine +
3397 "Assert.NotEqual() Failure: Collections are equal" + Environment.NewLine +
3398 "Expected: Not Dictionary<string, string> [[\"foo\"] = \"bar\"]" + Environment.NewLine +
3428 "Assert.NotEqual() Failure: Dictionaries are equal" + Environment.NewLine +
3429 "Expected: Not [[\"two\"] = null]" + Environment.NewLine +
3457 "Assert.NotEqual() Failure: HashSets are equal" + Environment.NewLine +
3458 "Expected: Not [1, 2, 3]" + Environment.NewLine +
3483 "Assert.NotEqual() Failure: HashSets are equal" + Environment.NewLine +
3484 "Expected: Not [1, 2, 3]" + Environment.NewLine +
3511 "Assert.NotEqual() Failure: Sets are equal" + Environment.NewLine +
3512 "Expected: Not HashSet<string> [\"bar\", \"foo\"]" + Environment.NewLine +
3569 "Assert.NotEqual() Failure: Sets are equal" + Environment.NewLine +
3570 "Expected: Not [\"bar\", \"foo\"]" + Environment.NewLine +
3608 "Assert.NotEqual() Failure: Sets are equal" + Environment.NewLine +
3609 "Expected: Not [\"bar\", \"foo\"]" + Environment.NewLine +
3660 "Assert.NotEqual() Failure: Sets are equal" + Environment.NewLine +
3661 "Expected: Not NonGenericSet [\"bar\"]" + Environment.NewLine +
3699 "Assert.NotEqual() Failure: Sets are equal" + Environment.NewLine +
3700 "Expected: Not [\"foo\", \"bar\"]" + Environment.NewLine +
3757 @"Assert.NotEqual() Failure: Strings are equal" + Environment.NewLine +
3758 @"Expected: Not ""actual""" + Environment.NewLine +
3782 "Assert.NotEqual() Failure: Strings are equal" + Environment.NewLine +
3783 @"Expected: Not ""This is a long string so that we can test truncati""···" + Environment.NewLine +
3803 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
3804 "Expected: Not [[\"Key1\", \"Key2\"]] = 42" + Environment.NewLine +
3831 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
3832 "Expected: Not [\"Key1\"] = [\"Value1a\", \"Value1b\"]" + Environment.NewLine +
3862 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
3863 "Expected: Not [EquatableObject { Char = 'a' }] = 42" + Environment.NewLine +
3892 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
3893 "Expected: Not [\"Key1\"] = EquatableObject { Char = 'a' }" + Environment.NewLine +
3929 "Assert.NotEqual() Failure: Collections are equal" + Environment.NewLine +
3930 "Expected: Not [1, 2, 3, 4, 5]" + Environment.NewLine +
3960 "Assert.NotEqual() Failure: Values are equal" + Environment.NewLine +
3961 $"Expected: Not {0.11M} (rounded from {0.11111})" + Environment.NewLine +
3989 "Assert.NotEqual() Failure: Values are within 2 decimal places" + Environment.NewLine +
3990 $"Expected: Not {0.11:G17} (rounded from {0.11111:G17})" + Environment.NewLine +
4016 $"Assert.NotEqual() Failure: Values are within 2 decimal places" + Environment.NewLine +
4017 $"Expected: Not {10.57:G17} (rounded from {10.565:G17})" + Environment.NewLine +
4053 $"Assert.NotEqual() Failure: Values are within tolerance {0.01:G17}" + Environment.NewLine +
4054 $"Expected: Not {10.566:G17}" + Environment.NewLine +
4077 $"Assert.NotEqual() Failure: Values are within tolerance {1000.0:G17}" + Environment.NewLine +
4078 $"Expected: Not {double.NaN}" + Environment.NewLine +
4101 $"Assert.NotEqual() Failure: Values are within tolerance {double.PositiveInfinity}" + Environment.NewLine +
4102 $"Expected: Not {double.MinValue:G17}" + Environment.NewLine +
4137 "Assert.NotEqual() Failure: Values are within 2 decimal places" + Environment.NewLine +
4138 $"Expected: Not {0.11:G9} (rounded from {0.11111f:G9})" + Environment.NewLine +
4164 "Assert.NotEqual() Failure: Values are within 2 decimal places" + Environment.NewLine +
4165 $"Expected: Not {10.57:G9} (rounded from {10.5655f:G9})" + Environment.NewLine +
4201 $"Assert.NotEqual() Failure: Values are within tolerance {0.01f:G9}" + Environment.NewLine +
4202 $"Expected: Not {10.569f:G9}" + Environment.NewLine +
4225 $"Assert.NotEqual() Failure: Values are within tolerance {1000.0f:G9}" + Environment.NewLine +
4226 "Expected: Not NaN" + Environment.NewLine +
4249 $"Assert.NotEqual() Failure: Values are within tolerance {float.PositiveInfinity}" + Environment.NewLine +
4250 $"Expected: Not {float.MinValue:G9}" + Environment.NewLine +
4279 "Assert.NotStrictEqual() Failure: Values are equal" + Environment.NewLine +
4280 @"Expected: Not ""actual""" + Environment.NewLine +
4305 "Assert.NotStrictEqual() Failure: Values are equal" + Environment.NewLine +
4306 "Expected: Not DerivedClass { }" + Environment.NewLine +
4332 "Assert.StrictEqual() Failure: Values differ" + Environment.NewLine +
4333 @"Expected: ""bob""" + Environment.NewLine +
4346 "Assert.StrictEqual() Failure: Values differ" + Environment.NewLine +
4347 $"Expected: [{ArgumentFormatter.Ellipsis}]" + Environment.NewLine +
EquivalenceAssertsTests.cs (130)
33 "Assert.Equivalent() Failure" + Environment.NewLine +
34 $"Expected: {expected ?? "null"}" + Environment.NewLine +
65 "Assert.Equivalent() Failure" + Environment.NewLine +
66 "Expected: 12" + Environment.NewLine +
93 "Assert.Equivalent() Failure" + Environment.NewLine +
94 "Expected: 1" + Environment.NewLine +
108 "Assert.Equivalent() Failure" + Environment.NewLine +
109 "Expected: 1" + Environment.NewLine +
137 "Assert.Equivalent() Failure" + Environment.NewLine +
138 "Expected: 42" + Environment.NewLine +
166 "Assert.Equivalent() Failure: Mismatched value on member 'Shallow.Value1'" + Environment.NewLine +
167 "Expected: 42" + Environment.NewLine +
189 "Assert.Equivalent() Failure" + Environment.NewLine +
190 "Expected: \"Hello, world\"" + Environment.NewLine +
203 "Assert.Equivalent() Failure" + Environment.NewLine +
204 "Expected: null" + Environment.NewLine +
226 "Assert.Equivalent() Failure: Mismatched value on member 'x'" + Environment.NewLine +
227 "Expected: 42" + Environment.NewLine +
249 "Assert.Equivalent() Failure: Mismatched value on member 'x.y'" + Environment.NewLine +
250 "Expected: 42" + Environment.NewLine +
281 "Assert.Equivalent() Failure: Mismatched value on member 'x'" + Environment.NewLine +
282 "Expected: 42" + Environment.NewLine +
304 "Assert.Equivalent() Failure: Mismatched value on member 'x.y'" + Environment.NewLine +
305 "Expected: 2600" + Environment.NewLine +
353 "Assert.Equivalent() Failure: Mismatched value on member 'Value1'" + Environment.NewLine +
354 "Expected: 42" + Environment.NewLine +
382 "Assert.Equivalent() Failure: Mismatched value on member 'Shallow.Value1'" + Environment.NewLine +
383 "Expected: 42" + Environment.NewLine +
411 "Assert.Equivalent() Failure: Mismatched value on member 'Value1'" + Environment.NewLine +
412 "Expected: 42" + Environment.NewLine +
440 "Assert.Equivalent() Failure: Mismatched value on member 'Shallow.Value1'" + Environment.NewLine +
441 "Expected: 42" + Environment.NewLine +
469 "Assert.Equivalent() Failure: Mismatched value on member 'Shallow.Value2'" + Environment.NewLine +
470 "Expected: \"Hello, world\"" + Environment.NewLine +
515 "Assert.Equivalent() Failure: Mismatched member list" + Environment.NewLine +
516 "Expected: [\"x\", \"y\"]" + Environment.NewLine +
536 "Assert.Equivalent() Failure: Mismatched member list" + Environment.NewLine +
537 "Expected: [\"x.y\"]" + Environment.NewLine +
560 "Assert.Equivalent() Failure: Mismatched member list" + Environment.NewLine +
561 "Expected: [\"x\"]" + Environment.NewLine +
592 "Assert.Equivalent() Failure: Collection value not found" + Environment.NewLine +
593 "Expected: 6" + Environment.NewLine +
609 "Assert.Equivalent() Failure: Collection value not found in member 'x'" + Environment.NewLine +
610 "Expected: 6" + Environment.NewLine +
641 "Assert.Equivalent() Failure: Collection value not found" + Environment.NewLine +
642 "Expected: 6" + Environment.NewLine +
655 "Assert.Equivalent() Failure: Extra values found" + Environment.NewLine +
656 "Expected: [1, 9, 4]" + Environment.NewLine +
672 "Assert.Equivalent() Failure: Collection value not found in member 'x'" + Environment.NewLine +
673 "Expected: 6" + Environment.NewLine +
689 "Assert.Equivalent() Failure: Extra values found in member 'x'" + Environment.NewLine +
690 "Expected: [1, 9, 4]" + Environment.NewLine +
723 "Assert.Equivalent() Failure: Collection value not found" + Environment.NewLine +
724 "Expected: 6" + Environment.NewLine +
740 "Assert.Equivalent() Failure: Collection value not found in member 'x'" + Environment.NewLine +
741 "Expected: 6" + Environment.NewLine +
772 "Assert.Equivalent() Failure: Collection value not found" + Environment.NewLine +
773 "Expected: 6" + Environment.NewLine +
786 "Assert.Equivalent() Failure: Extra values found" + Environment.NewLine +
787 "Expected: [1, 9, 4]" + Environment.NewLine +
803 "Assert.Equivalent() Failure: Collection value not found in member 'x'" + Environment.NewLine +
804 "Expected: 6" + Environment.NewLine +
820 "Assert.Equivalent() Failure: Extra values found in member 'x'" + Environment.NewLine +
821 "Expected: [1, 9, 4]" + Environment.NewLine +
860 "Assert.Equivalent() Failure: Collection value not found" + Environment.NewLine +
861 "Expected: { Foo = \"Biff\" }" + Environment.NewLine +
877 "Assert.Equivalent() Failure: Collection value not found in member 'x'" + Environment.NewLine +
878 "Expected: { Foo = \"Biff\" }" + Environment.NewLine +
915 "Assert.Equivalent() Failure: Collection value not found" + Environment.NewLine +
916 "Expected: { Foo = \"Biff\" }" + Environment.NewLine +
932 "Assert.Equivalent() Failure: Extra values found" + Environment.NewLine +
933 "Expected: [{ Foo = \"Bar\" }]" + Environment.NewLine +
949 "Assert.Equivalent() Failure: Collection value not found in member 'x'" + Environment.NewLine +
950 "Expected: { Foo = \"Biff\" }" + Environment.NewLine +
966 "Assert.Equivalent() Failure: Extra values found in member 'x'" + Environment.NewLine +
967 "Expected: [{ Foo = \"Bar\" }]" + Environment.NewLine +
1004 "Assert.Equivalent() Failure: Collection value not found" + Environment.NewLine +
1005 "Expected: { Foo = \"Biff\" }" + Environment.NewLine +
1021 "Assert.Equivalent() Failure: Collection value not found in member 'x'" + Environment.NewLine +
1022 "Expected: { Foo = \"Biff\" }" + Environment.NewLine +
1059 "Assert.Equivalent() Failure: Collection value not found" + Environment.NewLine +
1060 "Expected: { Foo = \"Biff\" }" + Environment.NewLine +
1076 "Assert.Equivalent() Failure: Extra values found" + Environment.NewLine +
1077 "Expected: [{ Foo = \"Bar\" }]" + Environment.NewLine +
1093 "Assert.Equivalent() Failure: Collection value not found in member 'x'" + Environment.NewLine +
1094 "Expected: { Foo = \"Biff\" }" + Environment.NewLine +
1110 "Assert.Equivalent() Failure: Extra values found in member 'x'" + Environment.NewLine +
1111 "Expected: [{ Foo = \"Bar\" }]" + Environment.NewLine +
1201 "Assert.Equivalent() Failure: Collection value not found" + Environment.NewLine +
1202 "Expected: [\"Foo\"] = 16" + Environment.NewLine +
1218 "Assert.Equivalent() Failure: Collection value not found" + Environment.NewLine +
1219 "Expected: [\"Foo\"] = [16]" + Environment.NewLine +
1235 "Assert.Equivalent() Failure: Collection value not found" + Environment.NewLine +
1236 "Expected: [\"Foo\"] = [16]" + Environment.NewLine +
1252 "Assert.Equivalent() Failure: Collection value not found in member 'x'" + Environment.NewLine +
1253 "Expected: [\"Foo\"] = 16" + Environment.NewLine +
1290 "Assert.Equivalent() Failure: Collection value not found" + Environment.NewLine +
1291 "Expected: [\"Foo\"] = 16" + Environment.NewLine +
1307 "Assert.Equivalent() Failure: Extra values found" + Environment.NewLine +
1308 "Expected: [[\"Bar\"] = 2112, [\"Foo\"] = 42]" + Environment.NewLine +
1324 "Assert.Equivalent() Failure: Collection value not found in member 'x'" + Environment.NewLine +
1325 "Expected: [\"Foo\"] = 16" + Environment.NewLine +
1341 "Assert.Equivalent() Failure: Extra values found in member 'x'" + Environment.NewLine +
1342 "Expected: [[\"Bar\"] = 2112, [\"Foo\"] = 42]" + Environment.NewLine +
1370 "Assert.Equivalent() Failure: Mismatched value on member 'Key'" + Environment.NewLine +
1371 "Expected: 42" + Environment.NewLine +
1387 "Assert.Equivalent() Failure: Collection value not found in member 'Value'" + Environment.NewLine +
1388 "Expected: 6" + Environment.NewLine +
1416 "Assert.Equivalent() Failure: Mismatched value on member 'Key'" + Environment.NewLine +
1417 "Expected: 42" + Environment.NewLine +
1433 "Assert.Equivalent() Failure: Collection value not found in member 'Value'" + Environment.NewLine +
1434 "Expected: 6" + Environment.NewLine +
1464 "Assert.Equivalent() Failure" + Environment.NewLine +
1465 "Expected: 2022-12-01T01:03:01.0000000" + Environment.NewLine +
1481 "Assert.Equivalent() Failure" + Environment.NewLine +
1482 "Expected: 2022-12-01T01:03:01.0000000" + Environment.NewLine +
1519 "Assert.Equivalent() Failure" + Environment.NewLine +
1520 "Expected: 2022-12-01T01:03:01.0000000+00:00" + Environment.NewLine +
1555 Assert.StartsWith("Assert.Equivalent() Failure: Mismatched value on member 'FullName'" + Environment.NewLine, ex.Message);
1577 Assert.StartsWith("Assert.Equivalent() Failure: Mismatched value on member 'FullName'" + Environment.NewLine, ex.Message);
1591 "Assert.Equivalent() Failure: Types did not match" + Environment.NewLine +
1592 "Expected type: System.IO.FileInfo" + Environment.NewLine +
1609 "Assert.Equivalent() Failure: Types did not match in member 'Info'" + Environment.NewLine +
1610 "Expected type: System.IO.FileInfo" + Environment.NewLine +
1701 "Assert.Equivalent() Failure: Mismatched value on member 'Value'" + Environment.NewLine +
1702 "Expected: \"Hello\"" + Environment.NewLine +
1730 "Assert.Equivalent() Failure: Mismatched value on member 'Item1'" + Environment.NewLine +
1731 "Expected: 42" + Environment.NewLine +
1759 "Assert.Equivalent() Failure: Mismatched value on member 'Item1'" + Environment.NewLine +
1760 "Expected: 42" + Environment.NewLine +
MemoryAssertsTests.cs (80)
34 "Assert.Contains() Failure: Sub-string not found" + Environment.NewLine +
35 "String: \"Hello, world!\"" + Environment.NewLine +
48 "Assert.Contains() Failure: Sub-string not found" + Environment.NewLine +
49 "String: \"Hello, world!\"" + Environment.NewLine +
74 "Assert.Contains() Failure: Sub-string not found" + Environment.NewLine +
75 "String: \"\"" + Environment.NewLine +
88 "Assert.Contains() Failure: Sub-string not found" + Environment.NewLine +
89 "String: \"\"" + Environment.NewLine +
107 "Assert.Contains() Failure: Sub-string not found" + Environment.NewLine +
108 "String: \"This is a relatively long string so that \"" + ArgumentFormatter.Ellipsis + Environment.NewLine +
148 "Assert.Contains() Failure: Sub-memory not found" + Environment.NewLine +
149 "Memory: [1, 2, 3, 4, 5, " + ArgumentFormatter.Ellipsis + "]" + Environment.NewLine +
162 "Assert.Contains() Failure: Sub-memory not found" + Environment.NewLine +
163 "Memory: [1, 2, 3, 4, 5, " + ArgumentFormatter.Ellipsis + "]" + Environment.NewLine +
176 "Assert.Contains() Failure: Sub-memory not found" + Environment.NewLine +
177 "Memory: []" + Environment.NewLine +
227 "Assert.DoesNotContain() Failure: Sub-string found" + Environment.NewLine +
228 " ↓ (pos 7)" + Environment.NewLine +
229 "String: \"Hello, world!\"" + Environment.NewLine +
242 "Assert.DoesNotContain() Failure: Sub-string found" + Environment.NewLine +
243 " ↓ (pos 7)" + Environment.NewLine +
244 "String: \"Hello, world!\"" + Environment.NewLine +
257 "Assert.DoesNotContain() Failure: Sub-string found" + Environment.NewLine +
258 " ↓ (pos 7)" + Environment.NewLine +
259 "String: \"Hello, world!\"" + Environment.NewLine +
272 "Assert.DoesNotContain() Failure: Sub-string found" + Environment.NewLine +
273 " ↓ (pos 7)" + Environment.NewLine +
274 "String: \"Hello, world!\"" + Environment.NewLine +
299 "Assert.DoesNotContain() Failure: Sub-string found" + Environment.NewLine +
300 " ↓ (pos 7)" + Environment.NewLine +
301 "String: \"Hello, world from a very long string that\"" + ArgumentFormatter.Ellipsis + Environment.NewLine +
314 "Assert.DoesNotContain() Failure: Sub-string found" + Environment.NewLine +
315 " ↓ (pos 50)" + Environment.NewLine +
316 "String: " + ArgumentFormatter.Ellipsis + "\"ng that has 'Hello, world' placed in the \"" + ArgumentFormatter.Ellipsis + Environment.NewLine +
329 "Assert.DoesNotContain() Failure: Sub-string found" + Environment.NewLine +
330 " ↓ (pos 89)" + Environment.NewLine +
331 "String: " + ArgumentFormatter.Ellipsis + "\"ont truncated, just to say 'Hello, world'\"" + Environment.NewLine +
371 "Assert.DoesNotContain() Failure: Sub-memory found" + Environment.NewLine +
372 " ↓ (pos 2)" + Environment.NewLine +
373 "Memory: [1, 2, 3, 4, 5, " + ArgumentFormatter.Ellipsis + "]" + Environment.NewLine +
386 "Assert.DoesNotContain() Failure: Sub-memory found" + Environment.NewLine +
387 " ↓ (pos 2)" + Environment.NewLine +
388 "Memory: [1, 2, 3, 4, 5, " + ArgumentFormatter.Ellipsis + "]" + Environment.NewLine +
409 "Assert.DoesNotContain() Failure: Sub-memory found" + Environment.NewLine +
410 (data.Any() ? " ↓ (pos 0)" + Environment.NewLine : "") +
411 "Memory: " + CollectionTracker<int>.FormatStart(data) + Environment.NewLine +
439 "Assert.EndsWith() Failure: String end does not match" + Environment.NewLine +
440 "String: \"Hello, world!\"" + Environment.NewLine +
461 "Assert.EndsWith() Failure: String end does not match" + Environment.NewLine +
462 "String: \"world!\"" + Environment.NewLine +
492 "Assert.EndsWith() Failure: String end does not match" + Environment.NewLine +
493 "String: \"\"" + Environment.NewLine +
515 "Assert.EndsWith() Failure: String end does not match" + Environment.NewLine +
516 "String: " + ArgumentFormatter.Ellipsis + "\"at we expected to find this ending inside\"" + Environment.NewLine +
628 message += Environment.NewLine + " " + expectedPointer;
631 Environment.NewLine + "Expected: " + ArgumentFormatter.Format(expected) +
632 Environment.NewLine + "Actual: " + ArgumentFormatter.Format(actual);
635 message += Environment.NewLine + " " + actualPointer;
663 "Assert.Equal() Failure: Strings differ" + Environment.NewLine +
664 " ↓ (pos 21)" + Environment.NewLine +
665 "Expected: " + ArgumentFormatter.Ellipsis + "\"hy hello there world, you're a long strin\"" + ArgumentFormatter.Ellipsis + Environment.NewLine +
666 "Actual: " + ArgumentFormatter.Ellipsis + "\"hy hello there world! You're a long strin\"" + ArgumentFormatter.Ellipsis + Environment.NewLine +
740 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
741 " ↓ (pos 1)" + Environment.NewLine +
742 "Expected: [1, 0, 2, 3]" + Environment.NewLine +
743 "Actual: [1, 2, 3]" + Environment.NewLine +
764 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
765 "Expected: [1, 2, 3]" + Environment.NewLine +
766 "Actual: [1, 2, 3, 4]" + Environment.NewLine +
820 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
821 "Expected: [\"yes\", \"no\", \"maybe\"]" + Environment.NewLine +
822 "Actual: [\"yes\", \"no\", \"maybe\", \"so\"]" + Environment.NewLine +
856 "Assert.StartsWith() Failure: String start does not match" + Environment.NewLine +
857 "String: \"Hello, world!\"" + Environment.NewLine +
878 "Assert.StartsWith() Failure: String start does not match" + Environment.NewLine +
879 "String: \"world!\"" + Environment.NewLine +
909 "Assert.StartsWith() Failure: String start does not match" + Environment.NewLine +
910 "String: \"\"" + Environment.NewLine +
932 "Assert.StartsWith() Failure: String start does not match" + Environment.NewLine +
933 "String: \"This is the long string that we expected \"" + ArgumentFormatter.Ellipsis + Environment.NewLine +
SetAssertsTests.cs (24)
42 "Assert.Contains() Failure: Item not found in set" + Environment.NewLine +
43 "Set: [\"eleventeen\"]" + Environment.NewLine +
92 "Assert.DoesNotContain() Failure: Item found in set" + Environment.NewLine +
93 "Set: [\"forty-two\"]" + Environment.NewLine +
130 "Assert.ProperSubset() Failure: Value is not a proper subset" + Environment.NewLine +
131 "Expected: [1, 2, 3]" + Environment.NewLine +
156 "Assert.ProperSubset() Failure: Value is not a proper subset" + Environment.NewLine +
157 "Expected: [1, 2, 3]" + Environment.NewLine +
170 "Assert.ProperSubset() Failure: Value is not a proper subset" + Environment.NewLine +
171 "Expected: []" + Environment.NewLine +
196 "Assert.ProperSuperset() Failure: Value is not a proper superset" + Environment.NewLine +
197 "Expected: [1, 2, 3]" + Environment.NewLine +
222 "Assert.ProperSuperset() Failure: Value is not a proper superset" + Environment.NewLine +
223 "Expected: [1, 2, 3]" + Environment.NewLine +
236 "Assert.ProperSuperset() Failure: Value is not a proper superset" + Environment.NewLine +
237 "Expected: []" + Environment.NewLine +
280 "Assert.Subset() Failure: Value is not a subset" + Environment.NewLine +
281 "Expected: [1, 2, 3]" + Environment.NewLine +
294 "Assert.Subset() Failure: Value is not a subset" + Environment.NewLine +
295 "Expected: []" + Environment.NewLine +
337 "Assert.Superset() Failure: Value is not a superset" + Environment.NewLine +
338 "Expected: [1, 2, 3]" + Environment.NewLine +
351 "Assert.Superset() Failure: Value is not a superset" + Environment.NewLine +
352 "Expected: []" + Environment.NewLine +
SpanAssertsTests.cs (80)
34 "Assert.Contains() Failure: Sub-string not found" + Environment.NewLine +
35 "String: \"Hello, world!\"" + Environment.NewLine +
48 "Assert.Contains() Failure: Sub-string not found" + Environment.NewLine +
49 "String: \"Hello, world!\"" + Environment.NewLine +
74 "Assert.Contains() Failure: Sub-string not found" + Environment.NewLine +
75 "String: \"\"" + Environment.NewLine +
88 "Assert.Contains() Failure: Sub-string not found" + Environment.NewLine +
89 "String: \"\"" + Environment.NewLine +
107 "Assert.Contains() Failure: Sub-string not found" + Environment.NewLine +
108 $"String: \"This is a relatively long string so that \"{ArgumentFormatter.Ellipsis}" + Environment.NewLine +
148 "Assert.Contains() Failure: Sub-span not found" + Environment.NewLine +
149 $"Span: [1, 2, 3, 4, 5, {ArgumentFormatter.Ellipsis}]" + Environment.NewLine +
162 "Assert.Contains() Failure: Sub-span not found" + Environment.NewLine +
163 $"Span: [1, 2, 3, 4, 5, {ArgumentFormatter.Ellipsis}]" + Environment.NewLine +
176 "Assert.Contains() Failure: Sub-span not found" + Environment.NewLine +
177 "Span: []" + Environment.NewLine +
227 "Assert.DoesNotContain() Failure: Sub-string found" + Environment.NewLine +
228 " ↓ (pos 7)" + Environment.NewLine +
229 "String: \"Hello, world!\"" + Environment.NewLine +
242 "Assert.DoesNotContain() Failure: Sub-string found" + Environment.NewLine +
243 " ↓ (pos 7)" + Environment.NewLine +
244 "String: \"Hello, world!\"" + Environment.NewLine +
257 "Assert.DoesNotContain() Failure: Sub-string found" + Environment.NewLine +
258 " ↓ (pos 7)" + Environment.NewLine +
259 "String: \"Hello, world!\"" + Environment.NewLine +
272 "Assert.DoesNotContain() Failure: Sub-string found" + Environment.NewLine +
273 " ↓ (pos 7)" + Environment.NewLine +
274 "String: \"Hello, world!\"" + Environment.NewLine +
299 "Assert.DoesNotContain() Failure: Sub-string found" + Environment.NewLine +
300 " ↓ (pos 7)" + Environment.NewLine +
301 $"String: \"Hello, world from a very long string that\"{ArgumentFormatter.Ellipsis}" + Environment.NewLine +
314 "Assert.DoesNotContain() Failure: Sub-string found" + Environment.NewLine +
315 " ↓ (pos 50)" + Environment.NewLine +
316 $"String: {ArgumentFormatter.Ellipsis}\"ng that has 'Hello, world' placed in the \"{ArgumentFormatter.Ellipsis}" + Environment.NewLine +
329 "Assert.DoesNotContain() Failure: Sub-string found" + Environment.NewLine +
330 " ↓ (pos 89)" + Environment.NewLine +
331 $"String: {ArgumentFormatter.Ellipsis}\"ont truncated, just to say 'Hello, world'\"" + Environment.NewLine +
371 "Assert.DoesNotContain() Failure: Sub-span found" + Environment.NewLine +
372 " ↓ (pos 2)" + Environment.NewLine +
373 $"Span: [1, 2, 3, 4, 5, {ArgumentFormatter.Ellipsis}]" + Environment.NewLine +
386 "Assert.DoesNotContain() Failure: Sub-span found" + Environment.NewLine +
387 " ↓ (pos 2)" + Environment.NewLine +
388 $"Span: [1, 2, 3, 4, 5, {ArgumentFormatter.Ellipsis}]" + Environment.NewLine +
409 "Assert.DoesNotContain() Failure: Sub-span found" + Environment.NewLine +
410 (data.Any() ? " ↓ (pos 0)" + Environment.NewLine : "") +
411 "Span: " + CollectionTracker<int>.FormatStart(data) + Environment.NewLine +
439 "Assert.EndsWith() Failure: String end does not match" + Environment.NewLine +
440 "String: \"Hello, world!\"" + Environment.NewLine +
461 "Assert.EndsWith() Failure: String end does not match" + Environment.NewLine +
462 "String: \"world!\"" + Environment.NewLine +
492 "Assert.EndsWith() Failure: String end does not match" + Environment.NewLine +
493 "String: \"\"" + Environment.NewLine +
515 "Assert.EndsWith() Failure: String end does not match" + Environment.NewLine +
516 "String: " + ArgumentFormatter.Ellipsis + "\"at we expected to find this ending inside\"" + Environment.NewLine +
628 message += Environment.NewLine + " " + expectedPointer;
631 Environment.NewLine + "Expected: " + ArgumentFormatter.Format(expected) +
632 Environment.NewLine + "Actual: " + ArgumentFormatter.Format(actual);
635 message += Environment.NewLine + " " + actualPointer;
663 "Assert.Equal() Failure: Strings differ" + Environment.NewLine +
664 " ↓ (pos 21)" + Environment.NewLine +
665 $"Expected: {ArgumentFormatter.Ellipsis}\"hy hello there world, you're a long strin\"{ArgumentFormatter.Ellipsis}" + Environment.NewLine +
666 $"Actual: {ArgumentFormatter.Ellipsis}\"hy hello there world! You're a long strin\"{ArgumentFormatter.Ellipsis}" + Environment.NewLine +
740 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
741 " ↓ (pos 1)" + Environment.NewLine +
742 "Expected: [1, 0, 2, 3]" + Environment.NewLine +
743 "Actual: [1, 2, 3]" + Environment.NewLine +
764 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
765 "Expected: [1, 2, 3]" + Environment.NewLine +
766 "Actual: [1, 2, 3, 4]" + Environment.NewLine +
820 "Assert.Equal() Failure: Collections differ" + Environment.NewLine +
821 "Expected: [\"yes\", \"no\", \"maybe\"]" + Environment.NewLine +
822 "Actual: [\"yes\", \"no\", \"maybe\", \"so\"]" + Environment.NewLine +
856 "Assert.StartsWith() Failure: String start does not match" + Environment.NewLine +
857 "String: \"Hello, world!\"" + Environment.NewLine +
878 "Assert.StartsWith() Failure: String start does not match" + Environment.NewLine +
879 "String: \"world!\"" + Environment.NewLine +
909 "Assert.StartsWith() Failure: String start does not match" + Environment.NewLine +
910 "String: \"\"" + Environment.NewLine +
932 "Assert.StartsWith() Failure: String start does not match" + Environment.NewLine +
933 "String: \"This is the long string that we expected \"" + ArgumentFormatter.Ellipsis + Environment.NewLine +
StringAssertsTests.cs (62)
35 "Assert.Contains() Failure: Sub-string not found" + Environment.NewLine +
36 "String: \"Hello, world!\"" + Environment.NewLine +
64 "Assert.Contains() Failure: Sub-string not found" + Environment.NewLine +
65 "String: \"Hello, world!\"" + Environment.NewLine +
91 "Assert.Contains() Failure: Sub-string not found" + Environment.NewLine +
92 "String: null" + Environment.NewLine +
110 "Assert.Contains() Failure: Sub-string not found" + Environment.NewLine +
111 $"String: \"This is a relatively long string so that \"{ArgumentFormatter.Ellipsis}" + Environment.NewLine +
190 "Assert.DoesNotContain() Failure: Sub-string found" + Environment.NewLine +
191 " ↓ (pos 7)" + Environment.NewLine +
192 "String: \"Hello, world!\"" + Environment.NewLine +
226 "Assert.DoesNotContain() Failure: Sub-string found" + Environment.NewLine +
227 " ↓ (pos 7)" + Environment.NewLine +
228 $"String: \"Hello, world from a very long string that\"{ArgumentFormatter.Ellipsis}" + Environment.NewLine +
256 "Assert.DoesNotContain() Failure: Sub-string found" + Environment.NewLine +
257 " ↓ (pos 50)" + Environment.NewLine +
258 $"String: {ArgumentFormatter.Ellipsis}\"ng that has 'Hello, world' placed in the \"{ArgumentFormatter.Ellipsis}" + Environment.NewLine +
286 "Assert.DoesNotContain() Failure: Sub-string found" + Environment.NewLine +
287 " ↓ (pos 89)" + Environment.NewLine +
288 $"String: {ArgumentFormatter.Ellipsis}\"ont truncated, just to say 'Hello, world'\"" + Environment.NewLine +
316 "Assert.DoesNotContain() Failure: Sub-string found" + Environment.NewLine +
317 " ↓ (pos 7)" + Environment.NewLine +
318 "String: \"Hello, world!\"" + Environment.NewLine +
359 "Assert.DoesNotMatch() Failure: Match found" + Environment.NewLine +
360 " ↓ (pos 2)" + Environment.NewLine +
361 "String: \"Hello, world!\"" + Environment.NewLine +
389 "Assert.DoesNotMatch() Failure: Match found" + Environment.NewLine +
390 " ↓ (pos 2)" + Environment.NewLine +
391 "String: \"Hello, world!\"" + Environment.NewLine +
419 "Assert.Empty() Failure: String was not empty" + Environment.NewLine +
453 "Assert.EndsWith() Failure: String end does not match" + Environment.NewLine +
454 "String: \"Hello, world!\"" + Environment.NewLine +
482 "Assert.EndsWith() Failure: String end does not match" + Environment.NewLine +
483 "String: \"world!\"" + Environment.NewLine +
525 "Assert.EndsWith() Failure: String end does not match" + Environment.NewLine +
526 "String: null" + Environment.NewLine +
544 "Assert.EndsWith() Failure: String end does not match" + Environment.NewLine +
545 "String: " + ArgumentFormatter.Ellipsis + "\"at we expected to find this ending inside\"" + Environment.NewLine +
670 message += Environment.NewLine + " " + expectedPointer;
673 Environment.NewLine + "Expected: " + ArgumentFormatter.Format(expected) +
674 Environment.NewLine + "Actual: " + ArgumentFormatter.Format(actual);
677 message += Environment.NewLine + " " + actualPointer;
713 "Assert.Equal() Failure: Strings differ" + Environment.NewLine +
714 " ↓ (pos 21)" + Environment.NewLine +
715 $"Expected: {ArgumentFormatter.Ellipsis}\"hy hello there world, you're a long strin\"{ArgumentFormatter.Ellipsis}" + Environment.NewLine +
716 $"Actual: {ArgumentFormatter.Ellipsis}\"hy hello there world! You're a long strin\"{ArgumentFormatter.Ellipsis}" + Environment.NewLine +
757 "Assert.Matches() Failure: Pattern not found in value" + Environment.NewLine +
758 @"Regex: ""\\d+""" + Environment.NewLine +
771 "Assert.Matches() Failure: Pattern not found in value" + Environment.NewLine +
772 @"Regex: ""\\d+""" + Environment.NewLine +
806 "Assert.Matches() Failure: Pattern not found in value" + Environment.NewLine +
807 @"Regex: ""\\d+""" + Environment.NewLine +
820 "Assert.Matches() Failure: Pattern not found in value" + Environment.NewLine +
821 @"Regex: ""\\d+""" + Environment.NewLine +
855 "Assert.StartsWith() Failure: String start does not match" + Environment.NewLine +
856 "String: \"Hello, world!\"" + Environment.NewLine +
884 "Assert.StartsWith() Failure: String start does not match" + Environment.NewLine +
885 "String: \"world!\"" + Environment.NewLine +
927 "Assert.StartsWith() Failure: String start does not match" + Environment.NewLine +
928 "String: null" + Environment.NewLine +
946 "Assert.StartsWith() Failure: String start does not match" + Environment.NewLine +
947 "String: \"This is the long string that we expected \"" + ArgumentFormatter.Ellipsis + Environment.NewLine +
Microsoft.DotNet.XUnitExtensions (8)
Microsoft.Extensions.ApiDescription.Client.Tests (5)
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (5)
Microsoft.Extensions.Configuration.EnvironmentVariables (1)
Microsoft.Extensions.Configuration.KeyPerFile (2)
Microsoft.Extensions.Configuration.UserSecrets (7)
Microsoft.Extensions.DependencyInjection (2)
Microsoft.Extensions.DependencyModel (3)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
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 (2)
Microsoft.Extensions.Telemetry (6)
Microsoft.Extensions.Telemetry.Tests (1)
Microsoft.Gen.MetricsReports.Unit.Tests (1)
Microsoft.Maui (2)
Microsoft.Maui.Controls.Compatibility (2)
Microsoft.Maui.Essentials (5)
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 (1)
Microsoft.NET.StringTools (1)
Microsoft.VisualBasic.Core (19)
Microsoft.VisualBasic.Tests (5)
Microsoft.VisualStudio.IntegrationTest.Setup (4)
Microsoft.VisualStudio.LanguageServices (30)
Microsoft.VisualStudio.LanguageServices.CSharp (2)
MinimalSample (4)
MSBuild (50)
MSBuildTaskHost (79)
mscorlib (1)
MyFrontend (1)
NativeIISSample (43)
netstandard (1)
PhotinoTestApp (2)
PrepareTests (1)
PresentationBuildTasks (2)
PresentationCore (92)
System\Windows\Input\Stylus\Wisp\PenThreadWorker.cs (8)
152Debug.WriteLine("WorkerOperationGetTabletsInfo.OnDoWork failed due to: {0}{1}", Environment.NewLine, e.ToString());
199result.CommHandle = Environment.Is64BitProcess ? (nint)commHandle : (int)commHandle;
208Debug.WriteLine("WorkerOperationCreateContext.OnDoWork failed due to a {0}{1}", Environment.NewLine, e.ToString());
315Debug.WriteLine("WorkerOperationRefreshCursorInfo.OnDoWork failed due to a {0}{1}", Environment.NewLine, e.ToString());
357Debug.WriteLine("WorkerOperationGetTabletInfo.OnDoWork failed due to {0}{1}", Environment.NewLine, e.ToString());
397Debug.WriteLine("WorkerOperationWorkerGetUpdatedSizes.OnDoWork failed due to a {0}{1}", Environment.NewLine, e.ToString());
798int timestamp = Environment.TickCount;
1251penContext.FirePenOutOfRange(0, Environment.TickCount);
System\Windows\InterOp\HwndPointerInputProvider.cs (5)
411handled = ProcessMessage(GetPointerId(wParam), RawStylusActions.InRange, Environment.TickCount);
416handled = ProcessMessage(GetPointerId(wParam), RawStylusActions.Move, Environment.TickCount);
421handled = ProcessMessage(GetPointerId(wParam), RawStylusActions.Down, Environment.TickCount);
426handled = ProcessMessage(GetPointerId(wParam), RawStylusActions.Up, Environment.TickCount);
434handled = ProcessMessage(GetPointerId(wParam), RawStylusActions.OutOfRange, Environment.TickCount);
PresentationFramework (23)
PresentationUI (2)
ProjectCachePlugin (1)
RazorBuildWebSite (2)
Replay (10)
Roslyn.Compilers.Extension (2)
Roslyn.Compilers.VisualBasic.IOperation.UnitTests (2)
Roslyn.Test.PdbUtilities (3)
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)
RunTests (25)
Security.TransportSecurity.IntegrationTests (4)
SemanticSearch.BuildTask (1)
ServerComparison.TestSites (1)
SocialSample (1)
Sockets.BindTests (7)
Sockets.FunctionalTests (7)
Stress.ApiService (3)
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 (13)
System.Configuration.ConfigurationManager (4)
System.Console (6)
System.Data.Odbc (4)
System.Diagnostics.DiagnosticSource (6)
System.Diagnostics.Process (15)
System.Diagnostics.TextWriterTraceListener (3)
System.Diagnostics.TraceSource (9)
System.Drawing.Common.Tests (4)
System.Formats.Tar (3)
System.IO.IsolatedStorage (7)
System.IO.Pipes (3)
System.IO.Ports (8)
System.Linq (2)
System.Linq.Parallel (3)
System.Net.Http (32)
System.Net.NameResolution (1)
System.Net.NetworkInformation (20)
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.Numerics.Tensors (7)
System.Private.CoreLib (183)
System.Private.DataContractSerialization (1)
System.Private.Windows.Core (4)
System.Private.Windows.Core.TestUtilities (7)
System.Private.Windows.GdiPlus (1)
System.Private.Xml (13)
System.Reflection.Metadata (1)
System.Runtime (1)
System.Runtime.Caching (6)
System.Runtime.Extensions (1)
System.Runtime.InteropServices (1)
System.Runtime.Numerics (6)
System.Security.Cryptography (4)
System.Security.Cryptography.Xml (1)
System.Security.Permissions (3)
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 (31)
System.Windows.Forms.Analyzers.CSharp.Tests (2)
System.Windows.Forms.Design (11)
System.Windows.Forms.Design.Tests (5)
System.Windows.Forms.Primitives (3)
System.Windows.Forms.Primitives.Tests (29)
System.Windows.Forms.Primitives.TestUtilities (11)
System.Windows.Forms.Tests (84)
System.Windows.Forms.UI.IntegrationTests (2)
System.Xaml (1)
SystemdTestApp (2)
TagHelpersWebSite (5)
Templates.Blazor.Tests (39)
Templates.Blazor.WebAssembly.Auth.Tests (42)
Templates.Blazor.WebAssembly.Tests (42)
Templates.Mvc.Tests (42)
Templates.Tests (43)
TestProject.IntegrationServiceA (2)
TestProject.ServiceA (1)
TestProject.ServiceB (1)
TestProject.ServiceC (1)
UIAutomationClient (5)
UIAutomationClientSideProviders (32)
vbc (11)
VBCSCompiler (10)
VBCSCompiler.UnitTests (5)
VisualBasicRuntimeTest (1)
Wasm.Performance.ConsoleHost (1)
Wasm.Performance.Driver (2)
WinFormsControlsTest (5)
xunit.assert (148)
Sdk\Exceptions\CollectionException.cs (9)
49 text += Environment.NewLine;
51 text += "Stack Trace:" + Environment.NewLine + filteredStack;
59 return string.Join(Environment.NewLine, lines);
81 message += string.Format(CultureInfo.CurrentCulture, "{0} {1}\u2193 (pos {2})", Environment.NewLine, new string(' ', failurePointerIndent.Value), indexFailurePoint);
83 message += string.Format(CultureInfo.CurrentCulture, "{0}Collection: {1}{2}Error: {3}", Environment.NewLine, formattedCollection, Environment.NewLine, FormatInnerException(exception));
103 Environment.NewLine,
105 Environment.NewLine,
107 Environment.NewLine,
Sdk\Exceptions\ContainsException.cs (13)
41 Environment.NewLine,
59 Environment.NewLine,
61 Environment.NewLine,
79 Environment.NewLine,
81 Environment.NewLine,
99 Environment.NewLine,
101 Environment.NewLine,
119 Environment.NewLine,
121 Environment.NewLine,
139 Environment.NewLine,
141 Environment.NewLine,
163 Environment.NewLine,
165 Environment.NewLine,
Sdk\Exceptions\DoesNotContainException.cs (18)
50 message += string.Format(CultureInfo.CurrentCulture, "{0} {1}\u2193 (pos {2})", Environment.NewLine, new string(' ', failurePointerIndent.Value), indexFailurePoint);
52 message += string.Format(CultureInfo.CurrentCulture, "{0}Collection: {1}", Environment.NewLine, collection);
77 message += string.Format(CultureInfo.CurrentCulture, "{0} {1}\u2193 (pos {2})", Environment.NewLine, new string(' ', failurePointerIndent.Value), indexFailurePoint);
79 message += string.Format(CultureInfo.CurrentCulture, "{0}Collection: {1}{2}Found: {3}", Environment.NewLine, collection, Environment.NewLine, item);
97 Environment.NewLine,
99 Environment.NewLine,
117 Environment.NewLine,
119 Environment.NewLine,
144 message += string.Format(CultureInfo.CurrentCulture, "{0} {1}\u2193 (pos {2})", Environment.NewLine, new string(' ', failurePointerIndent.Value), indexFailurePoint);
146 message += string.Format(CultureInfo.CurrentCulture, "{0}Memory: {1}{2}Found: {3}", Environment.NewLine, memory, Environment.NewLine, expectedSubMemory);
171 message += string.Format(CultureInfo.CurrentCulture, "{0} {1}\u2193 (pos {2})", Environment.NewLine, new string(' ', failurePointerIndent.Value), indexFailurePoint);
173 message += string.Format(CultureInfo.CurrentCulture, "{0}Span: {1}{2}Found: {3}", Environment.NewLine, span, Environment.NewLine, expectedSubSpan);
200 Environment.NewLine,
203 Environment.NewLine,
205 Environment.NewLine,
Sdk\Exceptions\EqualException.cs (11)
31 static readonly string newLineAndIndent = Environment.NewLine + new string(' ', 10); // Length of "Expected: " and "Actual: "
124 message += string.Format(CultureInfo.CurrentCulture, "{0} {1}\u2193 (pos {2}{3})", Environment.NewLine, new string(' ', expectedPointer.Value), mismatchedIndex, expectedTypeText);
126 message += string.Format(CultureInfo.CurrentCulture, "{0}Expected: {1}{2}Actual: {3}", Environment.NewLine, expected, Environment.NewLine, actual);
129 message += string.Format(CultureInfo.CurrentCulture, "{0} {1}\u2191 (pos {2}{3})", Environment.NewLine, new string(' ', actualPointer.Value), mismatchedIndex, actualTypeText);
164 message += string.Format(CultureInfo.CurrentCulture, "{0}Expected: {1}{2}Actual: {3}", Environment.NewLine, formattedExpected, Environment.NewLine, formattedActual);
238 Environment.NewLine,
240 expectedText.Replace(Environment.NewLine, newLineAndIndent, StringComparison.Ordinal),
244 Environment.NewLine,
246 actualText.Replace(Environment.NewLine, newLineAndIndent, StringComparison.Ordinal)
Sdk\Exceptions\EquivalentException.cs (12)
103 Environment.NewLine,
105 Environment.NewLine,
126 Environment.NewLine,
128 Environment.NewLine,
162 Environment.NewLine,
164 Environment.NewLine,
192 Environment.NewLine,
194 Environment.NewLine,
227 Environment.NewLine,
229 Environment.NewLine,
255 Environment.NewLine,
257 Environment.NewLine,
Sdk\Exceptions\NotEqualException.cs (6)
98 message += string.Format(CultureInfo.CurrentCulture, "{0} {1}\u2193 (pos {2})", Environment.NewLine, new string(' ', expectedPointer.Value), mismatchedIndex);
100 message += string.Format(CultureInfo.CurrentCulture, "{0}Expected: Not {1}{2}Actual: {3}", Environment.NewLine, expected, Environment.NewLine, actual);
103 message += string.Format(CultureInfo.CurrentCulture, "{0} {1}\u2191 (pos {2})", Environment.NewLine, new string(' ', actualPointer.Value), mismatchedIndex);
160 Environment.NewLine,
162 Environment.NewLine,
xunit.console (5)