3571 references to NewLine
aspire (1)
DotNetCliRunner.cs (1)
293var lines = stdout.Split(Environment.NewLine);
Aspire.Dashboard (11)
Components\Pages\Traces.razor.cs (3)
100tooltip += Environment.NewLine + string.Format(CultureInfo.InvariantCulture, Loc[nameof(Dashboard.Resources.Traces.TracesTraceId)], trace.TraceId); 111tooltip += Environment.NewLine + string.Format(CultureInfo.InvariantCulture, Loc[nameof(Dashboard.Resources.Traces.TracesTotalTraces)], count); 114tooltip += Environment.NewLine + string.Format(CultureInfo.InvariantCulture, Loc[nameof(Dashboard.Resources.Traces.TracesTotalErroredTraces)], errorCount);
DashboardWebApplication.cs (4)
854Debug.Assert(_validationFailures.Count == 0, "Validation failures: " + Environment.NewLine + string.Join(Environment.NewLine, _validationFailures)); 860Debug.Assert(_validationFailures.Count == 0, "Validation failures: " + Environment.NewLine + string.Join(Environment.NewLine, _validationFailures));
Model\Otlp\ApplicationsSelectHelpers.cs (2)
59""", name, string.Join(Environment.NewLine, applications), string.Join(Environment.NewLine, matches));
Model\Otlp\SpanWaterfallViewModel.cs (2)
38tooltip += Environment.NewLine + "Status = Error"; 42tooltip += Environment.NewLine + $"Outgoing call to {UninstrumentedPeer}";
Aspire.Dashboard.Components.Tests (3)
tests\Shared\Logging\XunitLoggerProvider.cs (3)
45private static readonly string[] s_newLineChars = new[] { Environment.NewLine }; 96if (message.EndsWith(Environment.NewLine, StringComparison.Ordinal)) 98message = message.Substring(0, message.Length - Environment.NewLine.Length);
Aspire.Dashboard.Tests (3)
tests\Shared\Logging\XunitLoggerProvider.cs (3)
45private static readonly string[] s_newLineChars = new[] { Environment.NewLine }; 96if (message.EndsWith(Environment.NewLine, StringComparison.Ordinal)) 98message = message.Substring(0, message.Length - Environment.NewLine.Length);
Aspire.EndToEnd.Tests (5)
tests\Shared\TemplatesTesting\AspireProject.cs (2)
302var exceptionMessage = $"{reason}: {Environment.NewLine}{outputMessage}"; 525msg += $" Content:{Environment.NewLine}{contentStr}";
tests\Shared\TemplatesTesting\CommandResult.cs (2)
39_ = message.AppendLine(CultureInfo.InvariantCulture, $"{Environment.NewLine}Standard Output:{Environment.NewLine}{Output}");
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
203return string.Join(System.Environment.NewLine, outputLines);
Aspire.Hosting (3)
Dashboard\DashboardLifecycleHook.cs (1)
476(s, _) => (logMessage.Exception is { } e) ? s + Environment.NewLine + e : s);
Dcp\DcpDependencyCheck.cs (2)
89$"'dcp {arguments}' returned exit code {processResult.ExitCode}. {errorStringBuilder.ToString()}{Environment.NewLine}{outputStringBuilder.ToString()}" 117$"{ex.Message} {errorStringBuilder.ToString()}{Environment.NewLine}{outputStringBuilder.ToString()}"
Aspire.Hosting.Testing.Tests (3)
tests\Shared\Logging\XunitLoggerProvider.cs (3)
45private static readonly string[] s_newLineChars = new[] { Environment.NewLine }; 96if (message.EndsWith(Environment.NewLine, StringComparison.Ordinal)) 98message = message.Substring(0, message.Length - Environment.NewLine.Length);
Aspire.Hosting.Tests (16)
Dashboard\DashboardLifecycleHookTests.cs (1)
258$"Error message{Environment.NewLine}System.InvalidOperationException: Error!",
Dcp\DcpExecutorTests.cs (9)
608await pipes.StandardOut.Writer.WriteAsync(Encoding.UTF8.GetBytes("2024-08-19T06:10:33.473275911Z Hello world" + Environment.NewLine)); 619await pipes.StandardErr.Writer.WriteAsync(Encoding.UTF8.GetBytes("2024-08-19T06:10:32.661Z Next" + Environment.NewLine)); 662return new MemoryStream(Encoding.UTF8.GetBytes("2024-08-19T06:10:01.000Z First" + Environment.NewLine)); 664return new MemoryStream(Encoding.UTF8.GetBytes("2024-08-19T06:10:02.000Z Second" + Environment.NewLine)); 666return new MemoryStream(Encoding.UTF8.GetBytes("2024-08-19T06:10:03.000Z Third" + Environment.NewLine)); 669"2024-08-19T06:10:05.000Z Sixth" + Environment.NewLine + 670"2024-08-19T06:10:05.000Z Seventh" + Environment.NewLine + 671"2024-08-19T06:10:04.000Z Forth" + Environment.NewLine + 672"2024-08-19T06:10:04.000Z Fifth" + Environment.NewLine));
MSBuildTests.cs (1)
121Assert.True(process.ExitCode == 0, $"Build failed: {Environment.NewLine}{output}");
ProjectResourceTests.cs (1)
490: $",{Environment.NewLine} \"ASPNETCORE_FORWARDEDHEADERS_ENABLED\": \"true\"";
Schema\SchemaTests.cs (1)
756Assert.True(results.IsValid, string.Join(Environment.NewLine, errorMessages ?? ["Schema failed validation with no errors"]));
tests\Shared\Logging\XunitLoggerProvider.cs (3)
45private static readonly string[] s_newLineChars = new[] { Environment.NewLine }; 96if (message.EndsWith(Environment.NewLine, StringComparison.Ordinal)) 98message = message.Substring(0, message.Length - Environment.NewLine.Length);
Aspire.Playground.Tests (3)
tests\Shared\Logging\XunitLoggerProvider.cs (3)
45private static readonly string[] s_newLineChars = new[] { Environment.NewLine }; 96if (message.EndsWith(Environment.NewLine, StringComparison.Ordinal)) 98message = message.Substring(0, message.Length - Environment.NewLine.Length);
Aspire.Templates.Tests (5)
tests\Shared\TemplatesTesting\AspireProject.cs (2)
302var exceptionMessage = $"{reason}: {Environment.NewLine}{outputMessage}"; 525msg += $" Content:{Environment.NewLine}{contentStr}";
tests\Shared\TemplatesTesting\CommandResult.cs (2)
39_ = message.AppendLine(CultureInfo.InvariantCulture, $"{Environment.NewLine}Standard Output:{Environment.NewLine}{Output}");
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
203return string.Join(System.Environment.NewLine, outputLines);
AzureAppServicesHostingStartupSample (24)
Startup.cs (24)
17await context.Response.WriteAsync("Hello World - " + DateTimeOffset.Now + Environment.NewLine); 18await context.Response.WriteAsync(Environment.NewLine); 20await context.Response.WriteAsync("Address:" + Environment.NewLine); 21await context.Response.WriteAsync("Scheme: " + context.Request.Scheme + Environment.NewLine); 22await context.Response.WriteAsync("Host: " + context.Request.Headers.Host + Environment.NewLine); 23await context.Response.WriteAsync("PathBase: " + context.Request.PathBase.Value + Environment.NewLine); 24await context.Response.WriteAsync("Path: " + context.Request.Path.Value + Environment.NewLine); 25await context.Response.WriteAsync("Query: " + context.Request.QueryString.Value + Environment.NewLine); 26await context.Response.WriteAsync(Environment.NewLine); 28await context.Response.WriteAsync("Connection:" + Environment.NewLine); 29await context.Response.WriteAsync("RemoteIp: " + context.Connection.RemoteIpAddress + Environment.NewLine); 30await context.Response.WriteAsync("RemotePort: " + context.Connection.RemotePort + Environment.NewLine); 31await context.Response.WriteAsync("LocalIp: " + context.Connection.LocalIpAddress + Environment.NewLine); 32await context.Response.WriteAsync("LocalPort: " + context.Connection.LocalPort + Environment.NewLine); 33await context.Response.WriteAsync("ClientCert: " + context.Connection.ClientCertificate + Environment.NewLine); 34await context.Response.WriteAsync(Environment.NewLine); 36await context.Response.WriteAsync("User: " + context.User.Identity.Name + Environment.NewLine); 37await context.Response.WriteAsync(Environment.NewLine); 39await context.Response.WriteAsync("Headers:" + Environment.NewLine); 42await context.Response.WriteAsync(header.Key + ": " + header.Value + Environment.NewLine); 44await context.Response.WriteAsync(Environment.NewLine); 46await context.Response.WriteAsync("Environment Variables:" + Environment.NewLine); 51await context.Response.WriteAsync(key + ": " + value + Environment.NewLine); 53await context.Response.WriteAsync(Environment.NewLine);
AzureAppServicesSample (24)
Startup.cs (24)
28await context.Response.WriteAsync("Hello World - " + DateTimeOffset.Now + Environment.NewLine); 29await context.Response.WriteAsync(Environment.NewLine); 31await context.Response.WriteAsync("Address:" + Environment.NewLine); 32await context.Response.WriteAsync("Scheme: " + context.Request.Scheme + Environment.NewLine); 33await context.Response.WriteAsync("Host: " + context.Request.Headers.Host + Environment.NewLine); 34await context.Response.WriteAsync("PathBase: " + context.Request.PathBase.Value + Environment.NewLine); 35await context.Response.WriteAsync("Path: " + context.Request.Path.Value + Environment.NewLine); 36await context.Response.WriteAsync("Query: " + context.Request.QueryString.Value + Environment.NewLine); 37await context.Response.WriteAsync(Environment.NewLine); 39await context.Response.WriteAsync("Connection:" + Environment.NewLine); 40await context.Response.WriteAsync("RemoteIp: " + context.Connection.RemoteIpAddress + Environment.NewLine); 41await context.Response.WriteAsync("RemotePort: " + context.Connection.RemotePort + Environment.NewLine); 42await context.Response.WriteAsync("LocalIp: " + context.Connection.LocalIpAddress + Environment.NewLine); 43await context.Response.WriteAsync("LocalPort: " + context.Connection.LocalPort + Environment.NewLine); 44await context.Response.WriteAsync("ClientCert: " + context.Connection.ClientCertificate + Environment.NewLine); 45await context.Response.WriteAsync(Environment.NewLine); 47await context.Response.WriteAsync("User: " + context.User.Identity.Name + Environment.NewLine); 48await context.Response.WriteAsync(Environment.NewLine); 50await context.Response.WriteAsync("Headers:" + Environment.NewLine); 53await context.Response.WriteAsync(header.Key + ": " + header.Value + Environment.NewLine); 55await context.Response.WriteAsync(Environment.NewLine); 57await context.Response.WriteAsync("Environment Variables:" + Environment.NewLine); 62await context.Response.WriteAsync(key + ": " + value + Environment.NewLine); 64await context.Response.WriteAsync(Environment.NewLine);
BuildActionTelemetryTable (2)
Program.cs (2)
164Console.WriteLine($"The following Actions are new and need their description reviewed:{Environment.NewLine}{string.Join(Environment.NewLine, missingDescriptions)}");
ConfigurationSchemaGenerator (2)
ConfigSchemaGenerator.cs (2)
35if (!schema.EndsWith(Environment.NewLine)) 38schema += Environment.NewLine;
Crossgen2Tasks (4)
CommonFilePulledFromSdkRepo\TaskBase.cs (4)
69Environment.NewLine, 73Environment.NewLine); 94s = s + " ---> " + ExceptionToStringWithoutMessage(e.InnerException) + Environment.NewLine + 103s += Environment.NewLine + stackTrace;
csc (1)
src\Compilers\Core\CommandLine\CompilerServerLogger.cs (1)
154string output = prefix + message + Environment.NewLine;
CSharpSyntaxGenerator (10)
Grammar\GrammarGenerator.cs (7)
95var result = "// <auto-generated />" + Environment.NewLine + "grammar csharp;" + Environment.NewLine; 109result += Environment.NewLine + RuleReference(name).Text + Environment.NewLine + " : " + 110string.Join(Environment.NewLine + " | ", sorted) + Environment.NewLine + " ;" + Environment.NewLine;
Program.cs (3)
166text = text.Replace($"{{{Environment.NewLine}{Environment.NewLine}", $"{{{Environment.NewLine}");
DeveloperExceptionPageSample (1)
Startup.cs (1)
43"New Line 2", Environment.NewLine,
dotnet-dev-certs (4)
Program.cs (3)
368"already trusted we will run the following command:" + Environment.NewLine + 370Environment.NewLine + "This command might prompt you for your password to install the certificate " + 371"on the keychain. To undo these changes: 'security remove-trusted-cert <<certificate>>'" + Environment.NewLine);
src\Shared\CertificateGeneration\CertificateManager.cs (1)
854return string.Join(Environment.NewLine, description);
dotnet-getdocument (2)
src\Tools\GetDocumentInsider\src\ReporterExtensions.cs (2)
31Environment.NewLine, 33.Split(new[] { Environment.NewLine }, StringSplitOptions.None)
dotnet-razorpagegenerator (2)
Program.cs (2)
130var diagnostics = string.Join(Environment.NewLine, cSharpDocument.Diagnostics); 131Console.WriteLine($"One or more parse errors encountered. This will not prevent the generator from continuing: {Environment.NewLine}{diagnostics}.");
dotnet-svcutil.xmlserializer (4)
Microsoft\Tools\ServiceModel\SvcUtil\ToolConsole.cs (4)
542index += Environment.NewLine.Length; 599if ((index + Environment.NewLine.Length) > text.Length) 604for (int i = 0; i < Environment.NewLine.Length; i++) 606if (Environment.NewLine[i] != text[index + i])
dotnet-svcutil-lib (35)
Bootstrapper\SvcutilBootstrapper.cs (1)
206throw new BootstrapException(string.Format(CultureInfo.CurrentCulture, "{0}{1}{2}", exception.Message, Environment.NewLine, Resource.BootstrapErrorDisableReferences));
CmdCredentialsProvider.cs (1)
250return separator + Environment.NewLine + certId + cert + separator;
CodeDomFixup\MethodCreationHelper.cs (6)
111indent + "{0} <summary>" + Environment.NewLine + 112indent + "{0} " + SR.ConfigureEndpointCommentSummary + Environment.NewLine + 113indent + "{0} </summary>" + Environment.NewLine + 114indent + "{0} <param name=\"serviceEndpoint\">" + SR.ServiceEndpointComment + "</param>" + Environment.NewLine + 115indent + "{0} <param name=\"clientCredentials\">" + SR.ClientCredentialsComment + "</param>" + Environment.NewLine; 127indent + "Partial Private Shared Sub ConfigureEndpoint(ByVal serviceEndpoint As System.ServiceModel.Description.ServiceEndpoint, ByVal clientCredentials As System.ServiceModel.Description.ClientCredentials)" + Environment.NewLine +
CommandProcessorOptions.cs (1)
357throw new ToolArgumentException($"{moreThanOneProjectMsg}{Environment.NewLine}{useProjectOptions}");
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (1)
499b.Append(Environment.NewLine);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWriterSettings.cs (1)
691_newLineChars = Environment.NewLine; // "\r\n" on Windows, "\n" on Unix
FrameworkFork\Microsoft.Xml\Xml\Serialization\SchemaObjectWriter.cs (1)
196_w.Append(Environment.NewLine);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContractSet.cs (1)
468errorMessage.AppendFormat("{0}\"{1}\" ", Environment.NewLine, conflictingType.AssemblyQualifiedName);
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\X509CertificateClaimSet.cs (1)
424Environment.NewLine,
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\DataProtectionSecurityStateEncoder.cs (2)
62result.AppendFormat("{0} UseCurrentUserProtectionScope={1}", Environment.NewLine, _useCurrentUserProtectionScope); 63result.AppendFormat("{0} Entropy Length={1}", Environment.NewLine, (_entropy == null) ? 0 : _entropy.Length);
HelpGenerator.cs (4)
364index += Environment.NewLine.Length; 421if ((index + Environment.NewLine.Length) > text.Length) 426for (int i = 0; i < Environment.NewLine.Length; i++) 428if (Environment.NewLine[i] != text[index + i])
Shared\Options\OptionsSerializer.cs (1)
205var separator = prettyFormat ? Environment.NewLine : " ";
Shared\ProjectPropertyResolver.cs (1)
98await safeLogger.WriteErrorAsync($"{ex.Message}{Environment.NewLine}{ex.StackTrace}", logToUI: false);
Shared\Utilities\ProcessRunner.cs (2)
66using (var safeLogger = await SafeLogger.WriteStartOperationAsync(logger, $"Executing command [\"{currentDir}\"]{Environment.NewLine}>{processName} {processArgs}").ConfigureAwait(false)) 115Console.WriteLine($"{Path.GetFileName(currentDir)}>{processName} {processArgs}{Environment.NewLine}");
Shared\Utilities\RuntimeEnvironmentHelper.cs (6)
62"<?xml version=\"1.0\" encoding=\"utf-8\"?>" + Environment.NewLine + 63"<configuration>" + Environment.NewLine + 64" <packageSources>" + Environment.NewLine + 65" <add key = \"svcutilFeed\" value=\"{0}\" />" + Environment.NewLine + 66" </packageSources>" + Environment.NewLine + 67"</configuration>" + Environment.NewLine;
Shared\Utilities\Utilities.cs (1)
43message.Append(string.Concat(Environment.NewLine, exMsg, includeStackTrace ? e.StackTrace : string.Empty));
ToolConsole.cs (4)
128str = str.Replace("\\r\\n", Environment.NewLine); 135str = logTag + str.Replace(Environment.NewLine, newLineReplacement); 166WriteWarning(conversionError.Message.Replace("\r\n", Environment.NewLine).Trim(trimLFNL)); 170WriteError(conversionError.Message.Replace("\r\n", Environment.NewLine).Trim(trimLFNL));
dotnet-svcutil-lib.Tests (80)
E2ETests.cs (1)
54_ = $"{processResult.OutputText}{Environment.NewLine}{((TestLogger)this_TestCaseLogger)}";
GlobalToolTests.cs (1)
23var outputText = $"{processResult.OutputText}{Environment.NewLine}{((TestLogger)this_TestCaseLogger)}";
ProjectUtils.cs (2)
73Assert.True(ret.ExitCode == 0, $"Project package restore failed:{Environment.NewLine}{ret.OutputText}{logger}"); 78Assert.True(ret.ExitCode == 0, $"Project build failed:{Environment.NewLine}{ret.OutputText}{logger}");
TestInit.cs (44)
186Assert.True(ret.ExitCode == 0, "Could not install the global tool." + Environment.NewLine + ret.OutputText); 294Environment.NewLine + Environment.NewLine + "Error: The generated file doesn't match the baseline! Different lines:" + 295Environment.NewLine + "< \"{0}\"" + 296Environment.NewLine + "> \"{1}\"" + Environment.NewLine + 297Environment.NewLine + " windiff \"{2}\" \"{3}\"" + Environment.NewLine + 298Environment.NewLine + "To update the baseline run the following command:" + 299Environment.NewLine + " copy /y \"{3}\" \"{2}\""; 302Environment.NewLine + Environment.NewLine + "Error: A file was generated but no baseline exists!" + 303Environment.NewLine + "The \"{0}\" file was created and need to be committed into the source repo. Rerunning the test should succeed if no other error occurred!"; 306Environment.NewLine + Environment.NewLine + "No generated file was found matching the following baselines:" + Environment.NewLine + "{0}" + 307Environment.NewLine + "If no longer valid, run the following command script to delete them:" + Environment.NewLine + " {1}"; 310Environment.NewLine + Environment.NewLine + "To reproduce the problem run the following commands:" + Environment.NewLine + 311Environment.NewLine + " pushd {0}" + Environment.NewLine + 312Environment.NewLine + " dotnet svcutil {1}"; 315Environment.NewLine + "Command: dotnet svcutil {0}" + 316Environment.NewLine + "Workdir: {1}"; 318public static readonly string g_GeneralErrMsg = $"{Environment.NewLine}{Environment.NewLine}Click the Output link for a full report."; 328var resultsMsg = Environment.NewLine + $"Svcutil Result: {actualText}. Expected: {expectedText}"; 332var logText = $"{Environment.NewLine}{outputText}{Environment.NewLine}{Environment.NewLine}{commandMsg}{resultsMsg}"; 337Assert.True(isTestSucess, $"{Environment.NewLine}Test failed:{Environment.NewLine}{outputText}{g_GeneralErrMsg}"); 343Assert.True(validationSuccess, $"{Environment.NewLine}Test failed validation!{failureMessage}{g_GeneralErrMsg}"); 461.Aggregate((msg, b) => $"{msg}{Environment.NewLine}{b}"), scriptPath); 611"<?xml version=\"1.0\" encoding=\"utf-8\"?>" + Environment.NewLine + 612"<configuration>" + Environment.NewLine + 613" <packageSources>" + Environment.NewLine + 614" <clear />" + Environment.NewLine + 615" <add key = \"svcutilTestFeed\" value=\"$svcutilTestFeed$\" />" + Environment.NewLine + 616" <add key = \"dotnet-public\" value=\"https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json\" />" + Environment.NewLine + 617" </packageSources>" + Environment.NewLine + 618"</configuration>" + Environment.NewLine;
UnitTest.cs (32)
253Environment.NewLine + cmdOptions.Errors.Select(e => e.Message).Aggregate((errors, e) => $"{errors}{Environment.NewLine}{e}"); 255Environment.NewLine + cmdOptions.Warnings.Aggregate((warnings, w) => $"{warnings}{Environment.NewLine}{w}"); 258var log = $"{Environment.NewLine}Input options:{Environment.NewLine}{options}{Environment.NewLine}" + 259$"{Environment.NewLine}Output JSON:{Environment.NewLine}{cmdOptions.Json}{Environment.NewLine}" + 260$"{Environment.NewLine}Output options:{Environment.NewLine}{optionsString}{Environment.NewLine}" + 261$"{Environment.NewLine}Parsing warnings:{cmdwarnings}{Environment.NewLine}" + 262$"{Environment.NewLine}Parsing errors:{cmderrors}{Environment.NewLine}"; 268log += $"{Environment.NewLine}{cmdOptions.GetType().Name} as {updateOptions.GetType().Name}:{Environment.NewLine}{updateOptions.Json}"; 299Environment.NewLine + cmdOptions.Errors.Select(e => e.Message).Aggregate((errors, e) => $"{errors}{Environment.NewLine}{e}"); 301Environment.NewLine + cmdOptions.Warnings.Aggregate((warnings, w) => $"{warnings}{Environment.NewLine}{w}"); 304var log = $"{Environment.NewLine}Input options:{Environment.NewLine}{options}{Environment.NewLine}" + 305$"{Environment.NewLine}Output options:{Environment.NewLine}{optionsString}{Environment.NewLine}" + 306$"{Environment.NewLine}{cmdwarnings}" + 307$"{Environment.NewLine}{cmderrors}"; 355errorMessage = $"{options.GetType().Name} did not pass serialization roundtrip!{Environment.NewLine} windiff {jsonFileSrcPath} {outJsonFile}";
dotnet-user-jwts (12)
Commands\CreateCommand.cs (11)
136var optionsString = schemeNameOption.HasValue() ? $"{Resources.JwtPrint_Scheme}: {scheme}{Environment.NewLine}" : string.Empty; 139optionsString += $"{Resources.JwtPrint_Name}: {name}{Environment.NewLine}"; 142optionsString += audienceOption.HasValue() ? $"{Resources.JwtPrint_Audiences}: {string.Join(", ", audience)}{Environment.NewLine}" : string.Empty; 149optionsString += issuerOption.HasValue() ? $"{Resources.JwtPrint_Issuer}: {issuer}{Environment.NewLine}" : string.Empty; 159optionsString += $"{Resources.JwtPrint_NotBefore}: {notBefore:O}{Environment.NewLine}"; 178optionsString += $"{Resources.JwtPrint_ExpiresOn}: {expiresOn:O}{Environment.NewLine}"; 198optionsString += $"{Resources.JwtPrint_ExpiresOn}: {expiresOn:O}{Environment.NewLine}"; 203optionsString += rolesOption.HasValue() ? $"{Resources.JwtPrint_Roles}: [{string.Join(", ", roles)}]{Environment.NewLine}" : string.Empty; 206optionsString += scopesOption.HasValue() ? $"{Resources.JwtPrint_Scopes}: {string.Join(", ", scopes)}{Environment.NewLine}" : string.Empty; 216optionsString += $"{Resources.JwtPrint_CustomClaims}: [{string.Join(", ", claims.Select(kvp => $"{kvp.Key}={kvp.Value}"))}]{Environment.NewLine}"; 224optionsString += appsettingsFileOption.HasValue() ? $"{Resources.JwtPrint_appsettingsFile}: {appsettingsFile}{Environment.NewLine}" : string.Empty;
src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (1)
64propertyGroup.Add($"{Environment.NewLine} ");
dotnet-user-secrets (1)
src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (1)
64propertyGroup.Add($"{Environment.NewLine} ");
GetDocument.Insider (3)
Commands\GetDocumentCommandWorker.cs (1)
311writer.WriteLine(string.Join(Environment.NewLine, filePathList));
ReporterExtensions.cs (2)
31Environment.NewLine, 33.Split(new[] { Environment.NewLine }, StringSplitOptions.None)
HealthChecksSample (1)
LivenessProbeStartup.cs (1)
60await context.Response.WriteAsync(Environment.NewLine);
HotAddSample (1)
Startup.cs (1)
52await context.Response.WriteAsync(ex.ToString().Replace(Environment.NewLine, "<br>"));
IdeBenchmarks (3)
InheritanceMargin\InheritanceMarginGlyphBenchmarks.cs (3)
198builder.Append(Environment.NewLine); 208builder.Append(Environment.NewLine); 220builder.Append(Environment.NewLine);
IdeCoreBenchmarks (7)
FormatterBenchmarks.cs (7)
40.Replace($"{{{Environment.NewLine}{Environment.NewLine}", "{") 41.Replace($"}}{Environment.NewLine}{Environment.NewLine}", "}") 42.Replace($"{{{Environment.NewLine}", "{") 43.Replace($"}}{Environment.NewLine}", "}") 44.Replace($";{Environment.NewLine}", ";");
IIS.Common.TestLib (7)
TestConnections.cs (7)
149$"Did not receive a complete response within {Timeout}.{Environment.NewLine}{Environment.NewLine}" + 150$"Expected:{Environment.NewLine}{length} bytes of data{Environment.NewLine}{Environment.NewLine}" + 151$"Actual:{Environment.NewLine}{Encoding.ASCII.GetString(actual, 0, offset)}{Environment.NewLine}",
IIS.FunctionalTests (4)
src\Servers\IIS\IIS\test\Common.FunctionalTests\CompressionTests.cs (2)
49var message = i + Environment.NewLine; 91var message = i + Environment.NewLine;
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
227"Running test allowed log file to be empty." + Environment.NewLine);
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (1)
260var message = i + Environment.NewLine;
IIS.LongTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
227"Running test allowed log file to be empty." + Environment.NewLine);
IIS.NewHandler.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
227"Running test allowed log file to be empty." + Environment.NewLine);
IIS.NewShim.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
227"Running test allowed log file to be empty." + Environment.NewLine);
IIS.ShadowCopy.Tests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
227"Running test allowed log file to be empty." + Environment.NewLine);
IISExpress.FunctionalTests (4)
src\Servers\IIS\IIS\test\Common.FunctionalTests\CompressionTests.cs (2)
49var message = i + Environment.NewLine; 91var message = i + Environment.NewLine;
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
227"Running test allowed log file to be empty." + Environment.NewLine);
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (1)
260var message = i + Environment.NewLine;
IISSample (25)
Startup.cs (25)
42await context.Response.WriteAsync("Hello World - " + DateTimeOffset.Now + Environment.NewLine); 43await context.Response.WriteAsync(Environment.NewLine); 45await context.Response.WriteAsync("Address:" + Environment.NewLine); 46await context.Response.WriteAsync("Scheme: " + context.Request.Scheme + Environment.NewLine); 47await context.Response.WriteAsync("Host: " + context.Request.Headers["Host"] + Environment.NewLine); 48await context.Response.WriteAsync("PathBase: " + context.Request.PathBase.Value + Environment.NewLine); 49await context.Response.WriteAsync("Path: " + context.Request.Path.Value + Environment.NewLine); 50await context.Response.WriteAsync("Query: " + context.Request.QueryString.Value + Environment.NewLine); 51await context.Response.WriteAsync(Environment.NewLine); 53await context.Response.WriteAsync("Connection:" + Environment.NewLine); 54await context.Response.WriteAsync("RemoteIp: " + context.Connection.RemoteIpAddress + Environment.NewLine); 55await context.Response.WriteAsync("RemotePort: " + context.Connection.RemotePort + Environment.NewLine); 56await context.Response.WriteAsync("LocalIp: " + context.Connection.LocalIpAddress + Environment.NewLine); 57await context.Response.WriteAsync("LocalPort: " + context.Connection.LocalPort + Environment.NewLine); 58await context.Response.WriteAsync("ClientCert: " + context.Connection.ClientCertificate + Environment.NewLine); 59await context.Response.WriteAsync(Environment.NewLine); 61await context.Response.WriteAsync("User: " + context.User.Identity.Name + Environment.NewLine); 63await context.Response.WriteAsync("DisplayName: " + scheme?.DisplayName + Environment.NewLine); 64await context.Response.WriteAsync(Environment.NewLine); 66await context.Response.WriteAsync("Headers:" + Environment.NewLine); 69await context.Response.WriteAsync(header.Key + ": " + header.Value + Environment.NewLine); 71await context.Response.WriteAsync(Environment.NewLine); 73await context.Response.WriteAsync("Environment Variables:" + Environment.NewLine); 78await context.Response.WriteAsync(key + ": " + value + Environment.NewLine); 81await context.Response.WriteAsync(Environment.NewLine);
Infrastructure.Common (6)
CertificateManager.cs (3)
118exceptionString.AppendFormat("while attempting to install cert with thumbprint '{1}'.", Environment.NewLine, certificate.Thumbprint); 119exceptionString.AppendFormat("{0}This is usually due to permissions issues if writing to the LocalMachine location", Environment.NewLine); 120exceptionString.AppendFormat("{0}Try running the test with elevated or superuser permissions.", Environment.NewLine);
ServiceUtilHelper.cs (3)
120Environment.NewLine, rootCertificate)); 209Environment.NewLine, clientCertificate)); 322Environment.NewLine, peerCertificate));
Infrastructure.IntegrationTests (2)
OSAndFrameworkTests.4.1.1.cs (2)
27Environment.NewLine, 29Environment.NewLine,
InMemory.FunctionalTests (9)
HttpsTests.cs (2)
193userMessage: string.Join(Environment.NewLine, loggerProvider.ErrorLogger.ErrorMessages)); 222userMessage: string.Join(Environment.NewLine, loggerProvider.ErrorLogger.ErrorMessages));
src\Servers\Kestrel\shared\test\StreamBackedTestConnection.cs (7)
119throw new TimeoutException($"Did not receive a complete response within {Timeout}.{Environment.NewLine}{Environment.NewLine}" + 120$"Expected:{Environment.NewLine}{expected}{Environment.NewLine}{Environment.NewLine}" + 121$"Actual:{Environment.NewLine}{new string(actual, 0, offset)}{Environment.NewLine}",
InProcessWebSite (10)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (10)
75await ctx.Response.WriteAsync("IIS Version: " + config["IIS_VERSION"] + Environment.NewLine); 76await ctx.Response.WriteAsync("ApplicationId: " + config["IIS_APPLICATION_ID"] + Environment.NewLine); 77await ctx.Response.WriteAsync("Application Path: " + config["IIS_PHYSICAL_PATH"] + Environment.NewLine); 78await ctx.Response.WriteAsync("Application Virtual Path: " + config["IIS_APPLICATION_VIRTUAL_PATH"] + Environment.NewLine); 79await ctx.Response.WriteAsync("Application Config Path: " + config["IIS_APP_CONFIG_PATH"] + Environment.NewLine); 80await ctx.Response.WriteAsync("AppPool ID: " + config["IIS_APP_POOL_ID"] + Environment.NewLine); 81await ctx.Response.WriteAsync("AppPool Config File: " + config["IIS_APP_POOL_CONFIG_FILE"] + Environment.NewLine); 82await ctx.Response.WriteAsync("Site ID: " + config["IIS_SITE_ID"] + Environment.NewLine); 675await ctx.Response.WriteAsync(line + Environment.NewLine); 707await ctx.Response.WriteAsync(line + Environment.NewLine);
installer.tasks (16)
GenerateFileVersionProps.cs (1)
117string.Concat(versionlessFiles.Select(f => Environment.NewLine + f)));
GenerateRunScript.cs (2)
43Log.LogMessage($"Run commands = {string.Join(Environment.NewLine, RunCommands)}"); 65string[] newlineSeparator = new string[] { Environment.NewLine };
StaticFileRegeneration\TpnDocument.cs (6)
31Environment.NewLine, 53Environment.NewLine, 65Preamble + Environment.NewLine + 66string.Join(Environment.NewLine + Environment.NewLine, Sections) + 67Environment.NewLine;
StaticFileRegeneration\TpnSection.cs (2)
23Header + Environment.NewLine + Environment.NewLine + Content;
StaticFileRegeneration\TpnSectionHeader.cs (5)
75SeparatorLine + Environment.NewLine + 76Environment.NewLine + 81Name + Environment.NewLine + 100string name = string.Join(Environment.NewLine, nameLines); 143Name = string.Join(Environment.NewLine, nameLines),
Interop.FunctionalTests (3)
H2SpecCommands.cs (1)
291throw new Exception(string.Join(Environment.NewLine, failures));
Http3\Http3RequestTests.cs (2)
1057Assert.Fail("Bad log write: " + badLogWrite + Environment.NewLine + badLogWrite.Exception); 1143Assert.Fail("Bad log write: " + badLogWrite + Environment.NewLine + badLogWrite.Exception);
Kestrel.SampleApp (3)
Startup.cs (3)
55+ $"{Environment.NewLine}" 57+ $"{Environment.NewLine}" 60var response = $"hello, world{Environment.NewLine}";
Metrics (3)
Program.cs (2)
245await metricFile.WriteStringAsync(Environment.NewLine + Environment.NewLine).ConfigureAwait(false);
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
175foreach (var line in child.ToString().Split(new[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries))
Metrics.Legacy (3)
src\RoslynAnalyzers\Tools\Metrics\Program.cs (2)
245await metricFile.WriteStringAsync(Environment.NewLine + Environment.NewLine).ConfigureAwait(false);
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
175foreach (var line in child.ToString().Split(new[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries))
Microsoft.Arcade.Common (6)
CommandResult.cs (4)
37message.AppendLine($"{Environment.NewLine}Standard Output:{Environment.NewLine}{StdOut}"); 42message.AppendLine($"{Environment.NewLine}Standard Error:{Environment.NewLine}{StdErr}");
CompactConsoleLoggerFormatter.cs (2)
47_newLineWithMessagePadding = Environment.NewLine + _messagePadding; 101textWriter.WriteLine(message.Replace(Environment.NewLine, _newLineWithMessagePadding));
Microsoft.Arcade.Test.Common (1)
AssertEx.cs (1)
497itemSeparator: Environment.NewLine);
Microsoft.AspNetCore.Analyzer.Testing (4)
CodeFixRunner.cs (2)
55Environment.NewLine, 57throw new InvalidOperationException($"Compilation failed:{Environment.NewLine}{message}");
DiagnosticVerifier.cs (1)
178_testOutputHelper?.WriteLine("Adding file: " + newFileName + Environment.NewLine + source);
TestSource.cs (1)
52testInput.Source = string.Join(Environment.NewLine, lines);
Microsoft.AspNetCore.App.Analyzers.Test (5)
Authorization\AddAuthorizationBuilderTests.cs (3)
730var fullSource = string.Join(Environment.NewLine, source, _testAuthorizationPolicyClassDeclaration); 731var fullFixedSource = string.Join(Environment.NewLine, fixedSource, _testAuthorizationPolicyClassDeclaration); 738var fullSource = string.Join(Environment.NewLine, source, _testAuthorizationPolicyClassDeclaration);
RouteEmbeddedLanguage\RoutePatternParserTests.cs (2)
186$"Parsing '{token.ValueText}' throws RoutePattern error '{ex.Message}'. Error not found in diagnostics: " + Environment.NewLine + 187string.Join(Environment.NewLine, tree.Diagnostics.Select(d => d.Message)));
Microsoft.AspNetCore.App.CodeFixes (1)
Authorization\AddAuthorizationBuilderFixer.cs (1)
122SyntaxFactory.EndOfLine(Environment.NewLine),
Microsoft.AspNetCore.Authentication.Test (1)
TwitterTests.cs (1)
300var expectedErrorMessage = "An error has occurred while calling the Twitter API, error's returned:" + Environment.NewLine
Microsoft.AspNetCore.Authentication.Twitter (1)
TwitterHandler.cs (1)
393errorMessageStringBuilder.Append(Environment.NewLine);
Microsoft.AspNetCore.Authorization (2)
LoggingExtensions.cs (2)
21: "These requirements were not met:" + Environment.NewLine + string.Join(Environment.NewLine, failure.FailedRequirements);
Microsoft.AspNetCore.Authorization.Test (2)
DefaultAuthorizationServiceTests.cs (2)
1195Assert.Equal("Authorization failed. These requirements were not met:" + Environment.NewLine + "LogRequirement" + Environment.NewLine + "LogRequirement", message);
Microsoft.AspNetCore.BrowserTesting (4)
PageInformation.cs (4)
93var messageText = message.Text.Replace(Environment.NewLine, $"{Environment.NewLine} "); 96var logMessage = $"[{_page.Url}]{Environment.NewLine} {messageText}{Environment.NewLine} ({location})";
Microsoft.AspNetCore.Components (4)
Reflection\ComponentProperties.cs (4)
233$"when also used to capture unmatched values. Unmatched values:" + Environment.NewLine + 234string.Join(Environment.NewLine, unmatched.Keys)); 254$"per type can use '{nameof(ParameterAttribute)}.{nameof(ParameterAttribute.CaptureUnmatchedValues)}'. Properties:" + Environment.NewLine + 255string.Join(Environment.NewLine, propertyNames));
Microsoft.AspNetCore.Components.Analyzers (2)
ComponentParameterAnalyzer.cs (2)
130Environment.NewLine, 132Environment.NewLine,
Microsoft.AspNetCore.Components.Analyzers.Tests (2)
ComponentParameterCaptureUnmatchedValuesMustBeUniqueTest.cs (2)
45var message = @"Component type 'ConsoleApplication1.TypeName' defines properties multiple parameters with CaptureUnmatchedValues. Properties: " + Environment.NewLine + 46"ConsoleApplication1.TypeName.MyOtherProperty" + Environment.NewLine +
Microsoft.AspNetCore.Components.SdkAnalyzers (2)
ComponentParameterAnalyzer.cs (2)
117Environment.NewLine, 119Environment.NewLine,
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (2)
ComponentParameterCaptureUnmatchedValuesMustBeUniqueTest.cs (2)
45var message = @"Component type 'ConsoleApplication1.TypeName' defines properties multiple parameters with CaptureUnmatchedValues. Properties: " + Environment.NewLine + 46"ConsoleApplication1.TypeName.MyOtherProperty" + Environment.NewLine +
Microsoft.AspNetCore.Components.Server.Tests (4)
src\SignalR\common\SignalR.Common\test\Internal\Protocol\MessagePackHubProtocolTestBase.cs (4)
280Assert.True(string.Equals(actual, testData.Binary, StringComparison.Ordinal), $"Binary encoding changed from{Environment.NewLine} [{testData.Binary}]{Environment.NewLine} to{Environment.NewLine} [{actual}]{Environment.NewLine}Please verify the MsgPack output and update the baseline");
Microsoft.AspNetCore.Components.Tests (6)
ParameterViewTest.Assignment.cs (6)
386$"also used to capture unmatched values. Unmatched values:" + Environment.NewLine + 387$"test1" + Environment.NewLine + 410$"also used to capture unmatched values. Unmatched values:" + Environment.NewLine + 411$"test2" + Environment.NewLine + 431$"Properties:" + Environment.NewLine + 432$"{nameof(HasDuplicateCaptureUnmatchedValuesProperty.CaptureUnmatchedValuesProp1)}" + Environment.NewLine +
Microsoft.AspNetCore.Components.WebAssembly (2)
Services\WebAssemblyConsoleLogger.cs (2)
17private static readonly string _newLineWithMessagePadding = Environment.NewLine + _messagePadding; 124logBuilder.Replace(Environment.NewLine, _newLineWithMessagePadding, len, message.Length);
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
src\BlazorWebView\src\SharedSource\WebView2WebViewManager.cs (1)
393 string.Join(Environment.NewLine, headers.Select(kvp => $"{kvp.Key}: {kvp.Value}"));
Microsoft.AspNetCore.Components.WebView.Wpf (1)
src\BlazorWebView\src\SharedSource\WebView2WebViewManager.cs (1)
393 string.Join(Environment.NewLine, headers.Select(kvp => $"{kvp.Key}: {kvp.Value}"));
Microsoft.AspNetCore.Components.WebViewE2E.Test (2)
BasicBlazorHybridTest.cs (2)
64"Fatal exception" + Environment.NewLine + 65error.ExceptionObject.ToString() + Environment.NewLine);
Microsoft.AspNetCore.DataProtection.Tests (7)
StringLoggerFactory.cs (4)
64"Provider: {0}" + Environment.NewLine + 65"Log level: {1}" + Environment.NewLine + 66"Event id: {2}" + Environment.NewLine + 67"Exception: {3}" + Environment.NewLine +
XmlAssert.cs (3)
37"Expected element:" + Environment.NewLine 38+ expected.ToString() + Environment.NewLine 39+ "Actual element:" + Environment.NewLine
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
854return string.Join(Environment.NewLine, description);
Microsoft.AspNetCore.Diagnostics (3)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (1)
306.Split(new[] { Environment.NewLine }, StringSplitOptions.None);
src\Shared\Diagnostics\BaseView.cs (1)
293return string.Join("<br />" + Environment.NewLine,
src\Shared\RazorViews\BaseView.cs (1)
283return string.Join("<br />" + Environment.NewLine,
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (2)
src\Shared\Diagnostics\BaseView.cs (1)
293return string.Join("<br />" + Environment.NewLine,
src\Shared\RazorViews\BaseView.cs (1)
283return string.Join("<br />" + Environment.NewLine,
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
src\Grpc\JsonTranscoding\src\Shared\X509CertificateHelpers.cs (1)
117Environment.NewLine,
Microsoft.AspNetCore.Hosting (2)
Internal\HostingLoggerExtensions.cs (1)
35message = message + Environment.NewLine + ex.Message;
src\Shared\RazorViews\BaseView.cs (1)
283return string.Join("<br />" + Environment.NewLine,
Microsoft.AspNetCore.Html.Abstractions (6)
HtmlContentBuilderExtensions.cs (4)
70/// Appends an <see cref="Environment.NewLine"/>. 83/// Appends an <see cref="Environment.NewLine"/> after appending the <see cref="string"/> value. 99/// Appends an <see cref="Environment.NewLine"/> after appending the <see cref="IHtmlContent"/> value. 114/// Appends an <see cref="Environment.NewLine"/> after appending the <see cref="string"/> value.
HtmlString.cs (2)
14/// An <see cref="HtmlString"/> instance for <see cref="Environment.NewLine"/>. 16public static readonly HtmlString NewLine = new HtmlString(Environment.NewLine);
Microsoft.AspNetCore.Html.Abstractions.Tests (4)
HtmlContentBuilderExtensionsTest.cs (4)
25entry => Assert.Equal(Environment.NewLine, HtmlContentToString(entry))); 41entry => Assert.Equal(Environment.NewLine, HtmlContentToString(entry))); 58entry => Assert.Equal(Environment.NewLine, HtmlContentToString(entry))); 74entry => Assert.Equal(Environment.NewLine, HtmlContentToString(entry)));
Microsoft.AspNetCore.Http.Extensions.Tests (2)
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (2)
368newSource += Environment.NewLine; 377.Split(Environment.NewLine);
Microsoft.AspNetCore.Http.Microbenchmarks (2)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (2)
368newSource += Environment.NewLine; 377.Split(Environment.NewLine);
Microsoft.AspNetCore.HttpLogging (2)
HttpLog.cs (2)
45builder.Append(Environment.NewLine); 53builder.Append(Environment.NewLine);
Microsoft.AspNetCore.HttpLogging.Tests (15)
FileLoggerProcessorTests.cs (12)
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));
HttpLoggingMiddlewareTests.cs (3)
1280var lines = requestLog.Message.Split(Environment.NewLine); 1528var lines = Assert.Single(TestSink.Writes.Where(w => w.LogLevel >= LogLevel.Information)).Message.Split(Environment.NewLine); 1590var lines = Assert.Single(TestSink.Writes).Message.Split(Environment.NewLine);
Microsoft.AspNetCore.InternalTesting (4)
Logging\XunitLoggerProvider.cs (3)
47private static readonly string[] NewLineChars = new[] { Environment.NewLine }; 98if (message.EndsWith(Environment.NewLine, StringComparison.Ordinal)) 100message = message.Substring(0, message.Length - Environment.NewLine.Length);
xunit\AspNetTestRunner.cs (1)
102return new(totalTimeTaken, string.Join(Environment.NewLine, messages));
Microsoft.AspNetCore.InternalTesting.Tests (12)
AssemblyTestLogTests.cs (2)
392return string.Join(Environment.NewLine, input.Split(new[] { Environment.NewLine }, StringSplitOptions.None)
XunitLoggerProviderTest.cs (10)
27"| [TIMESTAMP] TestCategory Information: This is some great information" + Environment.NewLine + 28"| [TIMESTAMP] TestCategory Trace: This is some unimportant information" + Environment.NewLine; 44Assert.Equal("| [TIMESTAMP] TestCategory Error: This is a bad error" + Environment.NewLine, MakeConsistent(testTestOutputHelper.Output)); 55logger.LogInformation("This is a" + Environment.NewLine + "multi-line" + Environment.NewLine + "message"); 59"| [TIMESTAMP] TestCategory Information: This is a" + Environment.NewLine + 60"| multi-line" + Environment.NewLine + 61"| message" + Environment.NewLine; 77logger.LogInformation("This is a" + Environment.NewLine + "multi-line" + Environment.NewLine + "message");
Microsoft.AspNetCore.Mvc.Core (20)
ApiConventionTypeAttribute.cs (3)
75Environment.NewLine + string.Join(Environment.NewLine, unsupportedAttributes) + Environment.NewLine,
ApplicationModels\ApplicationModelFactory.cs (9)
166Environment.NewLine, 213Environment.NewLine, 245var message = Resources.FormatAttributeRoute_DuplicateNames(routeName, Environment.NewLine, string.Join(Environment.NewLine, descriptions)); 333Environment.NewLine, 334string.Join(Environment.NewLine, actionDescriptions)); 342Environment.NewLine, 343string.Join(Environment.NewLine + Environment.NewLine, errorMessages));
ApplicationModels\InferParameterBindingInfoConvention.cs (2)
95var parameters = string.Join(Environment.NewLine, fromBodyParameters.Select(p => p.DisplayName)); 102message += Environment.NewLine + parameters;
Infrastructure\ActionSelector.cs (2)
99Environment.NewLine, 104Environment.NewLine,
Routing\AttributeRoute.cs (4)
164Environment.NewLine + Environment.NewLine, 168Environment.NewLine, 171var message = Resources.FormatAttributeRoute_AggregateErrorMessage(Environment.NewLine, allErrors);
Microsoft.AspNetCore.Mvc.Core.Test (59)
ApiConventionMethodAttributeTest.cs (3)
147Environment.NewLine + 148string.Join(Environment.NewLine, attributes.Select(a => a.FullName)) + 149Environment.NewLine +
ApiConventionTypeAttributeTest.cs (3)
82Environment.NewLine + 83string.Join(Environment.NewLine, attributes.Select(a => a.ToString())) + 84Environment.NewLine +
ApplicationModels\ControllerActionDescriptorProviderTests.cs (28)
424"The following errors occurred with attribute routing information:" + Environment.NewLine + 425Environment.NewLine + 426"Error 1:" + Environment.NewLine + 427$"For action: '{controllerTypeInfo.FullName}.Unknown ({assemblyName})'" + Environment.NewLine + 430" a route or within a constraint, use '[[' or ']]' instead." + Environment.NewLine + 431Environment.NewLine + 432"Error 2:" + Environment.NewLine + 433$"For action: '{controllerTypeInfo.FullName}.Invalid ({assemblyName})'" + Environment.NewLine + 664"The following errors occurred with attribute routing information:" + Environment.NewLine + 665Environment.NewLine + 666"Error 1:" + Environment.NewLine + 668" must not define attribute routed actions and non attribute routed actions at the same time:" + Environment.NewLine + 671"HTTP Verbs: 'GET'" + Environment.NewLine + 673"Route Template: '(none)' - HTTP Verbs: 'DELETE, PATCH, POST, PUT'" + Environment.NewLine + 674Environment.NewLine + 706+ Environment.NewLine 707+ Environment.NewLine 709+ Environment.NewLine 712+ Environment.NewLine + 716+ Environment.NewLine 719"HTTP Verbs: ''" + Environment.NewLine + 720Environment.NewLine + 873"The following errors occurred with attribute routing information:" + Environment.NewLine + 874Environment.NewLine + 875"Error 1:" + Environment.NewLine + 876$"For action: '{controllerTypeInfo.FullName}.Get ({assemblyName})'" + Environment.NewLine + 1402.Split(new[] { Environment.NewLine }, StringSplitOptions.None) 1406.Split(new[] { Environment.NewLine }, StringSplitOptions.None)
ApplicationModels\InferParameterBindingInfoConventionTest.cs (6)
60Environment.NewLine + "TestModel a" + 61Environment.NewLine + "Car b"; 79Environment.NewLine + "TestModel a" + 80Environment.NewLine + "int b"; 98Environment.NewLine + "decimal a" + 99Environment.NewLine + "int b";
Infrastructure\ActionSelectorTest.cs (4)
506var actionNames = string.Join(Environment.NewLine, actions.Select(action => action.DisplayName)); 817"The following actions matched route data and had all constraints satisfied:" + Environment.NewLine + 818Environment.NewLine + 819"Ambiguous1" + Environment.NewLine +
Routing\AttributeRoutingTest.cs (15)
29"The following errors occurred with attribute routing information:" + Environment.NewLine + 30Environment.NewLine + 31"For action: 'InvalidTemplate'" + Environment.NewLine + 56"The following errors occurred with attribute routing information:" + Environment.NewLine + 57Environment.NewLine + 58"For action: 'DisallowedParameter'" + Environment.NewLine + 86"The following errors occurred with attribute routing information:" + Environment.NewLine + 87Environment.NewLine + 88"For action: 'DisallowedParameter1'" + Environment.NewLine + 90"Use '[foo]' in the route template to insert the value 'bleh'." + Environment.NewLine + 91Environment.NewLine + 92"For action: 'DisallowedParameter2'" + Environment.NewLine + 128"The following errors occurred with attribute routing information:" + Environment.NewLine + 129Environment.NewLine + 130"For action: 'Microsoft.AspNetCore.Mvc.Routing.AttributeRoutingTest+HomeController.Index'" + Environment.NewLine +
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (4)
XmlDataContractSerializerInputFormatterTest.cs (1)
534var inputStart = Encoding.UTF8.GetBytes("<?xml version=\"1.0\" encoding=\"UTF-8\"?>" + Environment.NewLine +
XmlDataContractSerializerOutputFormatterTest.cs (1)
690var newLine = Environment.NewLine;
XmlSerializerInputFormatterTest.cs (1)
554var inputStart = Encoding.UTF8.GetBytes("<?xml version=\"1.0\" encoding=\"UTF-8\"?>" + Environment.NewLine +
XmlSerializerOutputFormatterTest.cs (1)
74var newLine = Environment.NewLine;
Microsoft.AspNetCore.Mvc.FunctionalTests (27)
ContentNegotiationTest.cs (3)
59var expectedBody = $"{{{Environment.NewLine} \"name\": \"My name\",{Environment.NewLine}" + 60$" \"address\": \"My address\"{Environment.NewLine}}}";
HtmlGenerationTest.cs (10)
94Assert.Equal($"Vrijdag{Environment.NewLine}Month: FirstOne", response, ignoreLineEndingDifferences: true); 649"<label class=\"control-label col-md-2\" for=\"Name\">ItemName</label>" + Environment.NewLine + 650"<input id=\"Name\" name=\"Name\" type=\"text\" value=\"\" />" + Environment.NewLine + Environment.NewLine + 651"<label class=\"control-label col-md-2\" for=\"Id\">ItemNo</label>" + Environment.NewLine + 653Environment.NewLine + Environment.NewLine; 666var expected = "<label for=\"Description\">ItemDesc</label>" + Environment.NewLine + 667"<input id=\"Description\" name=\"Description\" type=\"text\" value=\"\" />" + Environment.NewLine + Environment.NewLine;
HtmlGenerationWithCultureTest.cs (2)
179throw new XunitException($"Unexpected correlation Id, reading values from document:{Environment.NewLine}{documentContent}"); 197throw new ArgumentException($"Document does not contain element that matches the selector {selector}: " + Environment.NewLine + document.DocumentElement.OuterHtml);
Infrastructure\HttpClientExtensions.cs (3)
29throw new InvalidOperationException("Response content could not be parsed as HTML: " + Environment.NewLine + content); 42string responseContent = string.Join(Environment.NewLine, response.Headers); 52throw EqualException.ForMismatchedValues(expectedStatusCode, response.StatusCode, $"Expected status code {expectedStatusCode}. Actual {response.StatusCode}. Response Content:" + Environment.NewLine + responseContent);
Infrastructure\IHtmlDocumentExtensions.cs (1)
16throw new ArgumentException($"Document does not contain element that matches the selector {selector}: " + Environment.NewLine + document.DocumentElement.OuterHtml);
Infrastructure\ResourceFile.cs (2)
133/// <remarks>Normalizes line endings to <see cref="Environment.NewLine"/>.</remarks> 173/// <remarks>Normalizes line endings to <see cref="Environment.NewLine"/>.</remarks>
RazorBuildTest.cs (1)
157await UpdateFile("/Pages/UpdateablePage.cshtml", "@page" + Environment.NewLine + "@GetType().Assembly");
RazorRuntimeCompilationHostingStartupTest.cs (1)
102await UpdateFile("/Pages/UpdateablePage.cshtml", "@page" + Environment.NewLine + "@GetType().Assembly");
SimpleTests.cs (3)
33var expected = "{" + Environment.NewLine 34+ " \"first\": \"wall\"," + Environment.NewLine 35+ " \"second\": \"floor\"" + Environment.NewLine
TempDataInCookiesTest.cs (1)
50throw new Exception($"Expected exactly one instance of TempDataSerializer based on NewtonsoftJson, but found {tempDataSerializers.Count} instance(s):" + Environment.NewLine + builder);
Microsoft.AspNetCore.Mvc.Razor (6)
ApplicationParts\RazorCompiledItemFeatureProvider.cs (2)
28var viewsDifferingInCase = string.Join(Environment.NewLine, duplicates.Select(d => d.Identifier)); 31Environment.NewLine,
RazorView.cs (4)
285locations = Environment.NewLine + string.Join(Environment.NewLine, originalLocations); 291Environment.NewLine + string.Join(Environment.NewLine, layoutPageResult.SearchedLocations);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (2)
CompilationFailedException.cs (2)
24return Resources.CompilationFailed + Environment.NewLine + 26Environment.NewLine,
Microsoft.AspNetCore.Mvc.Razor.Test (53)
ApplicationParts\RazorCompiledItemFeatureProviderTest.cs (1)
94Environment.NewLine,
RazorPageTest.cs (3)
785var expected = string.Join(Environment.NewLine, 795v.WriteLiteral("Layout start" + Environment.NewLine); 803page.BodyContent = new HtmlString("body content" + Environment.NewLine);
RazorViewTest.cs (49)
236Environment.NewLine, 249v.Write("layout-content" + Environment.NewLine); 518Environment.NewLine, 561Environment.NewLine, 604Environment.NewLine, 649var htmlEncodedNewLine = htmlEncoder.Encode(Environment.NewLine); 651Environment.NewLine + 675v.Write("layout-content" + Environment.NewLine); 677v.Write(Environment.NewLine); 679v.Write(Environment.NewLine); 757Environment.NewLine, 824Environment.NewLine, 907v.Write("NestedLayout" + Environment.NewLine); 920v.Write("BaseLayout" + Environment.NewLine); 974v.Write("NestedLayout" + Environment.NewLine); 988v.Write("BaseLayout" + Environment.NewLine); 1060Environment.NewLine + 1062Environment.NewLine + 1064Environment.NewLine + 1066Environment.NewLine + 1082v.Write("layout-1" + Environment.NewLine); 1093v.Write("layout-2" + Environment.NewLine); 1129"HtmlEncode[[layout-2" + Environment.NewLine + 1130"]]bar-content" + Environment.NewLine + 1131"HtmlEncode[[layout-1" + Environment.NewLine + 1132"]]foo-content" + Environment.NewLine + 1152v.Write("layout-1" + Environment.NewLine); 1165v.Write("layout-2" + Environment.NewLine); 1298Environment.NewLine + 1300Environment.NewLine + 1303Environment.NewLine + 1304Environment.NewLine; 1320v.Write("NestedLayout" + Environment.NewLine); 1332v.Write("BaseLayout" + Environment.NewLine); 1368Environment.NewLine + 1370Environment.NewLine + 1372Environment.NewLine + 1379v.WriteLiteral("body content" + Environment.NewLine); 1382v.WriteLiteral("section-content-1" + Environment.NewLine); 1391v.Write("layout-1" + Environment.NewLine); 1426Environment.NewLine + 1428Environment.NewLine + 1437v.WriteLiteral("section-content-1" + Environment.NewLine); 1446v.Write("layout-1" + Environment.NewLine); 1484v.WriteLiteral("before-flush" + Environment.NewLine); 1525v.Write("layout-1" + Environment.NewLine); 1706Environment.NewLine, 1719v.WriteLiteral("ViewStart1" + Environment.NewLine); 1723v.WriteLiteral("ViewStart2" + Environment.NewLine);
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\DefaultPageHandlerMethodSelector.cs (1)
52throw new InvalidOperationException(Resources.FormatAmbiguousHandler(Environment.NewLine, ambiguousMethods));
Microsoft.AspNetCore.Mvc.RazorPages.Test (5)
ApplicationModels\TempDataFilterPageApplicationModelProviderTest.cs (1)
50Environment.NewLine +
Infrastructure\DefaultPageHandlerMethodSelectorTest.cs (4)
664Environment.NewLine + Environment.NewLine + methods; 724Environment.NewLine + Environment.NewLine + methods;
Microsoft.AspNetCore.Mvc.TagHelpers (9)
AnchorTagHelper.cs (1)
209Environment.NewLine,
FormActionTagHelper.cs (1)
221Environment.NewLine,
FormTagHelper.cs (1)
228Environment.NewLine,
PartialTagHelper.cs (5)
128var locations = Environment.NewLine + string.Join(Environment.NewLine, viewSearchedLocations); 133locations = Environment.NewLine + string.Join(Environment.NewLine, result.SearchedLocations); 134errorMessage += Environment.NewLine + Resources.FormatViewEngine_FallbackViewNotFound(FallbackName, locations);
ScriptTagHelper.cs (1)
358builder.AppendHtml(Environment.NewLine)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (85)
AnchorTagHelperTest.cs (3)
550Environment.NewLine, 588Environment.NewLine, 626Environment.NewLine,
FormActionTagHelperTest.cs (4)
573Environment.NewLine, 611Environment.NewLine, 649Environment.NewLine, 687Environment.NewLine,
FormTagHelperTest.cs (3)
1066Environment.NewLine, 1100Environment.NewLine, 1134Environment.NewLine,
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") },
LinkTagHelperTest.cs (3)
838var expectedPostElement = Environment.NewLine + 892var expectedPostElement = Environment.NewLine + 951Environment.NewLine +
PartialTagHelperTest.cs (2)
572var expected = string.Join(Environment.NewLine, 704Environment.NewLine,
ScriptTagHelperTest.cs (3)
862Assert.Equal(Environment.NewLine + "<script>(isavailable()||document.write(\"JavaScriptEncode[[<script " + 894Assert.Equal(Environment.NewLine + "<script>(isavailable()||document.write(\"JavaScriptEncode[[<script " + 907Environment.NewLine +
SelectTagHelperTest.cs (17)
44var noneSelected = "<option></option>" + Environment.NewLine + 45"<option>HtmlEncode[[outer text]]</option>" + Environment.NewLine + 46"<option>HtmlEncode[[inner text]]</option>" + Environment.NewLine + 47"<option>HtmlEncode[[other text]]</option>" + Environment.NewLine; 48var innerSelected = "<option></option>" + Environment.NewLine + 49"<option>HtmlEncode[[outer text]]</option>" + Environment.NewLine + 50"<option selected=\"HtmlEncode[[selected]]\">HtmlEncode[[inner text]]</option>" + Environment.NewLine + 51"<option>HtmlEncode[[other text]]</option>" + Environment.NewLine; 52var outerSelected = "<option></option>" + Environment.NewLine + 53"<option selected=\"HtmlEncode[[selected]]\">HtmlEncode[[outer text]]</option>" + Environment.NewLine + 54"<option>HtmlEncode[[inner text]]</option>" + Environment.NewLine + 55"<option>HtmlEncode[[other text]]</option>" + Environment.NewLine; 368var expectedOptions = "<option>HtmlEncode[[0]]</option>" + Environment.NewLine 369+ "<option>HtmlEncode[[1]]</option>" + Environment.NewLine 370+ "<option>HtmlEncode[[2]]</option>" + Environment.NewLine 371+ "<option>HtmlEncode[[3]]</option>" + Environment.NewLine 372+ "<option>HtmlEncode[[4]]</option>" + Environment.NewLine;
TextAreaTagHelperTest.cs (10)
45Environment.NewLine }, 49Environment.NewLine }, 52Environment.NewLine + "HtmlEncode[[outer text]]" }, 56Environment.NewLine }, 59Environment.NewLine + "HtmlEncode[[inner text]]" }, 63Environment.NewLine }, 66Environment.NewLine + "HtmlEncode[[outer text]]" }, 70Environment.NewLine }, 73Environment.NewLine + "HtmlEncode[[inner text]]" }, 196var expectedContent = Environment.NewLine + "HtmlEncode[[model-value]]";
ValidationSummaryTagHelperTest.cs (5)
90$"Custom Content<ul><li style=\"display:none\"></li>{Environment.NewLine}</ul>", 264$"Custom Content<ul><li>{expectedError}</li>{Environment.NewLine}</ul>", 329$"Custom Content<ul><li>{expectedError0}</li>{Environment.NewLine}" + 330$"<li>{expectedError2}</li>{Environment.NewLine}</ul>", 642$"Custom Content<ul><li>{expectedError}</li>{Environment.NewLine}</ul>",
Microsoft.AspNetCore.Mvc.Test (1)
MvcServiceCollectionExtensionsTest.cs (1)
626string.Join(Environment.NewLine, serviceDescriptors.Select(sd => sd.ImplementationType)));
Microsoft.AspNetCore.Mvc.ViewFeatures (11)
Filters\SaveTempDataPropertyFilterBase.cs (1)
114throw new InvalidOperationException(string.Join(Environment.NewLine, errorMessages));
HtmlHelper.cs (4)
527locations = Environment.NewLine + string.Join(Environment.NewLine, originalLocations); 533Environment.NewLine + string.Join(Environment.NewLine, viewEngineResult.SearchedLocations);
ViewComponents\DefaultViewComponentSelector.cs (2)
100var typeNames = string.Join(Environment.NewLine, matchedTypes); 102Resources.FormatViewComponent_AmbiguousTypeMatch(name, Environment.NewLine, typeNames));
ViewEngines\ViewEngineResult.cs (4)
98locations = Environment.NewLine + string.Join(Environment.NewLine, originalLocations); 103locations += Environment.NewLine + string.Join(Environment.NewLine, SearchedLocations);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (375)
Buffers\ViewBufferTextWriterTest.cs (4)
64var newLine = Environment.NewLine; 83var newLine = Environment.NewLine; 108var newLine = Environment.NewLine; 141var newLine = Environment.NewLine;
DefaultDisplayTemplatesTest.cs (10)
47"<div class=\"HtmlEncode[[display-label]]\">HtmlEncode[[Property1]]</div>" + Environment.NewLine 49" SimpleDisplayText = p1</div>" + Environment.NewLine 50+ "<div class=\"HtmlEncode[[display-label]]\">HtmlEncode[[Prop2]]</div>" + Environment.NewLine 52" SimpleDisplayText = (null)</div>" + Environment.NewLine; 118var expected = "<div class=\"HtmlEncode[[display-label]]\">HtmlEncode[[Property1]]</div>" + Environment.NewLine + 119"<div class=\"HtmlEncode[[display-field]]\"></div>" + Environment.NewLine + 120"<div class=\"HtmlEncode[[display-label]]\">HtmlEncode[[Property3]]</div>" + Environment.NewLine + 121"<div class=\"HtmlEncode[[display-field]]\"></div>" + Environment.NewLine; 146"<div class=\"HtmlEncode[[display-label]]\">HtmlEncode[[Prop2]]</div>" + Environment.NewLine + 148" SimpleDisplayText = (null)</div>" + Environment.NewLine;
DefaultEditorTemplatesTest.cs (20)
152"<div class=\"HtmlEncode[[editor-label]]\"><label></label></div>" + Environment.NewLine 164"<div class=\"HtmlEncode[[editor-label]]\">Some string</div>" + Environment.NewLine 168"<div class=\"HtmlEncode[[editor-label]]\">Some string</div>" + Environment.NewLine 180Environment.NewLine + 184Environment.NewLine + 186Environment.NewLine + 190Environment.NewLine; 211Environment.NewLine + 215Environment.NewLine + 217Environment.NewLine + 221Environment.NewLine; 248Environment.NewLine + 252Environment.NewLine; 343Environment.NewLine + 346Environment.NewLine + 348Environment.NewLine + 351Environment.NewLine; 377Environment.NewLine + 382Environment.NewLine; 499Environment.NewLine +
Filters\TempDataApplicationModelProviderTest.cs (1)
52Environment.NewLine +
PartialViewResultTest.cs (3)
67Environment.NewLine, 105Environment.NewLine, 143Environment.NewLine,
Rendering\HtmlHelperDisplayExtensionsTest.cs (2)
17var expected = $"<div class=\"HtmlEncode[[display-label]]\">HtmlEncode[[SomeProperty]]</div>{Environment.NewLine}" + 18$"<div class=\"HtmlEncode[[display-field]]\">HtmlEncode[[PropValue]]</div>{Environment.NewLine}";
Rendering\HtmlHelperDropDownListExtensionsTest.cs (27)
25"<option value=\"HtmlEncode[[0]]\">HtmlEncode[[Zero]]</option>" + Environment.NewLine + 26"<option value=\"HtmlEncode[[1]]\">HtmlEncode[[One]]</option>" + Environment.NewLine + 27"<option value=\"HtmlEncode[[2]]\">HtmlEncode[[Two]]</option>" + Environment.NewLine + 28"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[3]]\">HtmlEncode[[Three]]</option>" + Environment.NewLine + 48"<option value=\"\">HtmlEncode[[--select--]]</option>" + Environment.NewLine + 49"<option value=\"HtmlEncode[[0]]\">HtmlEncode[[Zero]]</option>" + Environment.NewLine + 50"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[1]]\">HtmlEncode[[One]]</option>" + Environment.NewLine + 51"<option value=\"HtmlEncode[[2]]\">HtmlEncode[[Two]]</option>" + Environment.NewLine + 52"<option value=\"HtmlEncode[[3]]\">HtmlEncode[[Three]]</option>" + Environment.NewLine + 72"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[4]]\">HtmlEncode[[Four]]</option>" + Environment.NewLine + 73"<option value=\"HtmlEncode[[5]]\">HtmlEncode[[Five]]</option>" + Environment.NewLine + 97"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[4]]\">HtmlEncode[[Four]]</option>" + Environment.NewLine + 98"<option value=\"HtmlEncode[[5]]\">HtmlEncode[[Five]]</option>" + Environment.NewLine + 123"<option value=\"\">HtmlEncode[[--select--]]</option>" + Environment.NewLine + 124"<option value=\"HtmlEncode[[4]]\">HtmlEncode[[Four]]</option>" + Environment.NewLine + 125"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[5]]\">HtmlEncode[[Five]]</option>" + Environment.NewLine + 149"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[0]]\">HtmlEncode[[Zero]]</option>" + Environment.NewLine + 150"<option value=\"HtmlEncode[[1]]\">HtmlEncode[[One]]</option>" + Environment.NewLine + 151"<option value=\"HtmlEncode[[2]]\">HtmlEncode[[Two]]</option>" + Environment.NewLine + 152"<option value=\"HtmlEncode[[3]]\">HtmlEncode[[Three]]</option>" + Environment.NewLine + 172"<option value=\"HtmlEncode[[4]]\">HtmlEncode[[Four]]</option>" + Environment.NewLine + 173"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[5]]\">HtmlEncode[[Five]]</option>" + Environment.NewLine + 198"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[4]]\">HtmlEncode[[Four]]</option>" + Environment.NewLine + 199"<option value=\"HtmlEncode[[5]]\">HtmlEncode[[Five]]</option>" + Environment.NewLine + 223"<option value=\"\">HtmlEncode[[--select--]]</option>" + Environment.NewLine + 224"<option value=\"HtmlEncode[[4]]\">HtmlEncode[[Four]]</option>" + Environment.NewLine + 225"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[5]]\">HtmlEncode[[Five]]</option>" + Environment.NewLine +
Rendering\HtmlHelperListBoxExtensionsTest.cs (16)
25"<option value=\"HtmlEncode[[0]]\">HtmlEncode[[Zero]]</option>" + Environment.NewLine + 26"<option value=\"HtmlEncode[[1]]\">HtmlEncode[[One]]</option>" + Environment.NewLine + 27"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[2]]\">HtmlEncode[[Two]]</option>" + Environment.NewLine + 28"<option value=\"HtmlEncode[[3]]\">HtmlEncode[[Three]]</option>" + Environment.NewLine + 48"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[4]]\">HtmlEncode[[Four]]</option>" + Environment.NewLine + 49"<option value=\"HtmlEncode[[5]]\">HtmlEncode[[Five]]</option>" + Environment.NewLine + 73"<option value=\"HtmlEncode[[4]]\">HtmlEncode[[Four]]</option>" + Environment.NewLine + 74"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[5]]\">HtmlEncode[[Five]]</option>" + Environment.NewLine + 98"<option value=\"HtmlEncode[[0]]\">HtmlEncode[[Zero]]</option>" + Environment.NewLine + 99"<option value=\"HtmlEncode[[1]]\">HtmlEncode[[One]]</option>" + Environment.NewLine + 100"<option value=\"HtmlEncode[[2]]\">HtmlEncode[[Two]]</option>" + Environment.NewLine + 101"<option value=\"HtmlEncode[[3]]\">HtmlEncode[[Three]]</option>" + Environment.NewLine + 120"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[4]]\">HtmlEncode[[Four]]</option>" + Environment.NewLine + 121"<option selected=\"HtmlEncode[[selected]]\" value=\"HtmlEncode[[5]]\">HtmlEncode[[Five]]</option>" + Environment.NewLine + 145"<option value=\"HtmlEncode[[4]]\">HtmlEncode[[Four]]</option>" + Environment.NewLine + 146"<option value=\"HtmlEncode[[5]]\">HtmlEncode[[Five]]</option>" + Environment.NewLine +
Rendering\HtmlHelperPartialExtensionsTest.cs (16)
401Environment.NewLine + 402"location1" + Environment.NewLine + 430Environment.NewLine + 431"location1" + Environment.NewLine + 459Environment.NewLine + 460"location1" + Environment.NewLine + 461"location2" + Environment.NewLine + 462"location3" + Environment.NewLine + 490Environment.NewLine + 491"location1" + Environment.NewLine + 519Environment.NewLine + 520"location1" + Environment.NewLine + 548Environment.NewLine + 549"location1" + Environment.NewLine + 550"location2" + Environment.NewLine + 551"location3" + Environment.NewLine +
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 }" +
Rendering\HtmlHelperTextAreaExtensionsTest.cs (7)
29"<textarea id=\"HtmlEncode[[Property1]]\" name=\"HtmlEncode[[Property1]]\">" + Environment.NewLine + 48"<textarea id=\"HtmlEncode[[Property1]]\" name=\"HtmlEncode[[Property1]]\">" + Environment.NewLine + 67"<textarea id=\"HtmlEncode[[Property1]]\" name=\"HtmlEncode[[Property1]]\">" + Environment.NewLine + 87Environment.NewLine + 107Environment.NewLine + 124"name=\"HtmlEncode[[Property1]]\" rows=\"HtmlEncode[[1]]\">" + Environment.NewLine + 141"name=\"HtmlEncode[[Property1]]\" rows=\"HtmlEncode[[1]]\">" + Environment.NewLine +
Rendering\HtmlHelperTextAreaTest.cs (6)
49"<textarea id=\"HtmlEncode[[pre_Property3_key_]]\" name=\"HtmlEncode[[pre.Property3[key]]]\">" + Environment.NewLine + 54"<textarea id=\"HtmlEncode[[pre_Property4_Property5]]\" name=\"HtmlEncode[[pre.Property4.Property5]]\">" + Environment.NewLine + 59"<textarea id=\"HtmlEncode[[pre_Property4_Property6_0_]]\" name=\"HtmlEncode[[pre.Property4.Property6[0]]]\">" + Environment.NewLine + 96"<textarea id=\"HtmlEncode[[pre_Property3_key_]]\" name=\"HtmlEncode[[pre.Property3[key]]]\">" + Environment.NewLine + 101"<textarea id=\"HtmlEncode[[pre_Property4_Property5]]\" name=\"HtmlEncode[[pre.Property4.Property5]]\">" + Environment.NewLine + 106"<textarea id=\"HtmlEncode[[pre_Property4_Property6_0_]]\" name=\"HtmlEncode[[pre.Property4.Property6[0]]]\">" + Environment.NewLine +
Rendering\HtmlHelperValidationSummaryTest.cs (84)
26"<ul><li style=\"display:none\"></li>" + Environment.NewLine + 30"<li style=\"display:none\"></li>" + Environment.NewLine + 33"<span>HtmlEncode[[This is my message]]</span>" + Environment.NewLine + 34"<ul><li style=\"display:none\"></li>" + Environment.NewLine + 37"<h3>HtmlEncode[[This is my message]]</h3>" + Environment.NewLine + 38"<ul><li style=\"display:none\"></li>" + Environment.NewLine + 42"<span>HtmlEncode[[This is my message]]</span>" + Environment.NewLine + 43"<ul><li style=\"display:none\"></li>" + Environment.NewLine + 47"<h3>HtmlEncode[[This is my message]]</h3>" + Environment.NewLine + 48"<ul><li style=\"display:none\"></li>" + Environment.NewLine + 75"<li>HtmlEncode[[This is my validation message]]</li>" + Environment.NewLine + 78"<li>HtmlEncode[[This is my validation message]]</li>" + Environment.NewLine + 97"<li>HtmlEncode[[This is an error for the model root.]]</li>" + Environment.NewLine + 98"<li>HtmlEncode[[This is another error for the model root.]]</li>" + Environment.NewLine + 101"<li>HtmlEncode[[This is an error for Property3.]]</li>" + Environment.NewLine + 104"<li>HtmlEncode[[This is an error for Property2.]]</li>" + Environment.NewLine + 105"<li>HtmlEncode[[This is another error for Property2.]]</li>" + Environment.NewLine + 106"<li>HtmlEncode[[The value '' is not valid for Property2.]]</li>" + Environment.NewLine + 107"<li>HtmlEncode[[This is an error for Property3.OrderedProperty3.]]</li>" + Environment.NewLine + 108"<li>HtmlEncode[[This is an error for Property3.OrderedProperty2.]]</li>" + Environment.NewLine + 109"<li>HtmlEncode[[This is an error for Property3.Property2.]]</li>" + Environment.NewLine + 110"<li>HtmlEncode[[This is an error for Property3.]]</li>" + Environment.NewLine + 111"<li>HtmlEncode[[This is an error for the model root.]]</li>" + Environment.NewLine + 112"<li>HtmlEncode[[This is another error for the model root.]]</li>" + Environment.NewLine + 302"<li>HtmlEncode[[New error for Property2.]]</li>" + Environment.NewLine + 303"<li>HtmlEncode[[This is an error for Property3.OrderedProperty3.]]</li>" + Environment.NewLine + 304"<li>HtmlEncode[[This is an error for Property3.Property2.]]</li>" + Environment.NewLine + 305"<li>HtmlEncode[[This is an error for the model root.]]</li>" + Environment.NewLine + 306"<li>HtmlEncode[[This is another error for the model root.]]</li>" + Environment.NewLine + 332"<li>HtmlEncode[[This is an error for Property2.]]</li>" + Environment.NewLine + 333"<li>HtmlEncode[[This is another error for Property2.]]</li>" + Environment.NewLine + 334"<li>HtmlEncode[[The value '' is not valid for Property2.]]</li>" + Environment.NewLine + 335"<li>HtmlEncode[[This is an error for Property3.OrderedProperty3.]]</li>" + Environment.NewLine + 336"<li>HtmlEncode[[This is an error for Property3.OrderedProperty2.]]</li>" + Environment.NewLine + 337"<li>HtmlEncode[[This is an error for Property3.Property2.]]</li>" + Environment.NewLine + 338"<li>HtmlEncode[[This is an error for Property3.]]</li>" + Environment.NewLine + 339"<li>HtmlEncode[[This is an error for the model root.]]</li>" + Environment.NewLine + 340"<li>HtmlEncode[[This is another error for the model root.]]</li>" + Environment.NewLine + 341"<li>HtmlEncode[[non-existent-error1]]</li>" + Environment.NewLine + 342"<li>HtmlEncode[[non-existent-error2]]</li>" + Environment.NewLine + 343"<li>HtmlEncode[[non-existent-error3]]</li>" + Environment.NewLine + 368"<li>HtmlEncode[[Property1 error]]</li>" + Environment.NewLine + 369"<li>HtmlEncode[[Property2[0].OrderedProperty1 error]]</li>" + Environment.NewLine + 370"<li>HtmlEncode[[Property2[0].Property1 error]]</li>" + Environment.NewLine + 371"<li>HtmlEncode[[Property2[2].Property3 error]]</li>" + Environment.NewLine + 372"<li>HtmlEncode[[Property2[10].Property2 error]]</li>" + Environment.NewLine + 398"<li>HtmlEncode[[[0].OrderedProperty2 error]]</li>" + Environment.NewLine + 399"<li>HtmlEncode[[[0].OrderedProperty1 error]]</li>" + Environment.NewLine + 400"<li>HtmlEncode[[[0].Property1 error]]</li>" + Environment.NewLine + 401"<li>HtmlEncode[[[2].OrderedProperty3 error]]</li>" + Environment.NewLine + 402"<li>HtmlEncode[[[2].Property3 error]]</li>" + Environment.NewLine + 428"<li>HtmlEncode[[[0].OrderedProperty2 error]]</li>" + Environment.NewLine + 429"<li>HtmlEncode[[[0].OrderedProperty1 error]]</li>" + Environment.NewLine + 430"<li>HtmlEncode[[[0].Property1 error]]</li>" + Environment.NewLine + 431"<li>HtmlEncode[[[2].OrderedProperty3 error]]</li>" + Environment.NewLine + 432"<li>HtmlEncode[[[2].Property3 error]]</li>" + Environment.NewLine + 433"<li>HtmlEncode[[OrderedProperty1 error]]</li>" + Environment.NewLine + 434"<li>HtmlEncode[[OrderedProperty2 error]]</li>" + Environment.NewLine + 462"<li>HtmlEncode[[This is an error for OrderedProperty3.]]</li>" + Environment.NewLine + 463"<li>HtmlEncode[[This is an error for OrderedProperty2.]]</li>" + Environment.NewLine + 464"<li>HtmlEncode[[This is another error for OrderedProperty2.]]</li>" + Environment.NewLine + 465"<li>HtmlEncode[[This is yet-another error for OrderedProperty2.]]</li>" + Environment.NewLine + 466"<li>HtmlEncode[[This is an error for OrderedProperty1.]]</li>" + Environment.NewLine + 467"<li>HtmlEncode[[This is an error for Property3.]]</li>" + Environment.NewLine + 468"<li>HtmlEncode[[This is an error for Property1.]]</li>" + Environment.NewLine + 469"<li>HtmlEncode[[This is another error for Property1.]]</li>" + Environment.NewLine + 470"<li>HtmlEncode[[This is an error for Property2.]]</li>" + Environment.NewLine + 471"<li>HtmlEncode[[This is another error for Property2.]]</li>" + Environment.NewLine + 472"<li>HtmlEncode[[This is an error for LastProperty.]]</li>" + Environment.NewLine + 503"<ul><li>HtmlEncode[[Error for Property1]]</li>" + Environment.NewLine + 535"<span>HtmlEncode[[Custom Message]]</span>" + Environment.NewLine + 536"<ul><li>HtmlEncode[[Error for Property1]]</li>" + Environment.NewLine + 554"<div>HtmlEncode[[Custom Message]]</div>" + Environment.NewLine + 555"<ul><li>HtmlEncode[[Error for Property1]]</li>" + Environment.NewLine + 574Environment.NewLine + 575"<ul><li>HtmlEncode[[Error for root]]</li>" + Environment.NewLine + 593"<span>HtmlEncode[[Custom Message]]</span>" + Environment.NewLine + 594"<ul><li>HtmlEncode[[Error for Property1]]</li>" + Environment.NewLine + 612"<div>HtmlEncode[[Custom Message]]</div>" + Environment.NewLine + 613"<ul><li>HtmlEncode[[Error for Property1]]</li>" + Environment.NewLine + 632Environment.NewLine + 633"<ul><li>HtmlEncode[[Error for root]]</li>" + Environment.NewLine + 655Environment.NewLine + 656"<ul><li>HtmlEncode[[Error for root]]</li>" + Environment.NewLine +
ViewComponents\DefaultViewComponentSelectorTest.cs (4)
97"The view component name 'Ambiguous' matched multiple types:" + Environment.NewLine + 99"Name: 'Namespace1.Ambiguous'" + Environment.NewLine + 118$"The view component name '{name}' matched multiple types:" + Environment.NewLine + 120"Name: 'Ambiguous.Name'" + Environment.NewLine +
ViewComponents\ViewViewComponentResultTest.cs (4)
145var expected = string.Join(Environment.NewLine, 183var expected = string.Join(Environment.NewLine, 221var expected = string.Join(Environment.NewLine, 379var expected = string.Join(Environment.NewLine,
ViewResultTest.cs (3)
77Environment.NewLine, 115Environment.NewLine, 155Environment.NewLine,
Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests (1)
SnapshotTestHelper.cs (1)
72throw new InvalidOperationException($"Failed to compile class library {classLibrary.Key}: {string.Join(Environment.NewLine, emitResult.Diagnostics)}");
Microsoft.AspNetCore.Routing (7)
EndpointMiddleware.cs (3)
108Environment.NewLine + 116Environment.NewLine + 124Environment.NewLine +
Matching\CandidateSet.cs (2)
350$"The following endpoints were found with the same priority:" + Environment.NewLine + 351string.Join(Environment.NewLine, duplicates.Select(e => e.DisplayName));
Matching\DefaultEndpointSelector.cs (2)
122Environment.NewLine, 123string.Join(Environment.NewLine, matches.Select(e => e.DisplayName)));
Microsoft.AspNetCore.Routing.FunctionalTests (3)
EndpointRoutingIntegrationTest.cs (2)
20Environment.NewLine + 25Environment.NewLine +
MinimalFormTests.cs (1)
211Environment.NewLine +
Microsoft.AspNetCore.Routing.Tests (17)
EndpointMiddlewareTest.cs (4)
100Environment.NewLine + 129Environment.NewLine + 226Environment.NewLine + 323Environment.NewLine +
EndpointNameAddressSchemeTest.cs (1)
173Assert.Equal(String.Join(Environment.NewLine, @"The following endpoints with a duplicate endpoint name were found.",
Internal\DfaGraphWriterTest.cs (6)
33Assert.Equal(String.Join(Environment.NewLine, @"digraph DFA {", 35"}") + Environment.NewLine, writer.ToString()); 56Assert.Equal(String.Join(Environment.NewLine, @"digraph DFA {", 58@"}") + Environment.NewLine, writer.ToString()); 80Assert.Equal(String.Join(Environment.NewLine, @"digraph DFA {", 86@"}") + Environment.NewLine, sdf);
Matching\CandidateSetTest.cs (2)
325Environment.NewLine + 327Environment.NewLine +
Matching\DefaultEndpointSelectorTest.cs (3)
165@"The request matched multiple endpoints. Matches: " + Environment.NewLine + Environment.NewLine + 166"test: /test2" + Environment.NewLine + "test: /test3", ex.Message);
Tree\LinkGenerationDecisionTreeTest.cs (1)
725var newLine = Environment.NewLine;
Microsoft.AspNetCore.Server.IIS (1)
src\Shared\RazorViews\BaseView.cs (1)
283return string.Join("<br />" + Environment.NewLine,
Microsoft.AspNetCore.Server.IntegrationTesting (6)
Deployers\NginxDeployer.cs (3)
153Logger.LogTrace($"Config File Content:{Environment.NewLine}===START CONFIG==={Environment.NewLine}{{configContent}}{Environment.NewLine}===END CONFIG===", DeploymentParameters.ServerConfigTemplateContent);
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (3)
183Logger.LogTrace($"Config File Content:{Environment.NewLine}===START CONFIG==={Environment.NewLine}{{configContent}}{Environment.NewLine}===END CONFIG===", webConfig.ToString());
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
854return string.Join(Environment.NewLine, description);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (13)
DiagnosticMemoryPoolTests.cs (4)
117Assert.Equal($"Cannot access a disposed object.{Environment.NewLine}Object name: 'MemoryPoolBlock'.", exception.Message); 132Assert.Equal($"Cannot access a disposed object.{Environment.NewLine}Object name: 'MemoryPoolBlock'.", exception.Message); 154Assert.Equal($"Cannot access a disposed object.{Environment.NewLine}Object name: 'MemoryPoolBlock'.", ode.Message); 171Assert.Equal($"Cannot access a disposed object.{Environment.NewLine}Object name: 'MemoryPoolBlock'.", exception.Message);
LoggingStreamTests.cs (1)
39Assert.Equal($"Write[{bufferLength}]{Environment.NewLine}{expectedOutput}", mockLogger.Logs);
MemoryPoolTests.cs (1)
47Assert.Equal($"Cannot access a disposed object.{Environment.NewLine}Object name: 'MemoryPool'.", exception.Message);
src\Servers\Kestrel\shared\test\StreamBackedTestConnection.cs (7)
119throw new TimeoutException($"Did not receive a complete response within {Timeout}.{Environment.NewLine}{Environment.NewLine}" + 120$"Expected:{Environment.NewLine}{expected}{Environment.NewLine}{Environment.NewLine}" + 121$"Actual:{Environment.NewLine}{new string(actual, 0, offset)}{Environment.NewLine}",
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
InMemoryTransportBenchmark.cs (1)
79throw new InvalidOperationException(string.Join(Environment.NewLine,
NamedPipesTransportBenchmark.cs (1)
81throw new InvalidOperationException(string.Join(Environment.NewLine,
Microsoft.AspNetCore.SignalR.Common.Tests (4)
Internal\Protocol\MessagePackHubProtocolTestBase.cs (4)
280Assert.True(string.Equals(actual, testData.Binary, StringComparison.Ordinal), $"Binary encoding changed from{Environment.NewLine} [{testData.Binary}]{Environment.NewLine} to{Environment.NewLine} [{actual}]{Environment.NewLine}Please verify the MsgPack output and update the baseline");
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (4)
Docker.cs (4)
132output = output.Trim().Replace(Environment.NewLine, ""); 166throw new Exception($"Command '{fileName} {arguments}' failed with exit code '{exitCode}'. Output:{Environment.NewLine}{output}"); 180output = string.Join(Environment.NewLine, lines.ToArray()); 189output = string.Join(Environment.NewLine, lines);
Microsoft.AspNetCore.SignalR.Tests (4)
NativeAotTests.cs (4)
420"Provider: {0}" + Environment.NewLine + 421"Log level: {1}" + Environment.NewLine + 422"Event id: {2}" + Environment.NewLine + 423"Exception: {3}" + Environment.NewLine +
Microsoft.AspNetCore.SignalR.Tests.Utils (8)
src\Shared\SignalR\InProcessTestServer.cs (3)
123throw new TimeoutException($"Timed out waiting for application to start.{Environment.NewLine}Startup Logs:{Environment.NewLine}{RenderLogs(logs)}"); 148foreach (var line in message.Split(new[] { Environment.NewLine }, StringSplitOptions.None))
src\Shared\SignalR\VerifyNoErrorScope.cs (5)
46errorMessage += Environment.NewLine; 47errorMessage += string.Join(Environment.NewLine, results.Select(record => 54lineMessage += Environment.NewLine; 56lineMessage += Environment.NewLine; 58lineMessage += Environment.NewLine;
Microsoft.AspNetCore.SpaServices.Extensions.Tests (1)
ListLoggerFactory.cs (1)
87TestOutputHelper?.WriteLine(message + Environment.NewLine);
Microsoft.AspNetCore.TestHost.Tests (2)
HttpContextBuilderTests.cs (2)
126var bytes = Encoding.UTF8.GetBytes("BodyStarted" + Environment.NewLine); 153await c.Response.WriteAsync("BodyStarted" + Environment.NewLine);
Microsoft.AspNetCore.WebSockets.ConformanceTests (1)
Autobahn\AutobahnTester.cs (1)
123Assert.True(failures.Length == 0, "Autobahn results did not meet expectations:" + Environment.NewLine + failures.ToString());
Microsoft.Build (29)
BackEnd\Components\Communications\NodeLauncher.cs (1)
126"Failed to launch node from {0}. CommandLine: {1}" + Environment.NewLine + "{2}",
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (4)
231message += Environment.NewLine + "This is an unhandled exception from a task -- PLEASE OPEN A BUG AGAINST THE TASK OWNER."; 235message += Environment.NewLine + exception.ToString(); 265message += Environment.NewLine + "This is an unhandled exception from a task -- PLEASE OPEN A BUG AGAINST THE TASK OWNER."; 270message += Environment.NewLine + exception.ToString();
BackEnd\Components\SdkResolution\SdkResolverService.cs (4)
256loggingContext.LogError(new BuildEventFileInfo(sdkReferenceLocation), "SingleResolverFailedToResolveSDK", sdk.Name, resolvers[0].Name, string.Join(Environment.NewLine, errors)); 261loggingContext.LogError(new BuildEventFileInfo(sdkReferenceLocation), "FailedToResolveSDK", sdk.Name, string.Join($"{Environment.NewLine} ", errors)); 384string resultWarnings = result.Warnings?.Any() == true ? string.Join(Environment.NewLine, result.Warnings) : "null"; 385string resultErrors = result.Errors?.Any() == true ? string.Join(Environment.NewLine, result.Errors) : "null";
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
988Environment.NewLine + e.InnerException);
BuildCheck\Infrastructure\BuildCheckBuildEventHandler.cs (4)
173checkContext.DispatchAsCommentFromText(MessageImportance.Low, $"BuildCheck run times{Environment.NewLine}"); 182=> title + Environment.NewLine + String.Join(Environment.NewLine, rowData.Select(a => $"{a.Key},{a.Value}")) + Environment.NewLine;
Construction\ProjectElementContainer.cs (2)
568var leadingWhitespaceNode = XmlDocument.CreateWhitespace(Environment.NewLine + parentIndentation + DEFAULT_INDENT); 569var trailingWhiteSpaceNode = XmlDocument.CreateWhitespace(Environment.NewLine + parentIndentation);
ExceptionHandling.cs (3)
396builder.Append(Environment.NewLine); 399builder.Append(Environment.NewLine); 401builder.Append(Environment.NewLine);
Instance\TaskFactories\AssemblyTaskFactory.cs (2)
285ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName, loadInfo.AssemblyLocation, Environment.NewLine + e.InnerException.ToString()); 436ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName, _loadedType.Assembly.AssemblyLocation, Environment.NewLine + e.InnerException.ToString());
Instance\TaskRegistry.cs (1)
1527ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskFactoryLoadFailure", TaskFactoryAttributeName, taskFactoryLoadInfo.AssemblyLocation, Environment.NewLine + e.InnerException.ToString());
Logging\BaseConsoleLogger.cs (1)
143WriteHandler(Environment.NewLine);
Logging\OptimizedStringIndenter.cs (3)
64int indentedStringLength = segments.Length * (Environment.NewLine.Length + indent); 86Environment.NewLine.CopyTo(output); 87output = output.Slice(Environment.NewLine.Length);
Logging\ParallelLogger\ConsoleOutputAligner.cs (1)
59int estimatedCapacity = message.Length + ((prefixAlreadyWritten ? 0 : prefixWidth) + Environment.NewLine.Length) * (message.Length / averageLineLength + 1);
TaskLoggingHelper.cs (2)
952message += Environment.NewLine + exception.StackTrace; 1289message += Environment.NewLine + exception.StackTrace;
Microsoft.Build.BuildCheck.UnitTests (2)
EndToEndTests.cs (2)
142$"Resource for culture {culture} was {(isResourceExpected ? "not " : "")}found in deps.json:{Environment.NewLine}{output.DepsJsonResources.ToString()}"); 147$"Unexpected resource for culture {culture} was found in deps.json:{Environment.NewLine}{output.DepsJsonResources.ToString()}");
Microsoft.Build.CommandLine.UnitTests (3)
CommandLineSwitches_Tests.cs (1)
1548string[] helpMessageLines = item.Value.Split(new[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries);
XMake_Tests.cs (2)
565output.EndsWith(Environment.NewLine).ShouldBeTrue(); 609output.EndsWith(Environment.NewLine).ShouldBeFalse();
Microsoft.Build.Engine.OM.UnitTests (6)
Construction\WhiteSpacePreservation_Tests.cs (1)
503if (Environment.NewLine.Length == 2)
Definition\Project_Tests.cs (2)
94<PropertyGroup><NewLine>" + Environment.NewLine + Environment.NewLine + "</NewLine></PropertyGroup>" +
ExceptionHandling.cs (3)
396builder.Append(Environment.NewLine); 399builder.Append(Environment.NewLine); 401builder.Append(Environment.NewLine);
Microsoft.Build.Engine.UnitTests (141)
BackEnd\LoggingServicesLogMethod_Tests.cs (2)
1326message += Environment.NewLine + "This is an unhandled exception from a task -- PLEASE OPEN A BUG AGAINST THE TASK OWNER."; 1330message += Environment.NewLine + exception.ToString();
BackEnd\RedirectConsoleWriter_Tests.cs (1)
27sb.ToString().ShouldBe($"Line 1{Environment.NewLine}Line 2");
BackEnd\SdkResolverService_Tests.cs (1)
68_logger.Errors[0].Message.ShouldBe(ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("FailedToResolveSDK", "notfound", string.Join($"{Environment.NewLine} ", new[] {
BinaryLogger_Tests.cs (4)
260$"Buffers starting at position {readCount} differ. First:{Environment.NewLine}{string.Join(",", bytes1)}{Environment.NewLine}Second:{Environment.NewLine}{string.Join(",", bytes2)}"); 477TransientTestFile testFile = testFolder.CreateFile(testFileName, string.Join(Environment.NewLine, new[] { "123", "456" }));
ConsoleLogger_Tests.cs (96)
630console.ToString().ShouldBe(message + Environment.NewLine); 691console.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>"); 695console.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>"); 702console.ToString().ShouldMatch($@"<{expectedColor}>{Regex.Escape(file)}\({lineNumber}\): {subcategory} {expectedMessageType} {code}: {message}{Environment.NewLine}<reset color>"); 820"<cyan>" + BaseConsoleLogger.projectSeparatorLine + Environment.NewLine + 821ResourceUtilities.FormatResourceStringStripCodeAndKeyword("ProjectStartedPrefixForTopLevelProjectWithDefaultTargets", "fname") + Environment.NewLine + Environment.NewLine + 822"<reset color><red>file.vb(42): VBC error 31415: Some long message" + Environment.NewLine + 823"<reset color><cyan>pf" + Environment.NewLine + 828sc.ToString().ShouldBe("<red>file.vb(42): VBC error 31415: Some long message" + Environment.NewLine + "<reset color>"); 897"<cyan>" + BaseConsoleLogger.projectSeparatorLine + Environment.NewLine + 898ResourceUtilities.FormatResourceStringStripCodeAndKeyword("ProjectStartedPrefixForTopLevelProjectWithDefaultTargets", "fname") + Environment.NewLine + Environment.NewLine + 899"<reset color><yellow>file.vb(42): VBC warning 31415: Some long message" + Environment.NewLine + 900"<reset color><cyan>pf" + Environment.NewLine + 905sc.ToString().ShouldBe("<yellow>file.vb(42): VBC warning 31415: Some long message" + Environment.NewLine + "<reset color>"); 1029"<cyan>" + BaseConsoleLogger.projectSeparatorLine + Environment.NewLine + 1030ResourceUtilities.FormatResourceStringStripCodeAndKeyword("ProjectStartedPrefixForTopLevelProjectWithDefaultTargets", "fname") + Environment.NewLine + Environment.NewLine + 1031"<reset color><red>file.vb(42): VBC error 31415: Some long message" + Environment.NewLine + 1032"<reset color><cyan>pf" + Environment.NewLine + 1037sc.ToString().ShouldBe("<red>file.vb(42): VBC error 31415: Some long message" + Environment.NewLine + "<reset color>"); 1105"<cyan>" + BaseConsoleLogger.projectSeparatorLine + Environment.NewLine + 1106ResourceUtilities.FormatResourceStringStripCodeAndKeyword("ProjectStartedPrefixForTopLevelProjectWithDefaultTargets", "fname") + Environment.NewLine + Environment.NewLine + 1107"<reset color><yellow>file.vb(42): VBC warning 31415: Some long message" + Environment.NewLine + 1108"<reset color><cyan>pf" + Environment.NewLine + 1113sc.ToString().ShouldBe("<yellow>file.vb(42): VBC warning 31415: Some long message" + Environment.NewLine + "<reset color>"); 1181"<cyan>" + BaseConsoleLogger.projectSeparatorLine + Environment.NewLine + 1182ResourceUtilities.FormatResourceStringStripCodeAndKeyword("ProjectStartedPrefixForTopLevelProjectWithDefaultTargets", "fname") + Environment.NewLine + Environment.NewLine + 1183"<reset color><yellow>file.vb(42): VBC warning 31415: Some long message" + Environment.NewLine + 1184"<reset color><cyan>pf" + Environment.NewLine + 1189sc.ToString().ShouldBe("<yellow>file.vb(42): VBC warning 31415: Some long message" + Environment.NewLine + "<reset color>"); 1203ss.ShouldBe($"foo{Environment.NewLine}"); 1217ss.ShouldBe($" foo{Environment.NewLine} bar{Environment.NewLine} baz{Environment.NewLine} {Environment.NewLine}"); 1229ss.ShouldBe($"foo{Environment.NewLine}bar{Environment.NewLine}baz{Environment.NewLine}{Environment.NewLine}"); 1243ss.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}"); 1276"<cyan>" + BaseConsoleLogger.projectSeparatorLine + Environment.NewLine + 1277ResourceUtilities.FormatResourceStringStripCodeAndKeyword("ProjectStartedPrefixForTopLevelProjectWithDefaultTargets", "fname1") + Environment.NewLine + 1278Environment.NewLine + "<reset color>" + 1279"<cyan>" + BaseConsoleLogger.projectSeparatorLine + Environment.NewLine + 1280ResourceUtilities.FormatResourceStringStripCodeAndKeyword("ProjectStartedPrefixForNestedProjectWithDefaultTargets", "fname1", "fname2") + Environment.NewLine + 1281Environment.NewLine + "<reset color>" + 1283Environment.NewLine + "<reset color>"); 1303sc.ToString().ShouldBe("<cyan>" + BaseConsoleLogger.projectSeparatorLine + Environment.NewLine + 1304ResourceUtilities.FormatResourceStringStripCodeAndKeyword("ProjectStartedPrefixForTopLevelProjectWithDefaultTargets", "fname1") + Environment.NewLine + 1305Environment.NewLine + "<reset color>"); 1319"<cyan>" + ResourceUtilities.FormatResourceStringStripCodeAndKeyword("TargetStartedPrefix", "tarname") + Environment.NewLine + "<reset color>" 1321+ Environment.NewLine + 1322" " + ResourceUtilities.FormatResourceStringStripCodeAndKeyword("ProjectStartedPrefixForNestedProjectWithDefaultTargets", "fname1", "fname2") + Environment.NewLine + 1323Environment.NewLine + "<reset color>"); 1348sc.ToString().ShouldStartWith("<green>" + Environment.NewLine + "bf" + 1349Environment.NewLine + "<reset color>" + 1351Environment.NewLine + "<reset color>" + 1353Environment.NewLine + "<reset color>" + 1354Environment.NewLine); 1377sc.ToString().ShouldBe($"msg{Environment.NewLine}"); 1644message = message.Replace("\r\n", "\n").Replace("\n", Environment.NewLine); 1687item1spec = "spec" + Environment.NewLine; 1688item2spec = "spec2" + Environment.NewLine; 1689item3spec = "(spec;3" + Environment.NewLine; 1690item3metadatum = "f)oo = !@#" + Environment.NewLine; 1697item1spec = Environment.NewLine + " spec" + Environment.NewLine; 1698item2spec = Environment.NewLine + " spec2" + Environment.NewLine; 1699item3spec = Environment.NewLine + " (spec;3" + Environment.NewLine; 1702item1type = "type" + Environment.NewLine; 1703item2type = "type2" + Environment.NewLine; 1704item3type = "type(3)" + Environment.NewLine; 2435actualLog.ShouldContain(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("ProjectFinishedPrefixWithTargetNamesMultiProc", "None", "Build") + Environment.NewLine); 2438actualLog.ShouldContain(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("ProjectFinishedPrefixWithTargetNamesMultiProc", "None", "Build") + Environment.NewLine + Environment.NewLine); 2442actualLog.ShouldNotContain(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("ProjectFinishedPrefixWithTargetNamesMultiProc", "None", "Build") + Environment.NewLine + Environment.NewLine); 2446actualLog.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\SolutionFile_OldParser_Tests.cs (1)
2475string[] lines = solutionFileContent.Split(new string[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries);
Construction\SolutionProjectGenerator_Tests.cs (1)
1107Assert.True(buildResult, String.Join(Environment.NewLine, logger.Errors.Select(beea => beea.Message)));
WarningsAsMessagesAndErrors_Tests.cs (1)
262{(customProperties != null ? String.Join(Environment.NewLine, customProperties.Select(i => $"<{i.Key}>{i.Value}</{i.Key}>")) : "")}
Microsoft.Build.Framework (2)
Constants.cs (1)
134internal static readonly string[] EnvironmentNewLine = [Environment.NewLine];
LazyFormattedBuildEventArgs.cs (1)
130argValue = $"Argument conversion to string failed{Environment.NewLine}{e}";
Microsoft.Build.Tasks.CodeAnalysis (2)
src\Compilers\Core\CommandLine\CompilerServerLogger.cs (1)
154string output = prefix + message + Environment.NewLine;
Vbc.cs (1)
239private static readonly string[] s_separator = { Environment.NewLine };
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (12)
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);
TestUtilities\DotNetSdkTestBase.cs (1)
121{string.Join(Environment.NewLine + " ", expressions.SelectWithIndex((e, i) => $@"<_Value{i}>{e}</_Value{i}><_Value{i} Condition=""'$(_Value{i})' == ''"">{EmptyValueMarker}</_Value{i}>"))}
Microsoft.Build.Tasks.Core (5)
BootstrapperUtil\BootstrapperBuilder.cs (2)
520productsOrder.Append(p.ProductCode).Append(Environment.NewLine); 1979return str.Replace("%NEWLINE%", Environment.NewLine);
ExceptionHandling.cs (3)
396builder.Append(Environment.NewLine); 399builder.Append(Environment.NewLine); 401builder.Append(Environment.NewLine);
Microsoft.Build.Tasks.UnitTests (23)
HintPathResolver_Tests.cs (2)
54bool result = ResolveHintPath(Environment.NewLine + tempFile.Path + Environment.NewLine);
RegressionTests.cs (1)
80Assert.True(result, "Output:" + Environment.NewLine + logger.FullLog);
WriteCodeFragment_Tests.cs (4)
550var multilineString = String.Join(Environment.NewLine, lines); 586var multilineString = String.Join(Environment.NewLine, lines); 1173string expectedContent = string.Join(Environment.NewLine, expectedHeader.Concat(expectedAttributes)); 1177Environment.NewLine,
XmlPoke_Tests.cs (16)
59nodes.ShouldNotBeNull($"There should be <variable /> elements with a Name attribute {Environment.NewLine}{xmlDocument.OuterXml}"); 61nodes.Count.ShouldBe(3, $"There should be 3 <variable /> elements with a Name attribute {Environment.NewLine}{xmlDocument.OuterXml}"); 63nodes.ShouldAllBe(i => i.Value.Equals("Mert"), $"All <variable /> elements should have Name=\"Mert\" {Environment.NewLine}{xmlDocument.OuterXml}"); 76nodes.ShouldNotBeNull($"There should be <variable /> elements with a Name attribute {Environment.NewLine}{xmlDocument.OuterXml}"); 78nodes.Count.ShouldBe(3, $"There should be 3 <variable /> elements with a Name attribute {Environment.NewLine}{xmlDocument.OuterXml}"); 80nodes.ShouldAllBe(i => i.Value.Equals(value), $"All <variable /> elements should have Name=\"{value}\" {Environment.NewLine}{xmlDocument.OuterXml}"); 93nodes.ShouldNotBeNull($"There should be <class /> elements with an AccessModifier attribute {Environment.NewLine}{xmlDocument.OuterXml}"); 95nodes.Count.ShouldBe(1, $"There should be 1 <class /> element with an AccessModifier attribute {Environment.NewLine}{xmlDocument.OuterXml}"); 110nodes.ShouldNotBeNull($"There should be <class /> elements {Environment.NewLine}{xmlDocument.OuterXml}"); 112nodes.Count.ShouldBe(1, $"There should be 1 <class /> element {Environment.NewLine}{xmlDocument.OuterXml}"); 116testNodes.ShouldNotBeNull($"There should be <class /> elements with one child Test element {Environment.NewLine}{xmlDocument.OuterXml}"); 118testNodes.Count.ShouldBe(1, $"There should be 1 <class /> element with one child Test element {Environment.NewLine}{xmlDocument.OuterXml}"); 134nodes.ShouldNotBeNull($"There should be <class /> element with an AccessModifier attribute {Environment.NewLine}{xmlDocument.OuterXml}"); 136nodes.Count.ShouldBe(1, $"There should be 1 <class /> element with an AccessModifier attribute {Environment.NewLine}{xmlDocument.OuterXml}"); 304nodes.ShouldNotBeNull($"There should be <variable/> elements {Environment.NewLine}{xmlDocument.OuterXml}"); 306nodes.Count.ShouldBe(3, $"There should be 3 <variable/> elements {Environment.NewLine}{xmlDocument.OuterXml}");
Microsoft.Build.UnitTests.Shared (2)
MockEngine.cs (2)
164string message = $"Received telemetry event '{eventName}'{Environment.NewLine}"; 167message += $" Property '{key}' = '{properties[key]}'{Environment.NewLine}";
Microsoft.Build.Utilities.Core (7)
CommandLineBuilder.cs (1)
220CommandLine.Append(Environment.NewLine);
ExceptionHandling.cs (3)
396builder.Append(Environment.NewLine); 399builder.Append(Environment.NewLine); 401builder.Append(Environment.NewLine);
TaskLoggingHelper.cs (2)
952message += Environment.NewLine + exception.StackTrace; 1289message += Environment.NewLine + exception.StackTrace;
ToolTask.cs (1)
1449$@"%SystemRoot%\System32\chcp.com {encoding.CodePage}>nul{Environment.NewLine}",
Microsoft.Build.Utilities.UnitTests (3)
MuxLogger_Tests.cs (2)
129mockLogger.FullLog.Replace(Environment.NewLine, "").ShouldBe(mockLogger2.FullLog.Replace(Environment.NewLine, ""));
ToolTask_Tests.cs (1)
274string pattern = $"{commandLine}{Environment.NewLine}\\s*{displayMessage}";
Microsoft.Cci.Extensions (1)
Writers\Syntax\TokenSyntaxWriter.cs (1)
58Write(Environment.NewLine);
Microsoft.CodeAnalysis (5)
DiagnosticAnalyzer\AnalyzerExecutor.cs (2)
1295var contextInformation = string.Join(Environment.NewLine, CreateDiagnosticDescription(info, e), CreateDisablingMessage(analyzer, analyzerName)).Trim(); 1308return string.Join(Environment.NewLine,
InternalUtilities\FailFast.cs (1)
108Fail("ASSERT FAILED" + Environment.NewLine + message);
src\Compilers\Core\AnalyzerDriver\AnalyzerExceptionDescriptionBuilder.cs (2)
16private static readonly string s_separator = Environment.NewLine + "-----" + Environment.NewLine;
Microsoft.CodeAnalysis.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
175foreach (var line in child.ToString().Split(new[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries))
Microsoft.CodeAnalysis.Analyzers.UnitTests (3)
MetaAnalyzers\ReleaseTrackingAnalyzerTests.cs (3)
597var diagnosticText = (shippedText.Length > 0 ? shippedText : unshippedText).Split(new[] { Environment.NewLine }, StringSplitOptions.None).ElementAt(line - 1); 833var lineCount = (shippedText.Length > 0 ? shippedText : unshippedText).Split(new[] { Environment.NewLine }, StringSplitOptions.None).Length; 866var lineCount = (shippedText.Length > 0 ? shippedText : unshippedText).Split(new[] { Environment.NewLine }, StringSplitOptions.None).Length;
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
175foreach (var line in child.ToString().Split(new[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries))
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
175foreach (var line in child.ToString().Split(new[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries))
Microsoft.CodeAnalysis.CodeStyle (5)
src\Analyzers\Core\Analyzers\FileHeaders\AbstractFileHeaderHelper.cs (1)
122var eolLength = Environment.NewLine.Length;
src\Compilers\Core\Portable\InternalUtilities\FailFast.cs (1)
108Fail("ASSERT FAILED" + Environment.NewLine + message);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (1)
48_ => Environment.NewLine
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\LineFormattingOptions.cs (1)
19[DataMember] public string NewLine { get; init; } = Environment.NewLine;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
284: reason + Environment.NewLine + restString;
Microsoft.CodeAnalysis.CSharp (1)
Binder\Binder.cs (1)
943var lines = scope.ScopeDesignator.ToString().Split(new[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (1)
91var newLine = Environment.NewLine;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\DocumentationComments\CSharpAddDocCommentNodesCodeFixProvider.cs (2)
81return elementNode.WithTrailingTrivia(SyntaxFactory.ParseTrailingTrivia(Environment.NewLine)); 85SyntaxFactory.ParseLeadingTrivia(Environment.NewLine)
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (6)
src\Analyzers\CSharp\Tests\Formatting\FormattingAnalyzerTests.cs (6)
22"class X[| |]" + Environment.NewLine + 23"{" + Environment.NewLine + 24"}" + Environment.NewLine; 26"class X" + Environment.NewLine + 27"{" + Environment.NewLine + 28"}" + Environment.NewLine;
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (14)
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 (11)
AutomaticCompletion\AutomaticBraceCompletionTests.cs (1)
1464buffer.Insert(10, Environment.NewLine);
Completion\ArgumentProviders\ArgumentProviderOrderTests.cs (2)
47string.Join(Environment.NewLine, expectedOrder.Select(x => x.FullName)), 48string.Join(Environment.NewLine, actualOrder.Select(x => x.FullName)));
Completion\CompletionProviders\AwaitCompletionProviderTests.cs (1)
935var data = (n$$) {{(hasNewline ? Environment.NewLine : string.Empty)}} M();
Completion\CompletionProviders\CompletionProviderOrderTests.cs (2)
79string.Join(Environment.NewLine, expectedOrder.Select(x => x.FullName)), 80string.Join(Environment.NewLine, actualOrder.Select(x => x.FullName)));
Completion\CompletionProviders\KeywordCompletionProviderTests.cs (1)
599var data = (n$$) {(hasNewline ? Environment.NewLine : string.Empty)} M();
Completion\CompletionProviders\SnippetCompletionProviderTests.cs (2)
41=> await VerifyItemExistsAsync(@"$$", MockSnippetInfoService.SnippetShortcut, MockSnippetInfoService.SnippetTitle + Environment.NewLine + MockSnippetInfoService.SnippetDescription + Environment.NewLine + string.Format(FeaturesResources.Note_colon_Tab_twice_to_insert_the_0_snippet, MockSnippetInfoService.SnippetShortcut), SourceCodeKind.Regular);
Debugging\ProximityExpressionsGetterTests.cs (1)
96{string.Join(Environment.NewLine, body.ReplaceLineEndings("\n").Split('\n').Select(line => line == "" ? line : $" {line}"))}
Formatting\FormattingEngineTests.cs (1)
1845var endOfFile = trailingNewLine ? Environment.NewLine : "";
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (15)
CodeGen\CodeGenAsyncLocalsTests.cs (3)
35var actualLines = c.VisualizeIL(qualifiedMethodName).Split(new[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries); 37return string.Join(Environment.NewLine, 40select pair.line1.Trim() + Environment.NewLine + pair.line2.Trim());
CodeGen\CodeGenAsyncSpillTests.cs (1)
3400var expected = new bool[] { false, true, false, true, false }.Aggregate("", (str, next) => str += $"{next}{Environment.NewLine}");
CodeGen\CodeGenClosureLambdaTests.cs (5)
1461CompileAndVerify(source, expectedOutput: $"this: D::F{Environment.NewLine}base: B1::F"); 1520CompileAndVerify(source, expectedOutput: $"this: D::F{Environment.NewLine}base: B1::F"); 1694CompileAndVerify(source, expectedOutput: $"D::F{Environment.NewLine}B1::F"); 1747CompileAndVerify(source, expectedOutput: $"D::F{Environment.NewLine}B1::F"); 1802CompileAndVerify(source, expectedOutput: $"D::F{Environment.NewLine}B1::F");
CodeGen\CodeGenLocalFunctionTests.cs (2)
4728VerifyOutput(src, $"10{Environment.NewLine}4", TestOptions.ReleaseExe.WithAllowUnsafe(true), verify: Verification.Fails); 6319var usingBlock = string.Join(Environment.NewLine, usings);
CodeGen\CodeGenTests.cs (3)
2619CompileAndVerify(source, expectedOutput: $"A.P.get;B.P.set;A.P.get;B.P.set;{Environment.NewLine}A.P.get;B.P.set;D.P.get;B.P.set;"). 2790CompileAndVerify(source, expectedOutput: $"A.P.get;C.P.set;C.P.get;B.P.set;{Environment.NewLine}A.P.get;B.P.set;D.P.get;B.P.set;"). 2961CompileAndVerify(source, expectedOutput: $"B.P.get;C.P.set;C.P.get;B.P.set;{Environment.NewLine}B.P.get;D.P.set;D.P.get;B.P.set;").
Emit\DynamicAnalysis\DynamicInstrumentationTests.cs (1)
3638Assert.True(expected == instrumented, $"Method '{qualifiedMethodName}' should {(expected ? "be" : "not be")} instrumented. Actual IL:{Environment.NewLine}{il}");
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (6)
Emit\LocalStateTracing\LocalStateTracingTests.cs (3)
188verify: s_verification with { ILVerifyMessage = ilVerifyMessage + Environment.NewLine + s_verification.ILVerifyMessage }, 211$"Method '{qualifiedMethodName}' should {(expected ? "be" : "not be")} instrumented. Actual IL:{Environment.NewLine}{il}"); 367ILVerifyMessage = s_verification.ILVerifyMessage + Environment.NewLine + """
Emit\RuntimeProbing\ModuleCancellationTests.cs (1)
40$"Method '{qualifiedMethodName}' should not be instrumented with '{instrumentationIndicator}'. Actual IL:{Environment.NewLine}{il}");
Emit\RuntimeProbing\StackOverflowProbingTests.cs (1)
33$"Method '{qualifiedMethodName}' should not be instrumented. Actual IL:{Environment.NewLine}{il}");
PDB\PDBTests.cs (1)
435.Join(Environment.NewLine);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
RefReadonlyParameterTests.cs (2)
7823CreateCompilation(source2 + Environment.NewLine + source3, new[] { comp1Ref }, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 8615CreateCompilation(source2 + Environment.NewLine + source3, new[] { comp1Ref }, parseOptions: TestOptions.Regular11).VerifyDiagnostics(
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (2)
EndToEndTests.cs (2)
358var source = string.Join(Environment.NewLine, declarations); 402var source = string.Join(Environment.NewLine, declarations);
Microsoft.CodeAnalysis.CSharp.Features (5)
Completion\CompletionProviders\SnippetCompletionProvider.cs (1)
193description: (snippet.Title + Environment.NewLine + snippet.Description).ToSymbolDisplayParts(),
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (1)
592[EndOfLine(Environment.NewLine)]),
Snippets\CSharpSnippetFunctionService.cs (1)
54var str = "case " + fullyQualifiedTypeName + "." + firstEnumMemberName + ":" + Environment.NewLine + " break;";
src\Analyzers\CSharp\CodeFixes\DocumentationComments\CSharpAddDocCommentNodesCodeFixProvider.cs (2)
81return elementNode.WithTrailingTrivia(SyntaxFactory.ParseTrailingTrivia(Environment.NewLine)); 85SyntaxFactory.ParseLeadingTrivia(Environment.NewLine)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (12)
Copilot\CSharpImplementNotImplementedExceptionFixProviderTests.cs (1)
446Message = $"The generated implementation isn't a valid method or property:{Environment.NewLine}{replacement}",
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (3)
66$"{Environment.NewLine}Expected span: '{expectedText}' {expected}" + 67$"{Environment.NewLine}Actual span: '{actualText}' {actual}"); 772.Select(d => $"{d.Id}: {d.GetMessage().Split([Environment.NewLine], StringSplitOptions.None).First()}"));
SemanticSearch\CSharpSemanticSearchServiceTests.cs (2)
366var actualTrace = exception.StackTrace.JoinText().Split([Environment.NewLine], StringSplitOptions.None).AsSpan(); 435var actualTrace = exception.StackTrace.JoinText().Split([Environment.NewLine], StringSplitOptions.None).AsSpan()[0..2].ToArray();
src\Analyzers\CSharp\Tests\Formatting\FormattingAnalyzerTests.cs (6)
22"class X[| |]" + Environment.NewLine + 23"{" + Environment.NewLine + 24"}" + Environment.NewLine; 26"class X" + Environment.NewLine + 27"{" + Environment.NewLine + 28"}" + Environment.NewLine;
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (4)
ObjectFormatterTests.cs (4)
374Assert.Equal($"LongMembers {{{Environment.NewLine} LongName0123456789...{Environment.NewLine} LongValue: \"012345...{Environment.NewLine}}}{Environment.NewLine}", str);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (22)
Semantics\ConstantTests.cs (7)
1459var result = string.Join(Environment.NewLine, constants); 2995var source = string.Join(Environment.NewLine, range.Select(i => 3025var source = string.Join(Environment.NewLine, range.Select(i => 3082var source = string.Join(Environment.NewLine, range.Select(i => 3112var source = string.Join(Environment.NewLine, range.Select(i => 3172var source = string.Join(Environment.NewLine, range.Select(i => 3205var source = string.Join(Environment.NewLine, range.Select(i =>
Semantics\GenericConstraintsTests.cs (1)
2523options: TestOptions.UnsafeReleaseExe, verify: Verification.Fails, expectedOutput: string.Join(Environment.NewLine, type, size)).VerifyIL("Test.M<T>", @"
Semantics\MethodBodyModelTests.cs (1)
797Assert.Equal(string.Empty, string.Join(Environment.NewLine, comp.GetDiagnostics()));
Semantics\OperatorTests.cs (5)
3212.Split(new[] { Environment.NewLine }, System.StringSplitOptions.RemoveEmptyEntries) 11150CompileAndVerify(source: source, expectedOutput: "abcdef" + Environment.NewLine + "abcdef" + Environment.NewLine + "abcdef"); 11201CompileAndVerify(source: source, expectedOutput: "3" + Environment.NewLine + "3" + Environment.NewLine);
Semantics\OverloadResolutionTestBase.cs (1)
48.Split(new[] { Environment.NewLine }, System.StringSplitOptions.RemoveEmptyEntries)
Semantics\UnsafeTests.cs (3)
28if (Environment.NewLine == "\n") 32else if (Environment.NewLine == "\r\n") 5213var actual = string.Join(Environment.NewLine, builder);
SourceGeneration\GeneratorDriverTests.cs (4)
1256source = source.Replace(Environment.NewLine, "\r\n"); 1347source = source.Replace(Environment.NewLine, "\r\n"); 2171spc.AddSource("InvokedMethods.g.cs", string.Join(Environment.NewLine, 4270var expectedDetails = $"System.{typeName}: {message}{Environment.NewLine} ";
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\AnonymousTypesSemanticsTests.cs (1)
2141foreach (var line in source.Split(new String[] { Environment.NewLine }, StringSplitOptions.None))
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (85)
Diagnostics\LocationsTests.cs (1)
239AssertMappedSpanEqual(syntaxTree, $"System;{Environment.NewLine}class X", "c:\\goo.cs", 0, 6, 1, 7, hasMappedPath: false);
LexicalAndXml\DocumentationCommentLexerTestBase.cs (1)
70Console.WriteLine(string.Join("," + Environment.NewLine, baseline));
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),
Syntax\SyntaxNormalizerTests.cs (6)
3864$" ///<summary>{Environment.NewLine}" + 3865$" /// A documentation comment{Environment.NewLine}" + 3866$" ///</summary>{Environment.NewLine}" + 3892$" /// <summary>{Environment.NewLine}" + 3893$" /// A documentation comment{Environment.NewLine}" + 3894$" /// </summary>{Environment.NewLine}" +
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
DiagnosticTestUtilities.cs (2)
110Environment.NewLine, 111actualLength == 0 ? "<none>" : string.Join(Environment.NewLine, actualErrors)));
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (1)
91var newLine = Environment.NewLine;
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (5)
Formatting\FormattingTests.cs (2)
10354var lines = s.Split([Environment.NewLine], StringSplitOptions.None); 10363return string.Join(Environment.NewLine, lines);
Formatting\FormattingTriviaTests.cs (1)
1784var newLine = Environment.NewLine;
OrganizeImports\OrganizeUsingsTests.cs (2)
30var document = project.AddDocument("Document", initial.ReplaceLineEndings(endOfLine ?? Environment.NewLine)); 42Assert.Equal(final.ReplaceLineEndings(endOfLine ?? Environment.NewLine), newRoot.ToFullString());
Microsoft.CodeAnalysis.EditorFeatures (7)
ExtractMethod\ExtractMethodCommandHandler.cs (6)
236EditorFeaturesResources.Extract_method_encountered_the_following_issues + Environment.NewLine + 237string.Join("", result.Reasons.Select(r => Environment.NewLine + " " + r)), 250EditorFeaturesResources.Extract_method_encountered_the_following_issues + Environment.NewLine + 251string.Join("", result.Reasons.Select(r => Environment.NewLine + " " + r)) + Environment.NewLine + Environment.NewLine +
Preview\AbstractPreviewFactoryService.cs (1)
462: string.Join(Environment.NewLine, conflictDescriptions.Concat(warningDescriptions));
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (5)
AutomaticCompletion\AbstractAutomaticBraceCompletionTests.cs (2)
78Type(session, Environment.NewLine); 101Type(session, Environment.NewLine);
ObsoleteSymbol\AbstractObsoleteSymbolTests.cs (2)
44string.Join(Environment.NewLine, expectedSpans), 45string.Join(Environment.NewLine, actualSpans));
QuickInfo\AbstractQuickInfoSourceTests.cs (1)
25return string.Concat(System.Environment.NewLine, formattedCode);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (8)
CodeFixes\CodeFixServiceTests.cs (2)
614=> exception.Message + Environment.NewLine + exception.StackTrace; 1061code = Environment.NewLine + code;
Diagnostics\IDEDiagnosticIDConfigurationTests.cs (5)
98expectedLines = expected.Split([Environment.NewLine], StringSplitOptions.RemoveEmptyEntries); 737Environment.NewLine + 738string.Join(Environment.NewLine, baseline.Select(Inspect))); 751Environment.NewLine + 752string.Join(Environment.NewLine, extraEntitiesBuilder.Select(Inspect)));
Structure\AbstractStructureTaggerProviderTests.cs (1)
19var buffer = EditorFactory.CreateBuffer(exportProvider, input.Split([Environment.NewLine], StringSplitOptions.None));
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
DkmUtilities.cs (1)
347$"EE: AppDomain {appDomain.Id}, blocks {context.MetadataBlocks.Length}, contexts {context.AssemblyContexts.Count}" + Environment.NewLine,
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (1)
src\Compilers\Core\Portable\InternalUtilities\FailFast.cs (1)
108Fail("ASSERT FAILED" + Environment.NewLine + message);
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
src\Compilers\Core\Portable\InternalUtilities\FailFast.cs (1)
108Fail("ASSERT FAILED" + Environment.NewLine + message);
Microsoft.CodeAnalysis.ExternalAccess.Copilot (1)
Internal\SemanticSearch\CopilotSemanticSearchQueryExecutor.cs (1)
41RuntimeException ??= $"{exception.TypeName.ToVisibleDisplayString(includeLeftToRightMarker: false)}: {exception.Message}{Environment.NewLine}{exception.StackTrace.ToVisibleDisplayString(includeLeftToRightMarker: false)}";
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (1)
Options\OmniSharpLineFormattingOptions.cs (1)
14public string NewLine { get; init; } = Environment.NewLine;
Microsoft.CodeAnalysis.ExternalAccess.Xaml (1)
External\ConversionHelpers.cs (1)
25.SelectMany(section => section.TaggedParts.Add(new TaggedText(TextTags.LineBreak, Environment.NewLine)))
Microsoft.CodeAnalysis.Features (8)
Completion\CommonCompletionProvider.cs (1)
92parts = parts.Add(new TaggedText(TextTags.LineBreak, Environment.NewLine));
Completion\Providers\Snippets\AbstractSnippetCompletionProvider.cs (1)
95description: (snippetData.Description + Environment.NewLine + string.Format(FeaturesResources.Code_snippet_for_0, snippetData.Description)).ToSymbolDisplayParts(),
Diagnostics\Service\EngineV2\DiagnosticIncrementalAnalyzer.cs (1)
52=> $"project: ({project.Id}), ({string.Join(Environment.NewLine, analyzers.Select(a => a.ToString()))})";
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (1)
301var documentTooltip = navigateDocument.FilePath + Environment.NewLine + dllPath;
SemanticSearch\QueryExecutionContext.cs (1)
276new TaggedText(tag: TextTags.Text, (skippedFrameCount > 0 ? " ..." + Environment.NewLine : "") + GetStackTraceText(displayFrames))
src\Analyzers\Core\Analyzers\FileHeaders\AbstractFileHeaderHelper.cs (1)
122var eolLength = Environment.NewLine.Length;
src\Compilers\Core\AnalyzerDriver\AnalyzerExceptionDescriptionBuilder.cs (2)
16private static readonly string s_separator = Environment.NewLine + "-----" + Environment.NewLine;
Microsoft.CodeAnalysis.Features.Test.Utilities (6)
EditAndContinue\ActiveStatementTestHelpers.cs (1)
88src = src[..start] + string.Join("", Enumerable.Repeat(Environment.NewLine, lineCount)) + src[end..];
EditAndContinue\EditAndContinueTestVerifier.cs (1)
419throw new Exception($"Unable to find node with span {span} `{root.GetText().GetSubText(span)}` in:{Environment.NewLine}{root}");
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (2)
82=> CreateText("[*.*]" + Environment.NewLine + string.Join(Environment.NewLine, analyzerConfig.Select(c => $"{c.key} = {c.value}")));
EditAndContinue\RudeEditDiagnosticDescription.cs (2)
57? $"\"\"\"{Environment.NewLine}{_squiggle}{Environment.NewLine}\"\"\""
Microsoft.CodeAnalysis.Features.UnitTests (2)
FindUsages\DefinitionItemFactoryTests.cs (2)
73itemSeparator: "," + Environment.NewLine, 123=> propertyName == null ? null : $"{Environment.NewLine}{nameof(DefinitionItem)}.{propertyName} does not match expected value.";
Microsoft.CodeAnalysis.InteractiveHost (1)
src\Compilers\Core\Portable\InternalUtilities\FailFast.cs (1)
108Fail("ASSERT FAILED" + Environment.NewLine + message);
Microsoft.CodeAnalysis.LanguageServer (11)
HostWorkspace\ProjectDependencyHelper.cs (2)
99+ Environment.NewLine 100+ string.Join(Environment.NewLine, unresolved.Select(r => $" {r.Name}-{r.VersionRange}"));
LanguageServer\Handler\Restore\RestoreHandler.cs (1)
44progress.Report(new RestorePartialResult(LanguageServerResources.Restore, $"{LanguageServerResources.Restore_complete}{Environment.NewLine}"));
Testing\RunTestsHandler.cs (1)
182_logger.LogTrace($".runsettings:{Environment.NewLine}{contents}");
Testing\TestDiscoverer.cs (2)
42var partialResult = new RunTestsPartialResult(LanguageServerResources.Discovering_tests, $"{Environment.NewLine}{LanguageServerResources.Starting_test_discovery}", Progress: null); 84_logger.LogDebug(message: $"Potential test methods in range: {string.Join(Environment.NewLine, potentialTestMethods)}");
Testing\TestRunner.cs (1)
42progress.Report(new RunTestsPartialResult(LanguageServerResources.Running_tests, $"{Environment.NewLine}{LanguageServerResources.Starting_test_run}", initialProgress));
Testing\TestRunner.TestRunHandler.cs (4)
76message = @$"==== {LanguageServerResources.Summary} ===={Environment.NewLine}{state} - {string.Format(LanguageServerResources.Failed_0_Passed_1_Skipped_2_Total_3_Duration_4, stats?.TestsFailed, stats?.TestsPassed, stats?.TestsSkipped, stats?.TotalTests, RunTestsHandler.GetShortTimespan(testRunCompleteArgs.ElapsedTimeInRunningTests))}{Environment.NewLine}"; 193return text.Replace(Environment.NewLine, $"{Environment.NewLine}{indentation}").TrimEnd().Insert(0, indentation);
Microsoft.CodeAnalysis.LanguageServer.Protocol (9)
Extensions\ProtocolConversions.cs (1)
954var content = markdownBuilder.Build(Environment.NewLine);
Features\DecompiledSource\AssemblyResolver.cs (1)
170=> _logger.AppendFormat(format + Environment.NewLine, args);
Features\DecompiledSource\CSharpCodeDecompilerDecompilationService.cs (2)
73text += "#if false // " + FeaturesResources.Decompilation_log + Environment.NewLine; 75text += "#endif" + Environment.NewLine;
Handler\Hover\HoverHandler.cs (1)
137.. info.Sections.SelectMany(static s => s.TaggedParts.Add(new TaggedText(TextTags.LineBreak, Environment.NewLine)))
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\AbstractLanguageServer.cs (4)
125throw new InvalidOperationException($"Language specific handlers for {methodGroup.Key} have mis-matched number of parameters:{Environment.NewLine}{string.Join(Environment.NewLine, methodGroup)}"); 130throw new InvalidOperationException($"Language specific handlers for {methodGroup.Key} have mis-matched number of returns:{Environment.NewLine}{string.Join(Environment.NewLine, methodGroup)}");
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (4)
Configuration\DidChangeConfigurationNotificationHandlerTest.cs (2)
155string.Join(Environment.NewLine, expectedNames), 156string.Join(Environment.NewLine, actualNames));
SpellCheck\SpellCheckTests.cs (2)
74var markup = string.Join(Environment.NewLine, Enumerable.Range(0, 5500).Select(v => 79{{string.Join(Environment.NewLine, Enumerable.Repeat("", random.Next() % 5))}}
Microsoft.CodeAnalysis.PublicApiAnalyzers.CodeFixes (1)
PublicApiFixHelpers.cs (1)
86return Environment.NewLine;
Microsoft.CodeAnalysis.PublicApiAnalyzers.UnitTests (1)
DeclarePublicAPIAnalyzerTestsBase.cs (1)
2226var fixedUnshippedText = $"C{Environment.NewLine}C.Field1 -> int";
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Host\ThrowingTraceListener.cs (1)
16(string.IsNullOrEmpty(detailMessage) ? "" : Environment.NewLine + detailMessage));
Microsoft.CodeAnalysis.Remote.Workspaces (3)
ExportProviderBuilder.cs (3)
74LogTrace($"Composing MEF catalog using:{Environment.NewLine}{string.Join($" {Environment.NewLine}", AssemblyPaths)}."); 199LogError($"Encountered errors in the MEF composition:{Environment.NewLine}{ex.ErrorsAsString}");
Microsoft.CodeAnalysis.ResxSourceGenerator (6)
AbstractResxGenerator.cs (5)
206var exceptionLines = ex.ToString().Split(new[] { Environment.NewLine }, StringSplitOptions.None); 207var text = string.Join("", exceptionLines.Select(line => "#error " + line + Environment.NewLine)); 509{string.Join(Environment.NewLine, getResourceStringAttributes.Select(attr => memberIndent + attr))} 560namespaceStart = $@"namespace {namespaceName}{Environment.NewLine}{{"; 629var crLf = Environment.NewLine;
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
175foreach (var line in child.ToString().Split(new[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries))
Microsoft.CodeAnalysis.Scripting (2)
Hosting\ObjectFormatter\CommonObjectFormatter.cs (2)
44newLine: Environment.NewLine, 75builder.Append(Environment.NewLine);
Microsoft.CodeAnalysis.Scripting.TestUtilities (5)
ObjectFormatterTestBase.cs (3)
22foreach (var line in str.Split(new[] { Environment.NewLine + " " }, StringSplitOptions.None)) 30Assert.Equal(expected[i] + Environment.NewLine + "}" + Environment.NewLine, line);
TestCSharpObjectFormatter.cs (1)
31newLine: Environment.NewLine,
TestVisualBasicObjectFormatter.cs (1)
32newLine: Environment.NewLine,
Microsoft.CodeAnalysis.Test.Utilities (60)
Assert\AssertEx.cs (9)
137Fail("expected was null, but actual wasn't" + Environment.NewLine + message); 141Fail("actual was null, but expected wasn't" + Environment.NewLine + message); 160Fail(message + Environment.NewLine + expectedAndActual); 684itemSeparator = "," + Environment.NewLine; 789itemSeparator = "," + Environment.NewLine; 907itemSeparator: Environment.NewLine, 994var stack = ex.StackTrace.Split(new[] { Environment.NewLine }, StringSplitOptions.None); 1026Fail("Filter does not match any item in the collection: " + Environment.NewLine + 1027ToString(collection, itemSeparator ?? Environment.NewLine, itemInspector));
Assert\DiffUtil.cs (1)
99return DiffReport(exlines, aclines, separator: Environment.NewLine);
CommonTestBase.cs (1)
500=> source.Replace(Environment.NewLine, "\r\n");
Compilation\CompilationDifference.cs (1)
98Assert.True(sequencePointMarkers.Count > 0, $"No sequence points found in:{Environment.NewLine}{actualPdb}");
Compilation\CompilationExtensions.cs (2)
242actualTextBuilder.Append(Environment.NewLine); 247actualTextBuilder.Append(Environment.NewLine);
Compilation\CompilationTestDataExtensions.cs (3)
71"Could not determine best match for method named: " + qualifiedMethodName + Environment.NewLine + 72string.Join(Environment.NewLine, keys.Select(s => " " + s)) + Environment.NewLine);
Compilation\OperationTreeVerifier.cs (5)
65char[] newLineChars = Environment.NewLine.ToCharArray(); 69expectedOperationTree = expectedOperationTree.Replace("\r\n", "\n").Replace(" \n", "\n").Replace("\n", Environment.NewLine); 163var text = syntax.ToString().Trim(Environment.NewLine.ToCharArray()); 164var lines = text.Split(new[] { Environment.NewLine, "\r", "\n" }, StringSplitOptions.RemoveEmptyEntries).Select(l => l.Trim()).ToArray(); 204LogString(Environment.NewLine);
CompilationVerifier.cs (5)
114throw new Exception($"Didn't find method '{methodName}'. Available/distinguishable methods are: {Environment.NewLine}{string.Join(Environment.NewLine, map.Keys)}"); 469$"IL Verify failed unexpectedly:{Environment.NewLine}{actualMessage}" : 511return string.Join(Environment.NewLine, result.Select(r => printMethod(r.Method, metadataReader) + r.Message + printErrorArguments(r.ErrorArguments))); 759throw new Exception($"Failed to extract PDB information. PdbToXmlConverter returned:{Environment.NewLine}{actualPdbXml}");
Diagnostics\CommonDiagnosticAnalyzers.cs (7)
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}\"")) + @"
Diagnostics\DiagnosticDescription.cs (1)
572assertText.Append(DiffUtil.DiffReport(unmatchedExpectedText, unmatchedActualText, separator: Environment.NewLine));
Diagnostics\DiagnosticsHelper.cs (3)
21Assert.True(match.Success, "Could not find a match for \"" + pattern + "\" in:" + Environment.NewLine + source); 29Environment.NewLine + "Expected: " + string.Join(", ", expectedDiagnosticIds) + 30Environment.NewLine + "Actual: " + string.Join(", ", actualDiagnosticIds));
Diagnostics\ThrowingDiagnosticAnalyzer.cs (11)
99Assert.True(!handled.Any(h => h == false) && handled.Any(h => true), Environment.NewLine + 100" Exceptions thrown by analyzers in these members were *NOT* handled:" + Environment.NewLine + string.Join(Environment.NewLine, membersHandled.Where(mh => mh.Handled == false).Select(mh => mh.Member)) + Environment.NewLine + Environment.NewLine + 101" Exceptions thrown from these members were handled gracefully:" + Environment.NewLine + string.Join(Environment.NewLine, membersHandled.Where(mh => mh.Handled == true).Select(mh => mh.Member)) + Environment.NewLine + Environment.NewLine + 102" These members were not called/accessed by analyzer engine:" + Environment.NewLine + string.Join(Environment.NewLine, membersHandled.Where(mh => mh.Handled == null).Select(mh => mh.Member)));
Diagnostics\TrackingDiagnosticAnalyzer.cs (4)
167Environment.NewLine + "Expected: " + string.Join(", ", expected) + 168Environment.NewLine + "Actual: " + string.Join(", ", actual)); 177Environment.NewLine + "Missing: " + string.Join(", ", missingElements) + 178Environment.NewLine + "Present: " + string.Join(", ", presentElements));
FX\ProcessResult.cs (4)
32Environment.NewLine + 34Environment.NewLine + 36Environment.NewLine + 38Environment.NewLine +
Metadata\IlasmUtilities.cs (2)
128"The provided IL cannot be compiled." + Environment.NewLine + 129IlasmPath + " " + arguments + Environment.NewLine +
ThrowingTraceListener.cs (1)
28(string.IsNullOrEmpty(detailMessage) ? "" : Environment.NewLine + detailMessage));
Microsoft.CodeAnalysis.TestAnalyzerReference (1)
NonSourceFileRefactoring.cs (1)
28var newText = SourceText.From(text.ToString() + Environment.NewLine + "# Refactored");
Microsoft.CodeAnalysis.UnitTests (17)
Analyzers\AnalyzerConfigTests.cs (3)
204var config = ParseConfigFile(string.Join(Environment.NewLine, 352var config = ParseConfigFile(string.Join(Environment.NewLine, 363var config = ParseConfigFile(string.Join(Environment.NewLine,
Diagnostics\SuppressMessageAttributeCompilerTests.cs (3)
167exception.ToString().Substring(0, exception.ToString().IndexOf("---")) + "-----" + Environment.NewLine + Environment.NewLine + 168string.Format(CodeAnalysisResources.CompilerAnalyzerThrows, AnalyzerName, exception.GetType().ToString(), exception.Message, exception.ToString() + Environment.NewLine + "-----"))}")
Text\LargeTextTests.cs (2)
198var newline = Environment.NewLine; 214var newlineLength = Environment.NewLine.Length;
Text\StringText_LineTest.cs (6)
18string newLine = Environment.NewLine; 30var text = SourceText.From("goo" + Environment.NewLine); 41var text = SourceText.From("goo" + Environment.NewLine + "bar"); 82var text = SourceText.From("goo" + Environment.NewLine); 97var text = SourceText.From(Environment.NewLine); 100Assert.Equal(Environment.NewLine.Length, line.SpanIncludingLineBreak.Length);
Text\StringTextTest.cs (2)
151string newLine = Environment.NewLine; 167var newlineLength = Environment.NewLine.Length;
Text\StringTextTests_Default.cs (1)
57string newLine = Environment.NewLine;
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (6)
Syntax\SyntaxTokenFactoryTests.vb (6)
147Dim SourceText = "#if true then" & Environment.NewLine & "a + " & Environment.NewLine & "#end if" & Environment.NewLine & " + b" 159Assert.Equal("#if true then" & Environment.NewLine & "a + " & Environment.NewLine, expr2.ToFullString()) 228Dim id = SyntaxFactory.ParseToken("a ' goo " & Environment.NewLine)
Microsoft.CodeAnalysis.Workspaces (6)
Log\WorkspaceErrorLogger.cs (1)
25=> exception.Message + Environment.NewLine + exception.StackTrace;
src\Compilers\Core\Portable\InternalUtilities\FailFast.cs (1)
108Fail("ASSERT FAILED" + Environment.NewLine + message);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (1)
48_ => Environment.NewLine
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\LineFormattingOptions.cs (1)
19[DataMember] public string NewLine { get; init; } = Environment.NewLine;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
284: reason + Environment.NewLine + restString;
Storage\SQLite\v2\Interop\SqlConnection.cs (1)
449NativeMethods.sqlite3_errmsg(handle) + Environment.NewLine +
Microsoft.CodeAnalysis.Workspaces.MSBuild (5)
MSBuild\BuildHostProcessManager.cs (2)
461_logger.LogError("The BuildHost process is not responding. Process output:{newLine}{processLog}", Environment.NewLine, processLog); 463_logger.LogError("The BuildHost process exited with {errorCode}. Process output:{newLine}{processLog}", _process.ExitCode, Environment.NewLine, processLog);
MSBuild\DiagnosticReporterLoggerProvider.cs (1)
53message += Environment.NewLine + exception.ToString();
Rpc\RpcClient.cs (2)
67var message = $"Failed to deserialize response from build host:{Environment.NewLine}{line}"; 161var requestJson = JsonConvert.SerializeObject(request, JsonSettings.SingleLineSerializerSettings) + Environment.NewLine;
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
BuildHostLogger.cs (1)
31output.Write(Environment.NewLine);
src\Compilers\Core\Portable\InternalUtilities\FailFast.cs (1)
108Fail("ASSERT FAILED" + Environment.NewLine + message);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (3)
NetCoreTests.cs (2)
369Assert.True(actualNames.SetEquals(expectedNames), $"Project names differ!{Environment.NewLine}Actual: {{{actualNames.Join(",")}}}{Environment.NewLine}Expected: {{{expectedNames.Join(",")}}}");
NewlyCreatedProjectsFromDotNetNew.cs (1)
255throw new InvalidOperationException(string.Join(Environment.NewLine,
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (3)
MEF\ExportProviderCache.cs (1)
169"Failed to construct the MEF catalog for testing. Multiple exports were found for a part for which only one export is expected:" + Environment.NewLine
Workspaces\TestWorkspace`1.cs (2)
105: $"{title}:{Environment.NewLine}{Environment.NewLine}{message}";
Microsoft.CommonLanguageServerProtocol.Framework.Package (4)
AbstractLanguageServer.cs (4)
125throw new InvalidOperationException($"Language specific handlers for {methodGroup.Key} have mis-matched number of parameters:{Environment.NewLine}{string.Join(Environment.NewLine, methodGroup)}"); 130throw new InvalidOperationException($"Language specific handlers for {methodGroup.Key} have mis-matched number of returns:{Environment.NewLine}{string.Join(Environment.NewLine, methodGroup)}");
Microsoft.Data.Analysis (1)
TextFieldParser.cs (1)
181private readonly char[] _newLineChars = Environment.NewLine.ToCharArray();
Microsoft.Data.Analysis.Tests (1)
src\Microsoft.Data.Analysis\TextFieldParser.cs (1)
181private readonly char[] _newLineChars = Environment.NewLine.ToCharArray();
Microsoft.DotNet.Arcade.Sdk (1)
src\GenerateResxSource.cs (1)
248namespaceStart = $@"namespace {namespaceName}{Environment.NewLine}{{";
Microsoft.DotNet.AsmDiff (1)
DiffRecorder.cs (1)
133WriteToken(DiffTokenKind.LineBreak, Environment.NewLine);
Microsoft.DotNet.Build.Tasks.Feed (12)
src\ConfigureInputFeed.cs (12)
33string nugetConfigBody = $"<?xml version=\"1.0\" encoding=\"utf-8\"?>{Environment.NewLine}<configuration>{Environment.NewLine}"; 34nugetConfigBody += $"<!--Don't use any higher level config files.{Environment.NewLine}Our builds need to be isolated from user/ machine state-->{Environment.NewLine}"; 35nugetConfigBody += $"<fallbackPackageFolders>{Environment.NewLine}<clear />{Environment.NewLine}</fallbackPackageFolders>{Environment.NewLine}<packageSources>{Environment.NewLine}<clear />{Environment.NewLine}"; 38nugetConfigBody += $"<add key=\"inputFeed{i}\" value=\"{ EnableFeeds[i].ItemSpec }\" />{Environment.NewLine}"; 40nugetConfigBody += $"</packageSources>{Environment.NewLine}"; 41nugetConfigBody += $"</configuration>{Environment.NewLine}";
Microsoft.DotNet.Build.Tasks.Installers (1)
src\GenerateJsonObjectString.cs (1)
121new[] {Environment.NewLine},
Microsoft.DotNet.Build.Tasks.VisualStudio (3)
OptProf\GetRunSettingsSessionConfiguration.cs (3)
92$"Unable to read bootstrapper info: {e.Message}{Environment.NewLine}" + 93$"Content of BootstrapperInfo.json:{Environment.NewLine}" + 133Environment.NewLine,
Microsoft.DotNet.Helix.Sdk (1)
InstallDotNetTool.cs (1)
175Environment.NewLine + (string.IsNullOrEmpty(result.StdErr) ? result.StdOut : result.StdErr));
Microsoft.DotNet.NuGetRepack.Tests (1)
TestHelpers\DiffUtil.cs (1)
96return DiffReport(exlines, aclines, separator: Environment.NewLine);
Microsoft.DotNet.Open.Api.Tools.Tests (1)
OpenApiAddURLTests.cs (1)
431"indicating failure. The url might be wrong, or there might be a networking issue." + Environment.NewLine, _error.ToString());
Microsoft.DotNet.RemoteExecutor (1)
RemoteExecutor.cs (1)
538"," + Environment.NewLine,
Microsoft.DotNet.SharedFramework.Sdk (1)
src\ValidateFileVersions.cs (1)
86string.Concat(versionlessFiles.Select(f => Environment.NewLine + f)));
Microsoft.DotNet.SignTool.Tests (1)
SignToolTests.cs (1)
360var actualXmlElementsPerSigningRound = buildEngine.FilesToSign.Select(round => string.Join(Environment.NewLine, round));
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 +
BooleanAssertsTests.cs (8)
22 "Assert.False() Failure" + Environment.NewLine + 23 "Expected: False" + Environment.NewLine + 36 "Assert.False() Failure" + Environment.NewLine + 37 "Expected: False" + Environment.NewLine + 70 "Assert.True() Failure" + Environment.NewLine + 71 "Expected: True" + Environment.NewLine + 84 "Assert.True() Failure" + Environment.NewLine + 85 "Expected: True" + 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 +
DictionaryAssertsTests.cs (4)
47 "Assert.Contains() Failure: Key not found in dictionary" + Environment.NewLine + 48 "Keys: [\"eleventeen\"]" + Environment.NewLine + 99 "Assert.DoesNotContain() Failure: Key found in dictionary" + Environment.NewLine + 100 "Keys: [\"forty-two\"]" + 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 +
EventAssertsTests.cs (28)
25 "Assert.Raises() Failure: No event was raised" + Environment.NewLine + 26 "Expected: typeof(object)" + Environment.NewLine + 82 "Assert.Raises() Failure: Wrong event type was raised" + Environment.NewLine + 83 "Expected: typeof(object)" + Environment.NewLine + 107 "Assert.Raises() Failure: No event was raised" + Environment.NewLine + 108 "Expected: typeof(object)" + Environment.NewLine + 147 "Assert.Raises() Failure: Wrong event type was raised" + Environment.NewLine + 148 "Expected: typeof(object)" + Environment.NewLine + 192 "Assert.RaisesAny() Failure: No event was raised" + Environment.NewLine + 193 "Expected: typeof(object)" + Environment.NewLine + 251 "Assert.RaisesAny() Failure: No event was raised" + Environment.NewLine + 252 "Expected: typeof(object)" + Environment.NewLine + 273 "Assert.RaisesAny() Failure: No event was raised" + Environment.NewLine + 274 "Expected: typeof(System.EventArgs)" + Environment.NewLine + 366 "Assert.RaisesAny() Failure: No event was raised" + Environment.NewLine + 367 "Expected: typeof(object)" + Environment.NewLine + 425 "Assert.RaisesAny() Failure: No event was raised" + Environment.NewLine + 426 "Expected: typeof(object)" + Environment.NewLine + 447 "Assert.RaisesAny() Failure: No event was raised" + Environment.NewLine + 448 "Expected: typeof(System.EventArgs)" + Environment.NewLine + 540 "Assert.Raises() Failure: No event was raised" + Environment.NewLine + 541 "Expected: typeof(object)" + Environment.NewLine + 597 "Assert.Raises() Failure: Wrong event type was raised" + Environment.NewLine + 598 "Expected: typeof(object)" + Environment.NewLine + 622 "Assert.Raises() Failure: No event was raised" + Environment.NewLine + 623 "Expected: typeof(object)" + Environment.NewLine + 662 "Assert.Raises() Failure: Wrong event type was raised" + Environment.NewLine + 663 "Expected: typeof(object)" + Environment.NewLine +
ExceptionAssertsTests.cs (58)
31 "Assert.Throws() Failure: No exception was thrown" + Environment.NewLine + 56 "Assert.Throws() Failure: Exception type was not an exact match" + Environment.NewLine + 57 "Expected: typeof(System.ArgumentException)" + Environment.NewLine + 74 "Assert.Throws() Failure: Exception type was not an exact match" + Environment.NewLine + 75 "Expected: typeof(System.ArgumentException)" + Environment.NewLine + 114 "Assert.Throws() Failure: No exception was thrown" + Environment.NewLine + 139 "Assert.Throws() Failure: Exception type was not an exact match" + Environment.NewLine + 140 "Expected: typeof(System.ArgumentException)" + Environment.NewLine + 157 "Assert.Throws() Failure: Exception type was not an exact match" + Environment.NewLine + 158 "Expected: typeof(System.ArgumentException)" + Environment.NewLine + 187 "Assert.Throws() Failure: No exception was thrown" + Environment.NewLine + 212 "Assert.Throws() Failure: Exception type was not an exact match" + Environment.NewLine + 213 "Expected: typeof(System.ArgumentException)" + Environment.NewLine + 230 "Assert.Throws() Failure: Exception type was not an exact match" + Environment.NewLine + 231 "Expected: typeof(System.ArgumentException)" + Environment.NewLine + 267 "Assert.Throws() Failure: No exception was thrown" + Environment.NewLine + 292 "Assert.Throws() Failure: Exception type was not an exact match" + Environment.NewLine + 293 "Expected: typeof(System.ArgumentException)" + Environment.NewLine + 310 "Assert.Throws() Failure: Exception type was not an exact match" + Environment.NewLine + 311 "Expected: typeof(System.ArgumentException)" + Environment.NewLine + 339 "Assert.Throws() Failure: No exception was thrown" + Environment.NewLine + 363 "Assert.Throws() Failure: Incorrect parameter name" + Environment.NewLine + 364 "Exception: typeof(System.ArgumentException)" + Environment.NewLine + 365 "Expected: \"paramName2\"" + Environment.NewLine + 381 "Assert.Throws() Failure: Exception type was not an exact match" + Environment.NewLine + 382 "Expected: typeof(System.ArgumentException)" + Environment.NewLine + 399 "Assert.Throws() Failure: Exception type was not an exact match" + Environment.NewLine + 400 "Expected: typeof(System.ArgumentException)" + Environment.NewLine + 425 "Assert.Throws() Failure: No exception was thrown" + Environment.NewLine + 449 "Assert.Throws() Failure: Incorrect parameter name" + Environment.NewLine + 450 "Exception: typeof(System.ArgumentException)" + Environment.NewLine + 451 "Expected: \"paramName2\"" + Environment.NewLine + 467 "Assert.Throws() Failure: Exception type was not an exact match" + Environment.NewLine + 468 "Expected: typeof(System.ArgumentException)" + Environment.NewLine + 485 "Assert.Throws() Failure: Exception type was not an exact match" + Environment.NewLine + 486 "Expected: typeof(System.ArgumentException)" + Environment.NewLine + 514 "Assert.ThrowsAny() Failure: No exception was thrown" + Environment.NewLine + 539 "Assert.ThrowsAny() Failure: Exception type was not compatible" + Environment.NewLine + 540 "Expected: typeof(System.ArgumentException)" + Environment.NewLine + 584 "Assert.ThrowsAny() Failure: No exception was thrown" + Environment.NewLine + 609 "Assert.ThrowsAny() Failure: Exception type was not compatible" + Environment.NewLine + 610 "Expected: typeof(System.ArgumentException)" + Environment.NewLine + 644 "Assert.ThrowsAny() Failure: No exception was thrown" + Environment.NewLine + 669 "Assert.ThrowsAny() Failure: Exception type was not compatible" + Environment.NewLine + 670 "Expected: typeof(System.ArgumentException)" + Environment.NewLine + 703 "Assert.Throws() Failure: No exception was thrown" + Environment.NewLine + 728 "Assert.Throws() Failure: Exception type was not an exact match" + Environment.NewLine + 729 "Expected: typeof(System.ArgumentException)" + Environment.NewLine + 746 "Assert.Throws() Failure: Exception type was not an exact match" + Environment.NewLine + 747 "Expected: typeof(System.ArgumentException)" + Environment.NewLine + 772 "Assert.Throws() Failure: No exception was thrown" + Environment.NewLine + 796 "Assert.Throws() Failure: Incorrect parameter name" + Environment.NewLine + 797 "Exception: typeof(System.ArgumentException)" + Environment.NewLine + 798 "Expected: \"paramName2\"" + Environment.NewLine + 814 "Assert.Throws() Failure: Exception type was not an exact match" + Environment.NewLine + 815 "Expected: typeof(System.ArgumentException)" + Environment.NewLine + 832 "Assert.Throws() Failure: Exception type was not an exact match" + Environment.NewLine + 833 "Expected: typeof(System.ArgumentException)" + Environment.NewLine +
IdentityAssertsTests.cs (2)
44 "Assert.Same() Failure: Values are not the same instance" + Environment.NewLine + 45 "Expected: \"bob\"" + 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 +
NullAssertsTests.cs (4)
70 "Assert.Null() Failure: Value is not null" + Environment.NewLine + 71 "Expected: null" + Environment.NewLine + 86 "Assert.Null() Failure: Value of type 'Nullable<int>' has a value" + Environment.NewLine + 87 "Expected: null" + Environment.NewLine +
RangeAssertsTests.cs (18)
21 "Assert.InRange() Failure: Value not in range" + Environment.NewLine + 22 $"Range: ({0.75:G17} - {1.25:G17})" + Environment.NewLine + 41 "Assert.InRange() Failure: Value not in range" + Environment.NewLine + 42 "Range: (1 - 2)" + Environment.NewLine + 55 "Assert.InRange() Failure: Value not in range" + Environment.NewLine + 56 "Range: (0 - 1)" + Environment.NewLine + 75 "Assert.InRange() Failure: Value not in range" + Environment.NewLine + 76 "Range: (\"bob\" - \"scott\")" + Environment.NewLine + 108 "Assert.InRange() Failure: Value not in range" + Environment.NewLine + 109 $"Range: ({0.75:G17} - {1.25:G17})" + Environment.NewLine + 131 "Assert.NotInRange() Failure: Value in range" + Environment.NewLine + 132 $"Range: ({0.75:G17} - {1.25:G17})" + Environment.NewLine + 151 "Assert.NotInRange() Failure: Value in range" + Environment.NewLine + 152 "Range: (1 - 3)" + Environment.NewLine + 171 "Assert.NotInRange() Failure: Value in range" + Environment.NewLine + 172 "Range: (\"adam\" - \"scott\")" + Environment.NewLine + 188 "Assert.NotInRange() Failure: Value in range" + Environment.NewLine + 189 $"Range: ({0.75:G17} - {1.25:G17})" + 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 +
TypeAssertsTests.cs (32)
24 "Assert.IsAssignableFrom() Failure: Value is null" + Environment.NewLine + 25 "Expected: typeof(object)" + Environment.NewLine + 75 "Assert.IsAssignableFrom() Failure: Value is an incompatible type" + Environment.NewLine + 76 "Expected: typeof(System.InvalidCastException)" + Environment.NewLine + 93 "Assert.IsAssignableFrom() Failure: Value is null" + Environment.NewLine + 94 "Expected: typeof(object)" + Environment.NewLine + 144 "Assert.IsAssignableFrom() Failure: Value is an incompatible type" + Environment.NewLine + 145 "Expected: typeof(System.InvalidCastException)" + Environment.NewLine + 170 "Assert.IsNotAssignableFrom() Failure: Value is a compatible type" + Environment.NewLine + 171 "Expected: typeof(System.InvalidCastException)" + Environment.NewLine + 186 "Assert.IsNotAssignableFrom() Failure: Value is a compatible type" + Environment.NewLine + 187 "Expected: typeof(System.Exception)" + Environment.NewLine + 202 "Assert.IsNotAssignableFrom() Failure: Value is a compatible type" + Environment.NewLine + 203 "Expected: typeof(System.IDisposable)" + Environment.NewLine + 233 "Assert.IsNotAssignableFrom() Failure: Value is a compatible type" + Environment.NewLine + 234 "Expected: typeof(System.InvalidCastException)" + Environment.NewLine + 249 "Assert.IsNotAssignableFrom() Failure: Value is a compatible type" + Environment.NewLine + 250 "Expected: typeof(System.Exception)" + Environment.NewLine + 265 "Assert.IsNotAssignableFrom() Failure: Value is a compatible type" + Environment.NewLine + 266 "Expected: typeof(System.IDisposable)" + Environment.NewLine + 296 "Assert.IsNotType() Failure: Value is the exact type" + Environment.NewLine + 297 "Expected: typeof(System.InvalidCastException)" + Environment.NewLine + 328 "Assert.IsNotType() Failure: Value is the exact type" + Environment.NewLine + 329 "Expected: typeof(System.InvalidCastException)" + Environment.NewLine + 370 "Assert.IsType() Failure: Value is not the exact type" + Environment.NewLine + 371 "Expected: typeof(System.InvalidCastException)" + Environment.NewLine + 406 "Assert.IsType() Failure: Value is null" + Environment.NewLine + 407 "Expected: typeof(object)" + Environment.NewLine + 432 "Assert.IsType() Failure: Value is not the exact type" + Environment.NewLine + 433 "Expected: typeof(System.InvalidCastException)" + Environment.NewLine + 468 "Assert.IsType() Failure: Value is null" + Environment.NewLine + 469 "Expected: typeof(object)" + Environment.NewLine +
Microsoft.DotNet.XUnitExtensions (1)
src\Microsoft.DotNet.XUnitExtensions.Shared\DesktopTraceListener.cs (1)
26base(message + Environment.NewLine + detailMessage)
Microsoft.DotNet.XUnitV3Extensions (1)
src\Microsoft.DotNet.XUnitExtensions.Shared\DesktopTraceListener.cs (1)
26base(message + Environment.NewLine + detailMessage)
Microsoft.Extensions.AI.Abstractions.Tests (4)
ChatCompletion\ChatResponseTests.cs (1)
122ChatResponse response = new(new ChatMessage(ChatRole.Assistant, $"This is a test.{Environment.NewLine}It's multiple lines."));
SpeechToText\SpeechToTextResponseTests.cs (2)
184SpeechToTextResponse response = new("This is a test." + Environment.NewLine + "It's multiple lines."); 185Assert.Equal("This is a test." + Environment.NewLine + "It's multiple lines.", response.ToString());
test\Shared\JsonSchemaExporter\SchemaTestHelpers.cs (1)
47{string.Join(Environment.NewLine, errors)}
Microsoft.Extensions.AI.Evaluation.Safety (2)
ContentSafetyEvaluator.cs (1)
122string.Join(Environment.NewLine, textContents.Select(c => c.Text)) is string contextString &&
ContentSafetyServicePayloadUtilities.cs (1)
137userTextListStrings = [string.Join(Environment.NewLine, userTextListStrings)];
Microsoft.Extensions.AI.Integration.Tests (3)
VerbatimHttpHandler.cs (3)
93$"Expected:{Environment.NewLine}" + 94$"{expected}{Environment.NewLine}" + 95$"Actual:{Environment.NewLine}" +
Microsoft.Extensions.AI.Tests (1)
ChatCompletion\ChatClientStructuredOutputExtensionsTests.cs (1)
385var resultDuplicatedJson = JsonSerializer.Serialize(expectedResult, JsonContext2.Default.Options) + Environment.NewLine + JsonSerializer.Serialize(expectedResult, JsonContext2.Default.Options);
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (2)
Infrastructure\RedisTestConfig.cs (2)
185+ tempRedisServerFullPath + " with Arguments '" + serverArgs + "', working dir = " + tempPath + Environment.NewLine 186+ _redisServerProcess.StandardError.ReadToEnd() + Environment.NewLine
Microsoft.Extensions.Configuration.KeyPerFile (2)
KeyPerFileConfigurationProvider.cs (2)
46=> value.EndsWith(Environment.NewLine, StringComparison.Ordinal) 47? value.Substring(0, value.Length - Environment.NewLine.Length)
Microsoft.Extensions.DependencyInjection (2)
ServiceLookup\CallSiteFactory.cs (1)
639Environment.NewLine,
ServiceLookup\DynamicServiceProviderEngine.cs (1)
44Debug.Fail($"We should never get exceptions from the background compilation.{Environment.NewLine}{ex}");
Microsoft.Extensions.Hosting (1)
Internal\HostingLoggerExtensions.cs (1)
21message = message + Environment.NewLine + ex.Message;
Microsoft.Extensions.Http (2)
DependencyInjection\SocketsHttpHandlerBuilderExtensions.cs (1)
36string message = SR.Format(SR.SocketsHttpHandlerBuilder_PrimaryHandlerIsInvalid, nameof(b.PrimaryHandler), typeof(SocketsHttpHandler).FullName, Environment.NewLine, b.PrimaryHandler?.ToString() ?? "(null)");
HttpMessageHandlerBuilder.cs (1)
109Environment.NewLine,
Microsoft.Extensions.Logging.AzureAppServices (1)
BatchingLoggerProvider.cs (1)
103_currentBatch.Add(new LogMessage(DateTimeOffset.Now, $"{messagesDropped} message(s) dropped because of queue size limit. Increase the queue size or decrease logging verbosity to avoid this.{Environment.NewLine}"));
Microsoft.Extensions.Logging.Console (11)
ConsoleLoggerProcessor.cs (1)
133message: SR.Format(SR.WarningMessageOnDrop + Environment.NewLine, _messagesDropped),
JsonConsoleFormatter.cs (1)
123textWriter.Write(Environment.NewLine);
SimpleConsoleFormatter.cs (7)
17private static readonly string _newLineWithMessagePadding = Environment.NewLine + _messagePadding; 111textWriter.Write(Environment.NewLine); 128textWriter.Write(Environment.NewLine); 139WriteReplacing(textWriter, Environment.NewLine, " ", message); 144WriteReplacing(textWriter, Environment.NewLine, _newLineWithMessagePadding, message); 145textWriter.Write(Environment.NewLine); 223textWriter.Write(Environment.NewLine);
SystemdConsoleFormatter.cs (2)
104textWriter.Write(Environment.NewLine); 108string newMessage = message.Replace(Environment.NewLine, " ");
Microsoft.Extensions.Logging.Debug (2)
DebugLogger.cs (2)
59message += Environment.NewLine + Environment.NewLine + exception;
Microsoft.Extensions.ObjectPool (1)
LeakTrackingObjectPool.cs (1)
78Debug.Fail($"{typeof(T).Name} was leaked. Created at: {Environment.NewLine}{_stack}");
Microsoft.Extensions.SecretManager.Tools.Tests (2)
InitCommandTest.cs (2)
106var lineCountWithoutSecret = projectDocumentWithoutSecret.ToString().Split(Environment.NewLine).Length; 111var lineCountWithSecret = projectDocumentWithSecret.ToString().Split(Environment.NewLine).Length;
Microsoft.Extensions.Telemetry (4)
Latency\Internal\LatencyConsoleExporter.cs (2)
21private static readonly CompositeFormat _title = CompositeFormat.Parse("Latency sample #{0}: {1}ms, {2} checkpoints, {3} tags, {4} measures" + Environment.NewLine); 22private static readonly Func<int, CompositeFormat> _rows = Memoize.Function((int nameColumnWidth) => CompositeFormat.Parse($" {{0,-{nameColumnWidth}}} | {{1}}" + Environment.NewLine));
Logging\ExtendedLogger.cs (2)
192trace = trace.Replace(Environment.NewLine, Environment.NewLine + indentStr + " ", StringComparison.Ordinal).Trim(' ');
Microsoft.Extensions.Telemetry.Tests (1)
Latency\Internal\LatencyConsoleExporterTests.cs (1)
155private static string NormalizeLineEndings(string value) => value.Replace("\r\n", "\n").Replace("\r", "\n").Replace("\n", Environment.NewLine);
Microsoft.Gen.MetricsReports.Unit.Tests (1)
EmitterTests.cs (1)
131string newLine = Environment.NewLine;
Microsoft.Maui.Resizetizer (2)
AppleIconAssetsGenerator.cs (1)
78 {{string.Join("," + Environment.NewLine, appIconImagesJson)}}
AsyncTask.cs (1)
69 LogError(ex.Message + Environment.NewLine + ex.StackTrace);
Microsoft.ML.AutoML.SourceGenerator (15)
Template\EstimatorType.cs (3)
168if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture)) 180textToAppend = textToAppend.Replace(global::System.Environment.NewLine, (global::System.Environment.NewLine + this.currentIndentField));
Template\SearchSpace.cs (3)
185if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture)) 197textToAppend = textToAppend.Replace(global::System.Environment.NewLine, (global::System.Environment.NewLine + this.currentIndentField));
Template\SweepableEstimator.cs (3)
187if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture)) 199textToAppend = textToAppend.Replace(global::System.Environment.NewLine, (global::System.Environment.NewLine + this.currentIndentField));
Template\SweepableEstimator_T_.cs (3)
192if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture)) 204textToAppend = textToAppend.Replace(global::System.Environment.NewLine, (global::System.Environment.NewLine + this.currentIndentField));
Template\SweepableEstimatorFactory.cs (3)
163if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture)) 175textToAppend = textToAppend.Replace(global::System.Environment.NewLine, (global::System.Environment.NewLine + this.currentIndentField));
Microsoft.ML.AutoML.Tests (1)
TrialResultManagerTest.cs (1)
83fileContent = fileContent.Replace(Environment.NewLine, "\r");
Microsoft.ML.CodeGenerator (30)
Templates\Azure\Console\AzureModelBuilder.cs (3)
262if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture)) 274textToAppend = textToAppend.Replace(global::System.Environment.NewLine, (global::System.Environment.NewLine + this.currentIndentField));
Templates\Azure\Model\AzureImageModelOutputClass.cs (3)
203if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture)) 215textToAppend = textToAppend.Replace(global::System.Environment.NewLine, (global::System.Environment.NewLine + this.currentIndentField));
Templates\Azure\Model\AzureObjectDetectionModelOutputClass.cs (3)
203if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture)) 215textToAppend = textToAppend.Replace(global::System.Environment.NewLine, (global::System.Environment.NewLine + this.currentIndentField));
Templates\Console\ConsumeModel.cs (3)
214if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture)) 226textToAppend = textToAppend.Replace(global::System.Environment.NewLine, (global::System.Environment.NewLine + this.currentIndentField));
Templates\Console\ModelBuilder.cs (3)
579if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture)) 591textToAppend = textToAppend.Replace(global::System.Environment.NewLine, (global::System.Environment.NewLine + this.currentIndentField));
Templates\Console\ModelInputClass.cs (3)
177if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture)) 189textToAppend = textToAppend.Replace(global::System.Environment.NewLine, (global::System.Environment.NewLine + this.currentIndentField));
Templates\Console\ModelOutputClass.cs (3)
220if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture)) 232textToAppend = textToAppend.Replace(global::System.Environment.NewLine, (global::System.Environment.NewLine + this.currentIndentField));
Templates\Console\ModelProject.cs (3)
209if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture)) 221textToAppend = textToAppend.Replace(global::System.Environment.NewLine, (global::System.Environment.NewLine + this.currentIndentField));
Templates\Console\PredictProgram.cs (3)
236if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture)) 248textToAppend = textToAppend.Replace(global::System.Environment.NewLine, (global::System.Environment.NewLine + this.currentIndentField));
Templates\Console\PredictProject.cs (3)
214if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture)) 226textToAppend = textToAppend.Replace(global::System.Environment.NewLine, (global::System.Environment.NewLine + this.currentIndentField));
Microsoft.ML.Core (2)
ComponentModel\ComponentCatalog.cs (2)
1063errorMsg = err + Environment.NewLine + "Usage For '" + name + "':" + Environment.NewLine + helpText;
Microsoft.ML.Core.Tests (1)
UnitTests\TestEntryPoints.cs (1)
346.Replace(Environment.NewLine, ""))
Microsoft.ML.Data (1)
Dirty\ModelParametersBase.cs (1)
88ch.Warning(NormalizerWarningFormat, typePredictor, Environment.NewLine);
Microsoft.ML.PerformanceTests (1)
Harness\ProjectGenerator.cs (1)
70return string.Join(Environment.NewLine, File.ReadAllLines(csproj.FullName).Where(line => line.Contains("<NativeAssemblyReference")));
Microsoft.ML.Samples (2)
Dynamic\Transforms\NormalizeMinMaxMulticolumn.cs (2)
87Console.WriteLine(Environment.NewLine); 109Console.WriteLine(Environment.NewLine);
Microsoft.ML.TestFramework (5)
BaseTestBaseline.cs (5)
660var message = iterationOnCollection != null ? "" : $"Output and baseline mismatch at line {iterationOnCollection}." + Environment.NewLine; 664$"Values to compare are {expected} and {actual}" + Environment.NewLine + 665$"\t AllowedVariance: {allowedVariance}" + Environment.NewLine + 666$"\t delta: {delta}" + Environment.NewLine + 667$"\t delta2: {delta2}" + Environment.NewLine);
Microsoft.ML.Tokenizers (4)
Model\CodeGenTokenizer.cs (2)
1756throw new ArgumentException($"Problems met when parsing JSON vocabulary object.{Environment.NewLine}Error message: {e.Message}"); 1796throw new IOException($"Cannot read the file Merge file.{Environment.NewLine}Error message: {e.Message}", e);
Model\EnglishRobertaTokenizer.cs (2)
188throw new ArgumentException($"Problems met when parsing JSON vocabulary object.{Environment.NewLine}Error message: {e.Message}"); 228throw new IOException($"Cannot read the file Merge file.{Environment.NewLine}Error message: {e.Message}", e);
Microsoft.ML.Tokenizers.Tests (2)
BpeTests.cs (2)
601string result = $"[{string.Join(", ", encoding.Select(t => $"{t.Id}"))} ] {Environment.NewLine}"; 602result += $"[{string.Join(", ", encoding.Select(t => $"\"{t.Value}\""))} ] {Environment.NewLine}";
Microsoft.VisualStudio.IntegrationTest.Setup (4)
TestTraceListener.cs (4)
71Debugger.Log(0, null, o?.ToString() + Environment.NewLine); 79Debugger.Log(0, category, o?.ToString() + Environment.NewLine); 87Debugger.Log(0, null, message + Environment.NewLine); 95Debugger.Log(0, category, message + Environment.NewLine);
Microsoft.VisualStudio.LanguageServices (17)
ErrorReporting\VisualStudioErrorReportingService.cs (1)
95string.Join(Environment.NewLine, message, detailedError));
ErrorReporting\VisualStudioErrorReportingService.ExceptionFormatting.cs (5)
40text = $"{text}{Environment.NewLine}---> (Inner Exception #{i}) {GetFormattedExceptionStack(aggregate.InnerExceptions[i])} <--- {Environment.NewLine}"; 66stackText += " ---> " + GetFormattedExceptionStack(innerException) + Environment.NewLine + 71return stackText + Environment.NewLine + GetAsyncStackTrace(exception); 89return string.Join(Environment.NewLine, stackFrameLines);
Log\VisualStudioErrorLogger.cs (1)
38=> exception.Message + Environment.NewLine + exception.StackTrace;
PdbSourceDocument\PdbSourceDocumentOutputWindowLogger.cs (2)
68noPumpPane.OutputStringNoPump(message + Environment.NewLine); 72pane.OutputStringThreadSafe(message + Environment.NewLine);
PreviewPane\PreviewPane.xaml.cs (2)
32private static readonly string s_dummyThreeLineTitle = "A" + Environment.NewLine + "A" + Environment.NewLine + "A";
Snippets\SnippetExpansionClient.cs (4)
1114string.Format(ServicesVSResources.The_following_references_were_not_found_0_Please_locate_and_add_them_manually, Environment.NewLine) 1115+ Environment.NewLine + Environment.NewLine 1116+ string.Join(Environment.NewLine, failedReferenceAdditions),
Venus\ContainedLanguageCodeSupport.cs (2)
241if (!newMemberText.EndsWith(Environment.NewLine, StringComparison.Ordinal)) 243newMemberText += Environment.NewLine;
MSBuild (6)
CommandLineSwitchException.cs (1)
75return base.Message + Environment.NewLine + ResourceUtilities.FormatResourceStringStripCodeAndKeyword("InvalidSwitchIndicator", commandLineArg);
ExceptionHandling.cs (3)
396builder.Append(Environment.NewLine); 399builder.Append(Environment.NewLine); 401builder.Append(Environment.NewLine);
InitializationException.cs (2)
80return base.Message + Environment.NewLine + ResourceUtilities.FormatResourceStringStripCodeAndKeyword("InvalidSwitchIndicator", invalidSwitch); 149errorMessage += Environment.NewLine + e.ToString();
MSBuildTaskHost (4)
Constants.cs (1)
134internal static readonly string[] EnvironmentNewLine = [Environment.NewLine];
ExceptionHandling.cs (3)
396builder.Append(Environment.NewLine); 399builder.Append(Environment.NewLine); 401builder.Append(Environment.NewLine);
NativeIISSample (42)
Startup.cs (42)
36await context.Response.WriteAsync("Hello World - " + DateTimeOffset.Now + Environment.NewLine); 37await context.Response.WriteAsync(Environment.NewLine); 39await context.Response.WriteAsync("Address:" + Environment.NewLine); 40await context.Response.WriteAsync("Scheme: " + context.Request.Scheme + Environment.NewLine); 41await context.Response.WriteAsync("Host: " + context.Request.Headers["Host"] + Environment.NewLine); 42await context.Response.WriteAsync("PathBase: " + context.Request.PathBase.Value + Environment.NewLine); 43await context.Response.WriteAsync("Path: " + context.Request.Path.Value + Environment.NewLine); 44await context.Response.WriteAsync("Query: " + context.Request.QueryString.Value + Environment.NewLine); 45await context.Response.WriteAsync(Environment.NewLine); 47await context.Response.WriteAsync("Connection:" + Environment.NewLine); 48await context.Response.WriteAsync("RemoteIp: " + context.Connection.RemoteIpAddress + Environment.NewLine); 49await context.Response.WriteAsync("RemotePort: " + context.Connection.RemotePort + Environment.NewLine); 50await context.Response.WriteAsync("LocalIp: " + context.Connection.LocalIpAddress + Environment.NewLine); 51await context.Response.WriteAsync("LocalPort: " + context.Connection.LocalPort + Environment.NewLine); 52await context.Response.WriteAsync("ClientCert: " + context.Connection.ClientCertificate + Environment.NewLine); 53await context.Response.WriteAsync(Environment.NewLine); 55await context.Response.WriteAsync("User: " + context.User.Identity.Name + Environment.NewLine); 59await context.Response.WriteAsync("DisplayName: " + scheme?.DisplayName + Environment.NewLine); 62await context.Response.WriteAsync(Environment.NewLine); 64await context.Response.WriteAsync("Headers:" + Environment.NewLine); 67await context.Response.WriteAsync(header.Key + ": " + header.Value + Environment.NewLine); 69await context.Response.WriteAsync(Environment.NewLine); 71await context.Response.WriteAsync("Environment Variables:" + Environment.NewLine); 76await context.Response.WriteAsync(key + ": " + value + Environment.NewLine); 78await context.Response.WriteAsync(Environment.NewLine); 81await context.Response.WriteAsync("Server Variables:" + Environment.NewLine); 85await context.Response.WriteAsync(varName + ": " + context.GetServerVariable(varName) + Environment.NewLine); 88await context.Response.WriteAsync(Environment.NewLine); 98await context.Response.WriteAsync(Environment.NewLine); 104await context.Response.WriteAsync(key + Environment.NewLine); 109await context.Response.WriteAsync(Environment.NewLine); 110await context.Response.WriteAsync("IIS Environment Information:" + Environment.NewLine); 111await context.Response.WriteAsync("IIS Version: " + envFeature.IISVersion + Environment.NewLine); 112await context.Response.WriteAsync("ApplicationId: " + envFeature.ApplicationId + Environment.NewLine); 113await context.Response.WriteAsync("Application Path: " + envFeature.ApplicationPhysicalPath + Environment.NewLine); 114await context.Response.WriteAsync("Application Virtual Path: " + envFeature.ApplicationVirtualPath + Environment.NewLine); 115await context.Response.WriteAsync("Application Config Path: " + envFeature.AppConfigPath + Environment.NewLine); 116await context.Response.WriteAsync("AppPool ID: " + envFeature.AppPoolId + Environment.NewLine); 117await context.Response.WriteAsync("AppPool Config File: " + envFeature.AppPoolConfigFile + Environment.NewLine); 118await context.Response.WriteAsync("Site ID: " + envFeature.SiteId + Environment.NewLine); 119await context.Response.WriteAsync("Site Name: " + envFeature.SiteName + Environment.NewLine); 123await context.Response.WriteAsync($"No {nameof(IIISEnvironmentFeature)} available." + Environment.NewLine);
PhotinoTestApp (2)
Program.cs (2)
29"Fatal exception" + Environment.NewLine + 30error.ExceptionObject.ToString() + Environment.NewLine);
PresentationBuildTasks (2)
MS\Internal\Tasks\TaskHelper.cs (2)
52log.LogMessage(MessageImportance.Low,Environment.NewLine); 55log.LogMessage(MessageImportance.Low, Environment.NewLine);
PresentationCore (5)
System\Windows\Input\Stylus\Wisp\PenThreadWorker.cs (5)
151Debug.WriteLine("WorkerOperationGetTabletsInfo.OnDoWork failed due to: {0}{1}", Environment.NewLine, e.ToString()); 207Debug.WriteLine("WorkerOperationCreateContext.OnDoWork failed due to a {0}{1}", Environment.NewLine, e.ToString()); 314Debug.WriteLine("WorkerOperationRefreshCursorInfo.OnDoWork failed due to a {0}{1}", Environment.NewLine, e.ToString()); 356Debug.WriteLine("WorkerOperationGetTabletInfo.OnDoWork failed due to {0}{1}", Environment.NewLine, e.ToString()); 396Debug.WriteLine("WorkerOperationWorkerGetUpdatedSizes.OnDoWork failed due to a {0}{1}", Environment.NewLine, e.ToString());
PresentationFramework (9)
System\windows\Documents\TextEditor.cs (1)
1231int endOfFirstLine = textData.IndexOf(Environment.NewLine, StringComparison.Ordinal);
System\windows\Documents\TextEditorTyping.cs (2)
1134string filteredText = This._FilterText(Environment.NewLine, This.Selection); 1138This.Selection.Text = Environment.NewLine;
System\Windows\Documents\TextRangeBase.cs (4)
694textBuffer.Append(Environment.NewLine); 715textBuffer.Append(Environment.NewLine); 781textBuffer.Append(Environment.NewLine); 787textBuffer.Append(Environment.NewLine);
System\Windows\Documents\TextStore.cs (2)
1491if (!(nextChars[0] == Environment.NewLine[0] && nextChars[1] == Environment.NewLine[1]))
RazorBuildWebSite (2)
UpdateableFileProvider.cs (2)
27new TestFileInfo("@page" + Environment.NewLine + "Original content") 112var file = new TestFileInfo("@page" + Environment.NewLine + "Original content")
Replay (1)
src\Compilers\Core\CommandLine\CompilerServerLogger.cs (1)
154string output = prefix + message + Environment.NewLine;
Roslyn.Compilers.VisualBasic.IOperation.UnitTests (2)
IOperation\IOperationTests_InvalidExpression.vb (2)
943VerifyOperationTreeAndDiagnosticsForTest(Of InvocationExpressionSyntax)("Option Strict On" + Environment.NewLine + source, expectedStrictOperationTree, expectedDiagnostics) 958VerifyOperationTreeAndDiagnosticsForTest(Of InvocationExpressionSyntax)("Option Strict Off" + Environment.NewLine + source, expectedNonStrictOperationTree, expectedDiagnostics:=String.Empty)
Roslyn.Diagnostics.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
175foreach (var line in child.ToString().Split(new[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries))
Roslyn.Test.PdbUtilities (3)
Reader\PdbValidation.cs (3)
144$"PDB format: {format}{Environment.NewLine}", 312$"PDB format: {(isPortable ? "Portable" : "Windows")}{Environment.NewLine}", 353$"PDB format: {(originalIsPortable ? "Windows" : "Portable")} converted from {(originalIsPortable ? "Portable" : "Windows")}{Environment.NewLine}",
Roslyn.VisualStudio.DiagnosticsWindow (2)
Loggers\OutputWindowLogger.cs (1)
81pane.OutputStringThreadSafe(value + Environment.NewLine);
Panels\WorkspacePanel.xaml.cs (1)
112: $"{Environment.NewLine}{outOfDateCount} documents out of date.");
RunTests (10)
ConsoleUtil.cs (1)
18Logger.Log(message + Environment.NewLine);
ProcessTestExecutor.cs (2)
180var standardOutput = string.Join(Environment.NewLine, xunitProcessResult.OutputLines) ?? ""; 181var errorOutput = string.Join(Environment.NewLine, xunitProcessResult.ErrorLines) ?? "";
Program.cs (7)
47ConsoleUtil.WriteLine(string.Join(Environment.NewLine, dotnetResult.OutputLines)); 48ConsoleUtil.WriteLine(ConsoleColor.Red, string.Join(Environment.NewLine, dotnetResult.ErrorLines)); 251ConsoleUtil.WriteLine(string.Join(Environment.NewLine, processOutput.OutputLines)); 267ConsoleUtil.WriteLine(string.Join(Environment.NewLine, output.OutputLines)); 268ConsoleUtil.WriteLine(string.Join(Environment.NewLine, output.ErrorLines)); 331var message = $"Multiple unit test assemblies found in '{targetFrameworkDirectory}'. Please adjust the build to prevent this. Matches:{Environment.NewLine}{string.Join(Environment.NewLine, matches)}";
Security.TransportSecurity.IntegrationTests (3)
Tcp\ClientCredentialTypeCertificateCanonicalNameTests.4.1.0.cs (3)
86errorBuilder.AppendFormat("Exception message: {0}{1}", Environment.NewLine, exception.Message); 162errorBuilder.AppendFormat("Exception message: {0}{1}", Environment.NewLine, exception.Message); 246errorBuilder.AppendFormat("Exception message: {0}{1}", Environment.NewLine, exception.Message);
SemanticSearch.BuildTask (3)
GenerateFilteredReferenceAssembliesTask.cs (3)
82Log.LogError($"GenerateFilteredReferenceAssembliesTask failed with exception:{Environment.NewLine}{e}"); 156var newContent = $"# Generated, do not update manually{Environment.NewLine}" + 157string.Join(Environment.NewLine, apis);
Shared.Tests (1)
JsonSchemaExporter\SchemaTestHelpers.cs (1)
47{string.Join(Environment.NewLine, errors)}
SocialSample (1)
Startup.cs (1)
220context.Failure.Message.Split(Environment.NewLine).Select(s => HtmlEncoder.Default.Encode(s) + "<br>").Aggregate((s1, s2) => s1 + s2));
Sockets.BindTests (7)
src\Servers\Kestrel\shared\test\StreamBackedTestConnection.cs (7)
119throw new TimeoutException($"Did not receive a complete response within {Timeout}.{Environment.NewLine}{Environment.NewLine}" + 120$"Expected:{Environment.NewLine}{expected}{Environment.NewLine}{Environment.NewLine}" + 121$"Actual:{Environment.NewLine}{new string(actual, 0, offset)}{Environment.NewLine}",
Sockets.FunctionalTests (7)
src\Servers\Kestrel\shared\test\StreamBackedTestConnection.cs (7)
119throw new TimeoutException($"Did not receive a complete response within {Timeout}.{Environment.NewLine}{Environment.NewLine}" + 120$"Expected:{Environment.NewLine}{expected}{Environment.NewLine}{Environment.NewLine}" + 121$"Actual:{Environment.NewLine}{new string(actual, 0, offset)}{Environment.NewLine}",
Swaggatherer (3)
Template.cs (3)
132string.Join(Environment.NewLine, setupEndpointsLines), 133string.Join(Environment.NewLine, setupRequestsLines), 134string.Join(Environment.NewLine, setupMatcherLines),
System.CodeDom (2)
Microsoft\CSharp\CSharpCodeGenerator.cs (1)
151b.Append(Environment.NewLine);
Microsoft\VisualBasic\VBCodeGenerator.cs (1)
364b.Append(Environment.NewLine);
System.Data.Odbc (3)
System\Data\Odbc\OdbcConnection.cs (1)
568throw new DllNotFoundException(SR.Odbc_UnixOdbcNotFound + Environment.NewLine + e.Message);
System\Data\Odbc\OdbcException.cs (1)
23builder.Append(Environment.NewLine);
System\Data\Odbc\OdbcInfoMessageEvent.cs (1)
31if (0 < builder.Length) { builder.Append(Environment.NewLine); }
System.Diagnostics.TraceSource (6)
System\Diagnostics\DefaultTraceListener.cs (6)
106WriteLine(SR.DebugAssertBanner + Environment.NewLine 107+ SR.DebugAssertShortMessage + Environment.NewLine 108+ message + Environment.NewLine 109+ SR.DebugAssertLongMessage + Environment.NewLine 110+ detailMessage + Environment.NewLine 140Write(message + Environment.NewLine, useLogFile);
System.Net.Http (5)
System\Net\Http\Headers\HeaderUtilities.cs (1)
336sb.Append(Environment.NewLine);
System\Net\Http\Headers\HttpHeaders.cs (1)
313builder.Append(Environment.NewLine);
System\Net\Http\HttpRequestMessage.cs (1)
166sb.Append(Environment.NewLine);
System\Net\Http\HttpResponseMessage.cs (2)
195sb.Append(Environment.NewLine); 201sb.Append(Environment.NewLine);
System.Net.NetworkInformation (21)
src\libraries\Common\src\System\IO\RowConfigReader.cs (5)
88int endOfLine = _buffer.IndexOf(Environment.NewLine, afterKey, _comparisonKind); 135|| (keyIndex >= Environment.NewLine.Length && _buffer.AsSpan(keyIndex - Environment.NewLine.Length, Environment.NewLine.Length).SequenceEqual(Environment.NewLine)))
System\Net\NetworkInformation\StringParsingHelpers.Addresses.cs (3)
140int labelLineStart = fileContents.LastIndexOf(Environment.NewLine, labelIndex, StringComparison.Ordinal); 157labelLineStart = fileContents.LastIndexOf(Environment.NewLine, labelIndex, StringComparison.Ordinal); 159int endOfLine = fileContents.IndexOf(Environment.NewLine, labelIndex, StringComparison.Ordinal);
System\Net\NetworkInformation\StringParsingHelpers.Connections.cs (7)
17int endOfTcpLine = sockstatFile.IndexOf(Environment.NewLine, indexOfTcp + 1, StringComparison.Ordinal); 33v4connections = tcp4FileContents.Split(Environment.NewLine, StringSplitOptions.RemoveEmptyEntries); 43v6connections = tcp6FileContents.Split(Environment.NewLine, StringSplitOptions.RemoveEmptyEntries); 113v4connections = tcp4FileContents.Split(Environment.NewLine, StringSplitOptions.RemoveEmptyEntries); 123v6connections = tcp6FileContents.Split(Environment.NewLine, StringSplitOptions.RemoveEmptyEntries); 193v4connections = udp4FileContents.Split(Environment.NewLine, StringSplitOptions.RemoveEmptyEntries); 203v6connections = udp6FileContents.Split(Environment.NewLine, StringSplitOptions.RemoveEmptyEntries);
System\Net\NetworkInformation\StringParsingHelpers.Misc.cs (2)
66return routeFile.AsSpan().Count(Environment.NewLine) - 1; // File includes one-line header 92int endOfSecondLine = snmp4FileContents.IndexOf(Environment.NewLine, secondIpHeader, StringComparison.Ordinal);
System\Net\NetworkInformation\StringParsingHelpers.Statistics.cs (4)
182int endOfSecondLine = fileContents.IndexOf(Environment.NewLine, secondIpHeader, StringComparison.Ordinal); 269int endOfSecondLine = fileContents.IndexOf(Environment.NewLine, secondIpHeader, StringComparison.Ordinal); 336int endOfSecondLine = fileContents.IndexOf(Environment.NewLine, secondTcpHeader, StringComparison.Ordinal); 368int endOfSecondLine = fileContents.IndexOf(Environment.NewLine, secondUdpHeader, StringComparison.Ordinal);
System.Private.CoreLib (11)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (2)
3434msg += Environment.NewLine; 3837Debugger.Log(0, null, $"EventSource Error: {msg}{Environment.NewLine}");
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\SwitchExpressionException.cs (1)
63return base.Message + Environment.NewLine + valueMessage;
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\SafeHandle.cs (3)
118Internal.Console.WriteLine($"{Environment.NewLine}*** #{count} {GetType()} (0x{handle.ToInt64():x}) finalized! Ctor stack:{Environment.NewLine}{_ctorStackTrace}{Environment.NewLine}");
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (3)
1451/// Replaces all newline sequences in the current string with <see cref="Environment.NewLine"/>. 1455/// with <see cref="Environment.NewLine"/>. 1471/// <see cref="Environment.NewLine"/> as the <em>replacementText</em> parameter.
src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (2)
862public StringBuilder AppendLine() => Append(Environment.NewLine); 867return Append(Environment.NewLine);
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\DataContractSet.cs (1)
595errorMessage.AppendFormat("{0}\"{1}\" ", Environment.NewLine, conflictingType.AssemblyQualifiedName);
System.Private.Windows.Core.TestUtilities (1)
ThrowingTraceListener.cs (1)
15: $"{Environment.NewLine}{detailMessage}")}");
System.Private.Xml (8)
System\Xml\Core\XmlWriterSettings.cs (1)
506_newLineChars = Environment.NewLine; // "\r\n" on Windows, "\n" on Unix
System\Xml\Serialization\SchemaObjectWriter.cs (1)
194_w.Append(Environment.NewLine);
System\Xml\Serialization\XmlSchemas.cs (2)
593err += $"{Environment.NewLine}{Dump(src)}{Environment.NewLine}{Dump(dest)}";
System\Xml\Xsl\QIL\QilValidationVisitor.cs (1)
182message = $"{s}{Environment.NewLine}{message}";
System\Xml\Xsl\XPath\XPathCompileException.cs (1)
118message += Environment.NewLine;
System\Xml\Xsl\XslException.cs (2)
91result += $" ---> {InnerException}{Environment.NewLine} {CreateMessage(SR.Xml_EndOfInnerExceptionStack)}"; 95result += Environment.NewLine + StackTrace;
System.Runtime.Caching (3)
System\Runtime\Caching\Dbg.cs (3)
28e is ExternalException ee ? "Exception " + e + Environment.NewLine + "_hr=0x" + ee.ErrorCode.ToString("x", CultureInfo.InvariantCulture) : 42Environment.NewLine, 43exceptionMessage != null ? exceptionMessage + Environment.NewLine : "");
System.Security.Cryptography (1)
System\Security\Cryptography\X509Certificates\X500NameEncoder.cs (1)
53dnSeparator = Environment.NewLine;
System.Security.Permissions (3)
System\Security\HostProtectionException.cs (3)
71sb.Append(Environment.NewLine); 72sb.Append(Environment.NewLine); 74sb.Append(Environment.NewLine);
System.ServiceModel.Primitives.Tests (2)
ServiceModel\MessageContractTest.4.4.0.cs (2)
175string headerValue = header.ToString().Replace(Environment.NewLine, String.Empty).Replace(" ", String.Empty); 321name, Environment.NewLine, value, errorBuilder.ToString()));
System.Text.Json (6)
System\Text\Json\Serialization\JsonSerializerOptions.cs (2)
759/// The default is the value of <see cref="Environment.NewLine"/>. 774return _newLine ??= Environment.NewLine;
System\Text\Json\Writer\JsonWriterOptions.cs (4)
16private static readonly string s_alternateNewLine = Environment.NewLine.Length == 2 ? JsonConstants.NewLineLineFeed : JsonConstants.NewLineCarriageReturnLineFeed; 142/// The default is the value of <see cref="Environment.NewLine"/>. 152get => (_optionsMask & NewLineBit) != 0 ? s_alternateNewLine : Environment.NewLine; 156if (value != Environment.NewLine)
System.Threading.Tasks.Dataflow (1)
Internal\DataflowEtwProvider.cs (1)
143try { exceptionData = string.Join(Environment.NewLine, completionTask.Exception!.InnerExceptions.Select(static e => e.ToString())); }
System.Windows.Forms (2)
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
617Text = string.Join(Environment.NewLine, value);
System\Windows\Forms\Internal\WinFormsUtils.cs (1)
179nameOfControl += $"{Environment.NewLine}\tOwnerItem: {dd.OwnerItem}";
System.Windows.Forms.Design (7)
System\ComponentModel\Design\DesignerActionPanel.MethodLine.cs (1)
76ActionPanel.ShowError(string.Format(SR.DesignerActionPanel_ErrorInvokingAction, _methodItem!.DisplayName, Environment.NewLine + ex.Message));
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (2)
350StringBuilder builder = new(Environment.NewLine); 351builder.AppendJoin(Environment.NewLine, failures);
System\Windows\Forms\Design\Behavior\BehaviorService.cs (2)
751snapLineInfo = string.Join(Environment.NewLine, _testHook_RecentSnapLines) + Environment.NewLine;
System\Windows\Forms\Design\ControlDesigner.cs (1)
2500stack = string.Join(Environment.NewLine, exceptionLines.Where(l => l.Contains(typeName)));
System\Windows\Forms\Design\StringCollectionEditor.StringCollectionForm.cs (1)
187=> _textEntry.Text = string.Join(Environment.NewLine, Items);
System.Windows.Forms.Design.Tests (5)
System\Windows\Forms\Design\EmbeddedResourceTests.cs (5)
85new(ExpectedIconNamesString.Split(Environment.NewLine).Where(item => !item.EndsWith(".bmp", StringComparison.Ordinal))); 88new(ExpectedBitmapNamesString.Split(Environment.NewLine)); 138string[] expected = $"{ExpectedIconNamesString}{Environment.NewLine}{ExpectedBitmapNamesString}{Environment.NewLine}{ExpectedResourceNames}".Split(Environment.NewLine);
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Automation\UiaTextRange.cs (1)
791&& (text.Substring(lineStartIndex, lineTextLength) == Environment.NewLine
System.Windows.Forms.Primitives.TestUtilities (7)
Extensions\AssertExtensions.cs (7)
413throw new XunitException($"Expected: {string.Join(", ", expected)}{Environment.NewLine}Actual: {string.Join(", ", actual)}"); 449throw new XunitException($"Expected count: {expectedCount}{Environment.NewLine}Actual count: {actualCount}"); 462throw new XunitException($"Collections are not equal.{Environment.NewLine}Totally {countInfo.Original} {currentExpectedItem} in actual collection but expect more {currentExpectedItem}"); 483throw new XunitException($"Expected: Span of length {expected.Length}{Environment.NewLine}Actual: Span of length {actual.Length}"); 490string message = $"Showing first {MaxDiffsToShow} differences{Environment.NewLine}"; 500message += $" Position {i}: Expected: {expected[i]}, Actual: {actual[i]}{Environment.NewLine}"; 533throw new XunitException($"Expected: {expected1} || {expected2}{Environment.NewLine}Actual: {value}");
System.Windows.Forms.Tests (17)
System\Windows\Forms\EmbeddedResourceTests.cs (5)
200public static TheoryData<string> ExpectedIconNames() => new(ExpectedIconNamesString.Split(Environment.NewLine)); 229public static TheoryData<string> ExpectedCursorNames() => new(ExpectedCursorNamesString.Split(Environment.NewLine)); 256string allNames = $"{ExpectedIconNamesString}{Environment.NewLine}{ExpectedCursorNamesString}{Environment.NewLine}{ExpectedResourceNames}"; 257string[] expected = allNames.Split(Environment.NewLine);
System\Windows\Forms\HtmlElementTests.cs (12)
542Assert.Equal($"InnerText{Environment.NewLine}MoreText", element.InnerText); 823Assert.Equal($"{Environment.NewLine}<DIV id=id></DIV>", element.OuterHtml); 838Assert.Equal($"{Environment.NewLine}<DIV id=id><P>OuterText</P></DIV>", element.OuterHtml); 843yield return new object[] { null, $"{Environment.NewLine}<DIV id=id></DIV>" }; 844yield return new object[] { "", $"{Environment.NewLine}<DIV id=id></DIV>" }; 845yield return new object[] { "OuterText", $"{Environment.NewLine}<DIV id=id>OuterText</DIV>" }; 846yield return new object[] { "<p>OuterText</p>", $"{Environment.NewLine}<DIV id=id><P>OuterText</P></DIV>" }; 874yield return new object[] { null, $"{Environment.NewLine}<DIV id=id></DIV>" }; 875yield return new object[] { "", $"{Environment.NewLine}<DIV id=id></DIV>" }; 876yield return new object[] { "OuterText", $"{Environment.NewLine}<DIV id=id></DIV>" }; 877yield return new object[] { "<p>OuterText</p>", $"{Environment.NewLine}<DIV id=id></DIV>" }; 954Assert.Equal($"OuterText{Environment.NewLine}MoreText", element.OuterText);
SystemdTestApp (2)
Startup.cs (2)
29+ $"{Environment.NewLine}" 32var response = $"hello, world{Environment.NewLine}";
TagHelpersWebSite (5)
Components\DanViewComponent.cs (1)
17.Replace(Environment.NewLine, "<br>")
TagHelpers\WebsiteInformationTagHelper.cs (4)
19"<p><strong>Version:</strong> {0}</p>" + Environment.NewLine + 20"<p><strong>Copyright Year:</strong> {1}</p>" + Environment.NewLine + 21"<p><strong>Approved:</strong> {2}</p>" + Environment.NewLine + 22"<p><strong>Number of tags to show:</strong> {3}</p>" + Environment.NewLine,
Templates.Blazor.Tests (5)
BlazorWasmTemplateTest.cs (1)
207$"Couldn't find listening url:\n{string.Join(Environment.NewLine, buffer.Append(process.Error))}");
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
240{string.Join(Environment.NewLine, buffer)}");
src\ProjectTemplates\Shared\DevelopmentCertificate.cs (2)
24?? throw new InvalidOperationException($"The aspnetcore-https.json file does not exist. Searched locations: {Environment.NewLine}{string.Join(Environment.NewLine, locations)}");
src\Shared\CertificateGeneration\CertificateManager.cs (1)
854return string.Join(Environment.NewLine, description);
Templates.Blazor.WebAssembly.Auth.Tests (6)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
240{string.Join(Environment.NewLine, buffer)}");
src\ProjectTemplates\Shared\DevelopmentCertificate.cs (2)
24?? throw new InvalidOperationException($"The aspnetcore-https.json file does not exist. Searched locations: {Environment.NewLine}{string.Join(Environment.NewLine, locations)}");
src\Shared\CertificateGeneration\CertificateManager.cs (1)
854return string.Join(Environment.NewLine, description);
src\Shared\E2ETesting\BrowserAssertFailedException.cs (1)
35.AppendJoin(Environment.NewLine, logs);
src\Shared\E2ETesting\SauceConnectServer.cs (1)
184{string.Join(Environment.NewLine, logOutput.GetConsumingEnumerable())}.";
Templates.Blazor.WebAssembly.Tests (6)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
240{string.Join(Environment.NewLine, buffer)}");
src\ProjectTemplates\Shared\DevelopmentCertificate.cs (2)
24?? throw new InvalidOperationException($"The aspnetcore-https.json file does not exist. Searched locations: {Environment.NewLine}{string.Join(Environment.NewLine, locations)}");
src\Shared\CertificateGeneration\CertificateManager.cs (1)
854return string.Join(Environment.NewLine, description);
src\Shared\E2ETesting\BrowserAssertFailedException.cs (1)
35.AppendJoin(Environment.NewLine, logs);
src\Shared\E2ETesting\SauceConnectServer.cs (1)
184{string.Join(Environment.NewLine, logOutput.GetConsumingEnumerable())}.";
Templates.Mvc.Tests (6)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
240{string.Join(Environment.NewLine, buffer)}");
src\ProjectTemplates\Shared\DevelopmentCertificate.cs (2)
24?? throw new InvalidOperationException($"The aspnetcore-https.json file does not exist. Searched locations: {Environment.NewLine}{string.Join(Environment.NewLine, locations)}");
src\Shared\CertificateGeneration\CertificateManager.cs (1)
854return string.Join(Environment.NewLine, description);
src\Shared\E2ETesting\BrowserAssertFailedException.cs (1)
35.AppendJoin(Environment.NewLine, logs);
src\Shared\E2ETesting\SauceConnectServer.cs (1)
184{string.Join(Environment.NewLine, logOutput.GetConsumingEnumerable())}.";
Templates.Tests (6)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
240{string.Join(Environment.NewLine, buffer)}");
src\ProjectTemplates\Shared\DevelopmentCertificate.cs (2)
24?? throw new InvalidOperationException($"The aspnetcore-https.json file does not exist. Searched locations: {Environment.NewLine}{string.Join(Environment.NewLine, locations)}");
src\Shared\CertificateGeneration\CertificateManager.cs (1)
854return string.Join(Environment.NewLine, description);
src\Shared\E2ETesting\BrowserAssertFailedException.cs (1)
35.AppendJoin(Environment.NewLine, logs);
src\Shared\E2ETesting\SauceConnectServer.cs (1)
184{string.Join(Environment.NewLine, logOutput.GetConsumingEnumerable())}.";
Test.Utilities (2)
CodeMetricsTestsBase.cs (2)
88var actualMetricsTextLines = actualMetricsText.Split(new[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries); 89var expectedMetricsTextLines = expectedMetricsText.Split(new[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries);
Text.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
175foreach (var line in child.ToString().Split(new[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries))
Text.Analyzers.UnitTests (2)
IdentifiersShouldBeSpelledCorrectlyTests.cs (2)
833string.Join(Environment.NewLine, words?.Select(x => $"<Word>{x}</Word>") ?? Enumerable.Empty<string>()); 838var contents = string.Join(Environment.NewLine, recognizedWords);
vbc (1)
src\Compilers\Core\CommandLine\CompilerServerLogger.cs (1)
154string output = prefix + message + Environment.NewLine;
VBCSCompiler (1)
src\Compilers\Core\CommandLine\CompilerServerLogger.cs (1)
154string output = prefix + message + Environment.NewLine;
Wasm.Performance.Driver (2)
Program.cs (2)
96exceptionMessage += Environment.NewLine + "Browser state: " + Environment.NewLine + innerHtml;
WinFormsControlsTest (3)
DragDrop.cs (2)
216? Environment.NewLine + Environment.NewLine + asciiCat
FormShowInTaskbar.cs (1)
40Text = $"Click here to test ShowInTaskbar.{Environment.NewLine}If the test result is failed, this dialog will automatically close, or it will throw an exception.",
xunit.assert (148)
Sdk\Exceptions\AllException.cs (6)
49 var wrapSpaces = Environment.NewLine + new string(' ', maxWrapIndent); 57 Environment.NewLine, 59 Environment.NewLine, 66 error.Item2.Replace(Environment.NewLine, wrapSpaces, StringComparison.Ordinal), 70 Environment.NewLine, 73 error.Item3.Message.Replace(Environment.NewLine, wrapSpaces, StringComparison.Ordinal)
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\DistinctException.cs (2)
42 Environment.NewLine, 44 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\DoesNotMatchException.cs (3)
48 Environment.NewLine, 51 Environment.NewLine, 53 Environment.NewLine,
Sdk\Exceptions\EmptyException.cs (2)
40 Environment.NewLine, 55 Environment.NewLine,
Sdk\Exceptions\EndsWithException.cs (2)
49 Environment.NewLine, 51 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\ExceptionUtility.cs (4)
49 foreach (var line in stack.Split(new[] { Environment.NewLine }, StringSplitOptions.None)) 56 return string.Join(Environment.NewLine, results.ToArray()); 92 Environment.NewLine, 94 .Split(new[] { Environment.NewLine }, StringSplitOptions.None)
Sdk\Exceptions\FalseException.cs (2)
46 Environment.NewLine, 47 Environment.NewLine,
Sdk\Exceptions\InRangeException.cs (2)
44 Environment.NewLine, 47 Environment.NewLine,
Sdk\Exceptions\IsAssignableFromException.cs (2)
50 Environment.NewLine, 52 Environment.NewLine,
Sdk\Exceptions\IsNotAssignableFromException.cs (2)
42 Environment.NewLine, 44 Environment.NewLine,
Sdk\Exceptions\IsNotTypeException.cs (2)
45 Environment.NewLine, 47 Environment.NewLine,
Sdk\Exceptions\IsTypeException.cs (2)
47 Environment.NewLine, 49 Environment.NewLine,
Sdk\Exceptions\MatchesException.cs (2)
46 Environment.NewLine, 48 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,
Sdk\Exceptions\NotInRangeException.cs (2)
44 Environment.NewLine, 47 Environment.NewLine,
Sdk\Exceptions\NotStrictEqualException.cs (2)
42 Environment.NewLine, 44 Environment.NewLine,
Sdk\Exceptions\NullException.cs (4)
53 Environment.NewLine, 54 Environment.NewLine, 76 Environment.NewLine, 77 Environment.NewLine,
Sdk\Exceptions\ProperSubsetException.cs (2)
42 Environment.NewLine, 44 Environment.NewLine,
Sdk\Exceptions\ProperSupersetException.cs (2)
42 Environment.NewLine, 44 Environment.NewLine,
Sdk\Exceptions\RaisesAnyException.cs (2)
39 Environment.NewLine, 41 Environment.NewLine
Sdk\Exceptions\RaisesException.cs (4)
42 Environment.NewLine, 44 Environment.NewLine, 66 Environment.NewLine, 68 Environment.NewLine
Sdk\Exceptions\SameException.cs (2)
42 Environment.NewLine, 44 Environment.NewLine,
Sdk\Exceptions\SingleException.cs (6)
55 Environment.NewLine, 57 Environment.NewLine, 95 Environment.NewLine, 102 Environment.NewLine, 104 Environment.NewLine, 106 Environment.NewLine,
Sdk\Exceptions\StartsWithException.cs (2)
49 Environment.NewLine, 51 Environment.NewLine,
Sdk\Exceptions\StrictEqualException.cs (2)
42 Environment.NewLine, 44 Environment.NewLine,
Sdk\Exceptions\SubsetException.cs (2)
42 Environment.NewLine, 44 Environment.NewLine,
Sdk\Exceptions\SupersetException.cs (2)
42 Environment.NewLine, 44 Environment.NewLine,
Sdk\Exceptions\ThrowsAnyException.cs (3)
51 Environment.NewLine, 53 Environment.NewLine, 69 Environment.NewLine,
Sdk\Exceptions\ThrowsException.cs (6)
51 Environment.NewLine, 53 Environment.NewLine, 79 Environment.NewLine, 81 Environment.NewLine, 83 Environment.NewLine, 98 Environment.NewLine,
Sdk\Exceptions\TrueException.cs (2)
47 Environment.NewLine, 48 Environment.NewLine,
Sdk\Exceptions\XunitException.cs (1)
71 result = string.Format(CultureInfo.CurrentCulture, "{0}{1}{2}", result, Environment.NewLine, stackTrace);