2490 references to NewLine
aspire (2)
DotNet\DotNetCliRunner.cs (1)
399var lines = stdout.Split(Environment.NewLine);
Packaging\TemporaryNuGetConfig.cs (1)
44NewLineChars = Environment.NewLine,
Aspire.Dashboard (15)
Components\Pages\Traces.razor.cs (3)
106tooltip += Environment.NewLine + string.Format(CultureInfo.InvariantCulture, Loc[nameof(Dashboard.Resources.Traces.TracesTraceId)], trace.TraceId); 117tooltip += Environment.NewLine + string.Format(CultureInfo.InvariantCulture, Loc[nameof(Dashboard.Resources.Traces.TracesTotalTraces)], count); 120tooltip += Environment.NewLine + string.Format(CultureInfo.InvariantCulture, Loc[nameof(Dashboard.Resources.Traces.TracesTotalErroredTraces)], errorCount);
DashboardWebApplication.cs (4)
881Debug.Assert(_validationFailures.Count == 0, "Validation failures: " + Environment.NewLine + string.Join(Environment.NewLine, _validationFailures)); 887Debug.Assert(_validationFailures.Count == 0, "Validation failures: " + Environment.NewLine + string.Join(Environment.NewLine, _validationFailures));
Model\GenAI\GenAIVisualizerDialogViewModel.cs (2)
75Environment.NewLine + Environment.NewLine,
Model\Markdown\MarkdownProcessor.cs (1)
27pipelineBuilder.ConfigureNewLine(Environment.NewLine);
Model\Otlp\ResourcesSelectHelpers.cs (3)
59""", name, fallback, string.Join(Environment.NewLine, resources), match); 74""", name, string.Join(Environment.NewLine, resources), string.Join(Environment.NewLine, matches));
Model\Otlp\SpanWaterfallViewModel.cs (2)
41tooltip += Environment.NewLine + "Status = Error"; 45tooltip += 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)
310var exceptionMessage = $"{reason}: {Environment.NewLine}{outputMessage}"; 533msg += $" 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 (5)
ApplicationModel\ResourceCommandService.cs (2)
110errorMessage += Environment.NewLine + string.Join(Environment.NewLine, failures.Select(f => $"Resource '{f.resourceId}' failed with error message: {f.result.ErrorMessage}"));
Dashboard\DashboardLifecycleHook.cs (1)
794(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)
560$"Error message{Environment.NewLine}System.InvalidOperationException: Error!",
Dcp\DcpExecutorTests.cs (9)
610await pipes.StandardOut.Writer.WriteAsync(Encoding.UTF8.GetBytes("2024-08-19T06:10:33.473275911Z Hello world" + Environment.NewLine)); 621await pipes.StandardErr.Writer.WriteAsync(Encoding.UTF8.GetBytes("2024-08-19T06:10:32.661Z Next" + Environment.NewLine)); 664return new MemoryStream(Encoding.UTF8.GetBytes("2024-08-19T06:10:01.000Z First" + Environment.NewLine)); 666return new MemoryStream(Encoding.UTF8.GetBytes("2024-08-19T06:10:02.000Z Second" + Environment.NewLine)); 668return new MemoryStream(Encoding.UTF8.GetBytes("2024-08-19T06:10:03.000Z Third" + Environment.NewLine)); 671"2024-08-19T06:10:05.000Z Sixth" + Environment.NewLine + 672"2024-08-19T06:10:05.000Z Seventh" + Environment.NewLine + 673"2024-08-19T06:10:04.000Z Forth" + Environment.NewLine + 674"2024-08-19T06:10:04.000Z Fifth" + Environment.NewLine));
MSBuildTests.cs (1)
237Assert.True(process.ExitCode == 0, $"Build failed: {Environment.NewLine}{output}");
ProjectResourceTests.cs (1)
494: $",{Environment.NewLine} \"ASPNETCORE_FORWARDEDHEADERS_ENABLED\": \"true\"";
Schema\SchemaTests.cs (1)
763Assert.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)
310var exceptionMessage = $"{reason}: {Environment.NewLine}{outputMessage}"; 533msg += $" 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 (3)
Program.cs (2)
164Console.WriteLine($"The following Actions are new and need their description reviewed:{Environment.NewLine}{string.Join(Environment.NewLine, missingDescriptions)}");
src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
CodeStyleConfigFileGenerator (1)
src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
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\Shared\CompilerServerLogger.cs (1)
155string 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)
402"already trusted we will run the following command:" + Environment.NewLine + 404Environment.NewLine + "This command might prompt you for your password to install the certificate " + 405"on the keychain. To undo these changes: 'security remove-trusted-cert <<certificate>>'" + Environment.NewLine);
src\Shared\CertificateGeneration\CertificateManager.cs (1)
899return 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} ");
GenerateDocumentationAndConfigFiles (4)
src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (1)
47_ => 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)
285: reason + Environment.NewLine + restString;
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)
197builder.Append(Environment.NewLine); 207builder.Append(Environment.NewLine); 219builder.Append(Environment.NewLine);
IdeCoreBenchmarks (7)
FormatterBenchmarks.cs (7)
39.Replace($"{{{Environment.NewLine}{Environment.NewLine}", "{") 40.Replace($"}}{Environment.NewLine}{Environment.NewLine}", "}") 41.Replace($"{{{Environment.NewLine}", "{") 42.Replace($"}}{Environment.NewLine}", "}") 43.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)
48var message = i + Environment.NewLine; 90var 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)
259var 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)
48var message = i + Environment.NewLine; 90var 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)
259var 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 (18)
Startup.cs (18)
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); 91await ctx.Response.WriteAsync("IIS Version: " + envFeature.IISVersion + Environment.NewLine); 92await ctx.Response.WriteAsync("ApplicationId: " + envFeature.ApplicationId + Environment.NewLine); 93await ctx.Response.WriteAsync("Application Path: " + envFeature.ApplicationPhysicalPath + Environment.NewLine); 94await ctx.Response.WriteAsync("Application Virtual Path: " + envFeature.ApplicationVirtualPath + Environment.NewLine); 95await ctx.Response.WriteAsync("Application Config Path: " + envFeature.AppConfigPath + Environment.NewLine); 96await ctx.Response.WriteAsync("AppPool ID: " + envFeature.AppPoolId + Environment.NewLine); 97await ctx.Response.WriteAsync("AppPool Config File: " + envFeature.AppPoolConfigFile + Environment.NewLine); 98await ctx.Response.WriteAsync("Site ID: " + envFeature.SiteId + 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)
1212Assert.Fail("Bad log write: " + badLogWrite + Environment.NewLine + badLogWrite.Exception); 1298Assert.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 (7)
Program.cs (2)
246await metricFile.WriteStringAsync(Environment.NewLine + Environment.NewLine).ConfigureAwait(false);
src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
173foreach (var line in child.ToString().Split([Environment.NewLine], StringSplitOptions.RemoveEmptyEntries))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (1)
47_ => 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)
285: reason + Environment.NewLine + restString;
Metrics.Legacy (7)
src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
src\RoslynAnalyzers\Tools\Metrics\Program.cs (2)
246await metricFile.WriteStringAsync(Environment.NewLine + Environment.NewLine).ConfigureAwait(false);
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
173foreach (var line in child.ToString().Split([Environment.NewLine], StringSplitOptions.RemoveEmptyEntries))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (1)
47_ => 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)
285: reason + Environment.NewLine + restString;
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)
307var 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)
242$"when also used to capture unmatched values. Unmatched values:" + Environment.NewLine + 243string.Join(Environment.NewLine, unmatched.Keys)); 263$"per type can use '{nameof(ParameterAttribute)}.{nameof(ParameterAttribute.CaptureUnmatchedValues)}'. Properties:" + Environment.NewLine + 264string.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)
899return 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 (16)
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 (4)
1346var lines = requestLog.Message.Split(Environment.NewLine); 1594var lines = Assert.Single(TestSink.Writes.Where(w => w.LogLevel >= LogLevel.Information)).Message.Split(Environment.NewLine); 1656var lines = Assert.Single(TestSink.Writes).Message.Split(Environment.NewLine); 1723var lines = Assert.Single(TestSink.Writes.Where(w => w.LogLevel >= LogLevel.Information)).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)
158await UpdateFile("/Pages/UpdateablePage.cshtml", "@page" + Environment.NewLine + "@GetType().Assembly");
RazorRuntimeCompilationHostingStartupTest.cs (1)
104await 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)
372builder.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)
915Assert.Equal(Environment.NewLine + "<script>(isavailable()||document.write(\"JavaScriptEncode[[<script " + 947Assert.Equal(Environment.NewLine + "<script>(isavailable()||document.write(\"JavaScriptEncode[[<script " + 960Environment.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)
899return string.Join(Environment.NewLine, description);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (13)
DiagnosticMemoryPoolTests.cs (4)
118Assert.Equal($"Cannot access a disposed object.{Environment.NewLine}Object name: 'MemoryPoolBlock'.", exception.Message); 133Assert.Equal($"Cannot access a disposed object.{Environment.NewLine}Object name: 'MemoryPoolBlock'.", exception.Message); 155Assert.Equal($"Cannot access a disposed object.{Environment.NewLine}Object name: 'MemoryPoolBlock'.", ode.Message); 172Assert.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)
133output = output.Trim().Replace(Environment.NewLine, ""); 167throw new Exception($"Command '{fileName} {arguments}' failed with exit code '{exitCode}'. Output:{Environment.NewLine}{output}"); 181output = string.Join(Environment.NewLine, lines.ToArray()); 190output = 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)
178var bytes = Encoding.UTF8.GetBytes("BodyStarted" + Environment.NewLine); 214await 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.Framework (3)
Constants.cs (1)
134internal static readonly string[] EnvironmentNewLine = [Environment.NewLine];
FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
LazyFormattedBuildEventArgs.cs (1)
130argValue = $"Argument conversion to string failed{Environment.NewLine}{e}";
Microsoft.Build.Tasks.CodeAnalysis (3)
src\Compilers\Core\MSBuildTask\Vbc.cs (1)
240private static readonly string[] s_separator = { Environment.NewLine };
src\Compilers\Shared\CompilerServerLogger.cs (1)
155string output = prefix + message + Environment.NewLine;
src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
Microsoft.Build.Tasks.CodeAnalysis.Sdk (3)
src\Compilers\Core\MSBuildTask\Vbc.cs (1)
240private static readonly string[] s_separator = { Environment.NewLine };
src\Compilers\Shared\CompilerServerLogger.cs (1)
155string output = prefix + message + Environment.NewLine;
src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
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.Cci.Extensions (1)
Writers\Syntax\TokenSyntaxWriter.cs (1)
58Write(Environment.NewLine);
Microsoft.CodeAnalysis (5)
DiagnosticAnalyzer\AnalyzerExecutor.cs (2)
1390var contextInformation = string.Join(Environment.NewLine, CreateDiagnosticDescription(info, e), CreateDisablingMessage(analyzer, analyzerName)).Trim(); 1403return string.Join(Environment.NewLine,
src\Compilers\Core\AnalyzerDriver\AnalyzerExceptionDescriptionBuilder.cs (2)
16private static readonly string s_separator = Environment.NewLine + "-----" + Environment.NewLine;
src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
Microsoft.CodeAnalysis.Analyzers (5)
src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
173foreach (var line in child.ToString().Split([Environment.NewLine], StringSplitOptions.RemoveEmptyEntries))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (1)
47_ => 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)
285: reason + Environment.NewLine + restString;
Microsoft.CodeAnalysis.Analyzers.UnitTests (3)
MetaAnalyzers\ReleaseTrackingAnalyzerTests.cs (3)
566var diagnosticText = (shippedText.Length > 0 ? shippedText : unshippedText).Split([Environment.NewLine], StringSplitOptions.None).ElementAt(line - 1); 801var lineCount = (shippedText.Length > 0 ? shippedText : unshippedText).Split([Environment.NewLine], StringSplitOptions.None).Length; 832var lineCount = (shippedText.Length > 0 ? shippedText : unshippedText).Split([Environment.NewLine], StringSplitOptions.None).Length;
Microsoft.CodeAnalysis.AnalyzerUtilities (5)
src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
173foreach (var line in child.ToString().Split([Environment.NewLine], StringSplitOptions.RemoveEmptyEntries))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (1)
47_ => 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)
285: reason + Environment.NewLine + restString;
Microsoft.CodeAnalysis.BannedApiAnalyzers (5)
src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
173foreach (var line in child.ToString().Split([Environment.NewLine], StringSplitOptions.RemoveEmptyEntries))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (1)
47_ => 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)
285: reason + Environment.NewLine + restString;
Microsoft.CodeAnalysis.CodeStyle (5)
src\Analyzers\Core\Analyzers\FileHeaders\AbstractFileHeaderHelper.cs (1)
122var eolLength = Environment.NewLine.Length;
src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (1)
47_ => 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)
285: reason + Environment.NewLine + restString;
Microsoft.CodeAnalysis.Collections.Package (1)
src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
Microsoft.CodeAnalysis.Contracts.Package (1)
ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
Microsoft.CodeAnalysis.CSharp (1)
Binder\Binder.cs (1)
956var 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)
1374buffer.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)
827var 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)
500var 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)
99{{string.Join(Environment.NewLine, body.ReplaceLineEndings("\n").Split('\n').Select(line => line == "" ? line : $" {line}"))}}
Formatting\FormattingEngineTests.cs (1)
1548var endOfFile = trailingNewLine ? Environment.NewLine : "";
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (15)
CodeGen\CodeGenAsyncLocalsTests.cs (3)
36var actualLines = c.VisualizeIL(qualifiedMethodName).Split(new[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries); 38return string.Join(Environment.NewLine, 41select pair.line1.Trim() + Environment.NewLine + pair.line2.Trim());
CodeGen\CodeGenAsyncSpillTests.cs (1)
10210var expectedOutput = 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); 6356var 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)
4123Assert.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)
198verify: s_verification with { ILVerifyMessage = ilVerifyMessage + Environment.NewLine + s_verification.ILVerifyMessage }, 221$"Method '{qualifiedMethodName}' should {(expected ? "be" : "not be")} instrumented. Actual IL:{Environment.NewLine}{il}"); 377ILVerifyMessage = 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 (3)
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(
Semantics\ExtensionTests2.cs (1)
25707var escapedNewline = Environment.NewLine switch
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 (10)
Copilot\CSharpImplementNotImplementedExceptionFixProviderTests.cs (1)
441Message = $"The generated implementation isn't a valid method or property:{Environment.NewLine}{replacement}",
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (3)
61$"{Environment.NewLine}Expected span: '{expectedText}' {expected}" + 62$"{Environment.NewLine}Actual span: '{actualText}' {actual}"); 767.Select(d => $"{d.Id}: {d.GetMessage().Split([Environment.NewLine], StringSplitOptions.None).First()}"));
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) 11791CompileAndVerify(source: source, expectedOutput: "abcdef" + Environment.NewLine + "abcdef" + Environment.NewLine + "abcdef"); 11842CompileAndVerify(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, 4272var 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)
9376var lines = s.Split([Environment.NewLine], StringSplitOptions.None); 9385return string.Join(Environment.NewLine, lines);
Formatting\FormattingTriviaTests.cs (1)
1608var 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.Debugging.Package (1)
src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
Microsoft.CodeAnalysis.EditorFeatures (7)
ExtractMethod\ExtractMethodCommandHandler.cs (6)
237EditorFeaturesResources.Extract_method_encountered_the_following_issues + Environment.NewLine + 238string.Join("", result.Reasons.Select(r => Environment.NewLine + " " + r)), 251EditorFeaturesResources.Extract_method_encountered_the_following_issues + Environment.NewLine + 252string.Join("", result.Reasons.Select(r => Environment.NewLine + " " + r)) + Environment.NewLine + Environment.NewLine +
Preview\AbstractPreviewFactoryService.cs (1)
448: 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)
23return string.Concat(System.Environment.NewLine, formattedCode);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (8)
CodeFixes\CodeFixServiceTests.cs (2)
600=> exception.Message + Environment.NewLine + exception.StackTrace; 1048code = Environment.NewLine + code;
Diagnostics\IDEDiagnosticIDConfigurationTests.cs (5)
98expectedLines = expected.Split([Environment.NewLine], StringSplitOptions.RemoveEmptyEntries); 735Environment.NewLine + 736string.Join(Environment.NewLine, baseline.Select(Inspect))); 749Environment.NewLine + 750string.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\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
Microsoft.CodeAnalysis.Extensions.Package (1)
src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
Microsoft.CodeAnalysis.ExternalAccess.Copilot (1)
Internal\SemanticSearch\CopilotSemanticSearchQueryExecutor.cs (1)
48RuntimeException ??= $"{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\DiagnosticAnalyzerService_ComputeDiagnosticAnalysisResults.cs (1)
51=> $"project: ({project.Id}), ({string.Join(Environment.NewLine, analyzers.Select(a => a.ToString()))})";
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (1)
289var documentTooltip = navigateDocument.FilePath + Environment.NewLine + dllPath;
SemanticSearch\SearchExceptionDefinitionItem.cs (1)
27new TaggedText(TextTags.Space, Environment.NewLine),
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)
426throw 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)
58"""{Environment.NewLine}{_squiggle}{Environment.NewLine}"""
Microsoft.CodeAnalysis.Features.UnitTests (2)
FindUsages\DefinitionItemFactoryTests.cs (2)
75itemSeparator: "," + Environment.NewLine, 125=> propertyName == null ? null : $"{Environment.NewLine}{nameof(DefinitionItem)}.{propertyName} does not match expected value.";
Microsoft.CodeAnalysis.InteractiveHost (1)
src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
Microsoft.CodeAnalysis.LanguageServer (11)
HostWorkspace\ProjectDependencyHelper.cs (2)
100+ Environment.NewLine 101+ string.Join(Environment.NewLine, unresolved.Select(r => $" {r.Name}-{r.VersionRange}"));
LanguageServer\Handler\Restore\RestoreHandler.cs (1)
49progress.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)
75message = @$"==== {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}"; 192return text.Replace(Environment.NewLine, $"{Environment.NewLine}{indentation}").TrimEnd().Insert(0, indentation);
Microsoft.CodeAnalysis.LanguageServer.Protocol (9)
Extensions\ProtocolConversions.cs (1)
959var content = markdownBuilder.Build(Environment.NewLine);
Features\DecompiledSource\AssemblyResolver.cs (1)
169=> _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)
128throw new InvalidOperationException($"Language specific handlers for {methodGroup.Key} have mis-matched number of parameters:{Environment.NewLine}{string.Join(Environment.NewLine, methodGroup)}"); 133throw 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)
156string.Join(Environment.NewLine, expectedNames), 157string.Join(Environment.NewLine, actualNames));
SpellCheck\SpellCheckTests.cs (2)
78var markup = string.Join(Environment.NewLine, Enumerable.Range(0, 5500).Select(v => 83{{string.Join(Environment.NewLine, Enumerable.Repeat("", random.Next() % 5))}}
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (5)
src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
173foreach (var line in child.ToString().Split([Environment.NewLine], StringSplitOptions.RemoveEmptyEntries))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (1)
47_ => 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)
285: reason + Environment.NewLine + restString;
Microsoft.CodeAnalysis.PooledObjects.Package (1)
src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
Microsoft.CodeAnalysis.PublicApiAnalyzers (5)
src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
173foreach (var line in child.ToString().Split([Environment.NewLine], StringSplitOptions.RemoveEmptyEntries))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (1)
47_ => 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)
285: reason + Environment.NewLine + restString;
Microsoft.CodeAnalysis.PublicApiAnalyzers.CodeFixes (1)
PublicApiFixHelpers.cs (1)
93return Environment.NewLine;
Microsoft.CodeAnalysis.PublicApiAnalyzers.UnitTests (1)
DeclarePublicAPIAnalyzerTestsBase.cs (1)
1945""", @"", $"C", $"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)
73LogTrace($"Composing MEF catalog using:{Environment.NewLine}{string.Join($" {Environment.NewLine}", AssemblyPaths)}."); 213LogError($"Encountered errors in the MEF composition:{Environment.NewLine}{ex.ErrorsAsString}", ex);
Microsoft.CodeAnalysis.ResxSourceGenerator (10)
AbstractResxGenerator.cs (5)
207var exceptionLines = ex.ToString().Split([Environment.NewLine], StringSplitOptions.None); 208var text = string.Join("", exceptionLines.Select(line => "#error " + line + Environment.NewLine)); 520{{string.Join(Environment.NewLine, getResourceStringAttributes.Select(attr => memberIndent + attr))}} 578namespaceStart = $@"namespace {namespaceName}{Environment.NewLine}{{"; 653var crLf = Environment.NewLine;
src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
173foreach (var line in child.ToString().Split([Environment.NewLine], StringSplitOptions.RemoveEmptyEntries))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (1)
47_ => 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)
285: reason + Environment.NewLine + restString;
Microsoft.CodeAnalysis.Scripting (2)
Hosting\ObjectFormatter\CommonObjectFormatter.cs (2)
43newLine: Environment.NewLine, 74builder.Append(Environment.NewLine);
Microsoft.CodeAnalysis.Scripting.TestUtilities (5)
ObjectFormatterTestBase.cs (3)
21foreach (var line in str.Split(new[] { Environment.NewLine + " " }, StringSplitOptions.None)) 29Assert.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)
99Assert.True(sequencePointMarkers.Count > 0, $"No sequence points found in:{Environment.NewLine}{actualPdb}");
Compilation\CompilationExtensions.cs (2)
246actualTextBuilder.Append(Environment.NewLine); 251actualTextBuilder.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(); 191LogString(Environment.NewLine);
CompilationVerifier.cs (5)
115throw new Exception($"Didn't find method '{methodName}'. Available/distinguishable methods are: {Environment.NewLine}{string.Join(Environment.NewLine, map.Keys)}"); 470$"IL Verify failed unexpectedly:{Environment.NewLine}{actualMessage}" : 512return string.Join(Environment.NewLine, result.Select(r => printMethod(r.Method, metadataReader) + r.Message + printErrorArguments(r.ErrorArguments))); 760throw 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)
541assertText.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.Threading.Package (1)
src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
Microsoft.CodeAnalysis.UnitTests (17)
Analyzers\AnalyzerConfigTests.cs (3)
203var config = ParseConfigFile(string.Join(Environment.NewLine, 351var config = ParseConfigFile(string.Join(Environment.NewLine, 362var 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.Workspaces (6)
Log\WorkspaceErrorLogger.cs (1)
25=> exception.Message + Environment.NewLine + exception.StackTrace;
src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (1)
47_ => 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)
285: 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)
528_logger.LogError("The BuildHost process is not responding. Process output:{newLine}{processLog}", Environment.NewLine, processLog); 530_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\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (3)
NetCoreTests.cs (2)
368Assert.True(actualNames.SetEquals(expectedNames), $"Project names differ!{Environment.NewLine}Actual: {{{actualNames.Join(",")}}}{Environment.NewLine}Expected: {{{expectedNames.Join(",")}}}");
NewlyCreatedProjectsFromDotNetNew.cs (1)
264throw 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)
121: $"{title}:{Environment.NewLine}{Environment.NewLine}{message}";
Microsoft.CommonLanguageServerProtocol.Framework.Example (1)
src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
Microsoft.CommonLanguageServerProtocol.Framework.Package (5)
AbstractLanguageServer.cs (4)
128throw new InvalidOperationException($"Language specific handlers for {methodGroup.Key} have mis-matched number of parameters:{Environment.NewLine}{string.Join(Environment.NewLine, methodGroup)}"); 133throw new InvalidOperationException($"Language specific handlers for {methodGroup.Key} have mis-matched number of returns:{Environment.NewLine}{string.Join(Environment.NewLine, methodGroup)}");
src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
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.ApiCompat (1)
MSBuildTextWriter.cs (1)
33_log.LogError(Environment.NewLine);
Microsoft.DotNet.ApiCompat.Core (1)
DifferenceWriter.cs (1)
57_writer.WriteLine($"{Environment.NewLine}*** Invalid/Unused baseline differences ***");
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 (16)
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}";
src\PublishArtifactsInManifestBase.cs (4)
1471Log.LogError($"Output from nuget.exe: {Environment.NewLine}StdOut:{Environment.NewLine}{nugetResult.StandardOut}{Environment.NewLine}StdErr:{Environment.NewLine}{nugetResult.StandardError}");
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)
172Environment.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)
531"," + 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)
339var actualXmlElementsPerSigningRound = buildEngine.FilesToSign.Select(round => string.Join(Environment.NewLine, round));
Microsoft.DotNet.SourceBuild.Tasks (8)
src\UsageReport\ValidateUsageAgainstBaseline.cs (8)
50string ReviewRequestComment = $"<!-- {_reviewRequestMessage} -->{Environment.NewLine}"; 51string PreBuiltDocXmlComment = $"<!-- {_preBuiltDocMessage} -->{Environment.NewLine}"; 64File.WriteAllText(OutputBaselineFile, ReviewRequestComment + PreBuiltDocXmlComment + Environment.NewLine + data.ActualUsageData.ToXml().ToString()); 67File.WriteAllText(OutputReportFile, PreBuiltDocXmlComment + Environment.NewLine + data.Report.ToString()); 93$"report can be found at {OutputReportFile}.{Environment.NewLine}{_preBuiltDocMessage}{Environment.NewLine}" + 94$"Package IDs are:{Environment.NewLine}" + string.Join(Environment.NewLine, diff.Added.Select(u => u.ToString())));
Microsoft.DotNet.VersionTools (3)
src\Automation\DependencyUpdateResults.cs (1)
62Trace.TraceInformation($"git status --porcelain results:{Environment.NewLine}{status}");
src\Automation\VersionsRepoUpdater.cs (1)
39Environment.NewLine,
src\Dependencies\BuildOutput\ProjectJsonUpdater.cs (1)
76return JsonConvert.SerializeObject(projectRoot, Formatting.Indented) + Environment.NewLine;
Microsoft.DotNet.XUnitAssert.Tests (278)
BooleanAssertsTests.cs (12)
22 "Assert.False() Failure" + Environment.NewLine + 23 "Expected: False" + Environment.NewLine + 36 "Assert.False() Failure" + Environment.NewLine + 37 "Expected: False" + Environment.NewLine + 50 "Custom User Message" + Environment.NewLine + 51 "Expected: False" + Environment.NewLine + 73 "Assert.True() Failure" + Environment.NewLine + 74 "Expected: True" + Environment.NewLine + 87 "Assert.True() Failure" + Environment.NewLine + 88 "Expected: True" + Environment.NewLine + 101 "Custom User Message" + Environment.NewLine + 102 "Expected: True" + Environment.NewLine +
CollectionAssertsTests.cs (32)
206 "Assert.Collection() Failure" + Environment.NewLine + 207 "Collection: []" + Environment.NewLine + 208 "Expected item count: 1" + Environment.NewLine + 241 "Assert.Collection() Failure" + Environment.NewLine + 242 "Collection: [42, 2112]" + Environment.NewLine + 243 "Error during comparison of item at index 1" + Environment.NewLine + 244 "Inner exception: Assert.Equal() Failure" + Environment.NewLine + 245 " Expected: 2113" + Environment.NewLine + 373 "Assert.Contains() Failure" + Environment.NewLine + 374 "Not found: 42" + Environment.NewLine + 437 "Assert.Contains() Failure" + Environment.NewLine + 438 "Not found: forty-two" + Environment.NewLine + 468 "Assert.Contains() Failure" + Environment.NewLine + 469 "Not found: forty-two" + Environment.NewLine + 496 "Assert.Contains() Failure" + Environment.NewLine + 497 "Not found: HI THERE" + Environment.NewLine + 628 "Assert.DoesNotContain() Failure" + Environment.NewLine + 629 "Found: 42" + Environment.NewLine + 662 "Assert.DoesNotContain() Failure" + Environment.NewLine + 663 "Found: HI THERE" + Environment.NewLine + 683 "Assert.DoesNotContain() Failure" + Environment.NewLine + 684 "Found: Int32[] [1, 2, 3, 4]" + Environment.NewLine + 715 "Assert.DoesNotContain() Failure" + Environment.NewLine + 716 "Found: forty-two" + Environment.NewLine + 747 "Assert.DoesNotContain() Failure" + Environment.NewLine + 748 "Found: forty-two" + Environment.NewLine + 832 Assert.Equal($"Assert.Empty() Failure{Environment.NewLine}Expected: <empty>{Environment.NewLine}Actual: [42]", ex.Message); 856 Assert.Equal($"Assert.Empty() Failure{Environment.NewLine}Expected: <empty>{Environment.NewLine}Actual: \"Foo\"", ex.Message); 987 "Assert.Equal() Failure" + Environment.NewLine + 988 "Expected: Dictionary<String, Int32> [[\"a\"] = 1, [\"be\"] = 2, [\"c\"] = 3, [\"d\"] = 4, [\"e\"] = 5, ...]" + Environment.NewLine +
EqualityAssertsTests.cs (8)
1004 @"Assert.NotEqual() Failure" + Environment.NewLine + 1005 @"Expected: Not ""actual""" + Environment.NewLine + 1028 @"Assert.NotEqual() Failure" + Environment.NewLine + 1029 @"Expected: Not ""TestString""" + Environment.NewLine + 1069 @"Assert.NotEqual() Failure" + Environment.NewLine + 1070 @"Expected: Not ""actual""" + Environment.NewLine + 1081 @"Assert.NotEqual() Failure" + Environment.NewLine + 1082 @"Expected: Not DerivedClass { }" + Environment.NewLine +
EquivalenceAssertsTests.cs (94)
28 "Assert.Equivalent() Failure" + Environment.NewLine + 29 $"Expected: {expected ?? "(null)"}" + Environment.NewLine + 59 "Assert.Equivalent() Failure" + Environment.NewLine + 60 "Expected: 12" + Environment.NewLine + 73 "Assert.Equivalent() Failure" + Environment.NewLine + 74 "Expected: 12 (System.Int32)" + Environment.NewLine + 102 "Assert.Equivalent() Failure" + Environment.NewLine + 103 "Expected: 42" + Environment.NewLine + 125 "Assert.Equivalent() Failure" + Environment.NewLine + 126 "Expected: Hello, world" + Environment.NewLine + 148 "Assert.Equivalent() Failure: Mismatched value on member 'x'" + Environment.NewLine + 149 "Expected: 42" + Environment.NewLine + 171 "Assert.Equivalent() Failure: Mismatched value on member 'x.y'" + Environment.NewLine + 172 "Expected: 42" + Environment.NewLine + 194 "Assert.Equivalent() Failure: Mismatched value on member 'x'" + Environment.NewLine + 195 "Expected: 42" + Environment.NewLine + 217 "Assert.Equivalent() Failure: Mismatched value on member 'x.y'" + Environment.NewLine + 218 "Expected: 2600" + Environment.NewLine + 246 "Assert.Equivalent() Failure: Mismatched value on member 'Value1'" + Environment.NewLine + 247 "Expected: 42" + Environment.NewLine + 275 "Assert.Equivalent() Failure: Mismatched value on member 'Shallow.Value1'" + Environment.NewLine + 276 "Expected: 42" + Environment.NewLine + 304 "Assert.Equivalent() Failure: Mismatched value on member 'Value1'" + Environment.NewLine + 305 "Expected: 42" + Environment.NewLine + 333 "Assert.Equivalent() Failure: Mismatched value on member 'Shallow.Value1'" + Environment.NewLine + 334 "Expected: 42" + Environment.NewLine + 362 "Assert.Equivalent() Failure: Mismatched value on member 'Shallow.Value2'" + Environment.NewLine + 363 "Expected: Hello, world" + Environment.NewLine + 408 "Assert.Equivalent() Failure: Mismatched member list" + Environment.NewLine + 409 "Expected: [\"x\", \"y\"]" + Environment.NewLine + 429 "Assert.Equivalent() Failure: Mismatched member list" + Environment.NewLine + 430 "Expected: [\"x.y\"]" + Environment.NewLine + 453 "Assert.Equivalent() Failure: Mismatched member list" + Environment.NewLine + 454 "Expected: [\"x\"]" + Environment.NewLine + 485 "Assert.Equivalent() Failure: Collection value not found" + Environment.NewLine + 486 "Expected: 6" + Environment.NewLine + 502 "Assert.Equivalent() Failure: Collection value not found in member 'x'" + Environment.NewLine + 503 "Expected: 6" + Environment.NewLine + 534 "Assert.Equivalent() Failure: Collection value not found" + Environment.NewLine + 535 "Expected: 6" + Environment.NewLine + 548 "Assert.Equivalent() Failure: Extra values found" + Environment.NewLine + 549 "Expected: [1, 9, 4]" + Environment.NewLine + 565 "Assert.Equivalent() Failure: Collection value not found in member 'x'" + Environment.NewLine + 566 "Expected: 6" + Environment.NewLine + 582 "Assert.Equivalent() Failure: Extra values found in member 'x'" + Environment.NewLine + 583 "Expected: [1, 9, 4]" + Environment.NewLine + 620 "Assert.Equivalent() Failure: Collection value not found" + Environment.NewLine + 621 "Expected: { Foo = Biff }" + Environment.NewLine + 637 "Assert.Equivalent() Failure: Collection value not found in member 'x'" + Environment.NewLine + 638 "Expected: { Foo = Biff }" + Environment.NewLine + 675 "Assert.Equivalent() Failure: Collection value not found" + Environment.NewLine + 676 "Expected: { Foo = Biff }" + Environment.NewLine + 692 "Assert.Equivalent() Failure: Extra values found" + Environment.NewLine + 693 "Expected: [{ Foo = Bar }]" + Environment.NewLine + 709 "Assert.Equivalent() Failure: Collection value not found in member 'x'" + Environment.NewLine + 710 "Expected: { Foo = Biff }" + Environment.NewLine + 726 "Assert.Equivalent() Failure: Extra values found in member 'x'" + Environment.NewLine + 727 "Expected: [{ Foo = Bar }]" + Environment.NewLine + 764 "Assert.Equivalent() Failure: Collection value not found" + Environment.NewLine + 765 "Expected: { Foo = Biff }" + Environment.NewLine + 781 "Assert.Equivalent() Failure: Collection value not found in member 'x'" + Environment.NewLine + 782 "Expected: { Foo = Biff }" + Environment.NewLine + 819 "Assert.Equivalent() Failure: Collection value not found" + Environment.NewLine + 820 "Expected: { Foo = Biff }" + Environment.NewLine + 836 "Assert.Equivalent() Failure: Extra values found" + Environment.NewLine + 837 "Expected: [{ Foo = Bar }]" + Environment.NewLine + 853 "Assert.Equivalent() Failure: Collection value not found in member 'x'" + Environment.NewLine + 854 "Expected: { Foo = Biff }" + Environment.NewLine + 870 "Assert.Equivalent() Failure: Extra values found in member 'x'" + Environment.NewLine + 871 "Expected: [{ Foo = Bar }]" + Environment.NewLine + 941 "Assert.Equivalent() Failure: Collection value not found" + Environment.NewLine + 942 "Expected: [\"Foo\"] = 16" + Environment.NewLine + 958 "Assert.Equivalent() Failure: Collection value not found" + Environment.NewLine + 959 "Expected: [\"Foo\"] = [16]" + Environment.NewLine + 975 "Assert.Equivalent() Failure: Collection value not found" + Environment.NewLine + 976 "Expected: [\"Foo\"] = [16]" + Environment.NewLine + 992 "Assert.Equivalent() Failure: Collection value not found in member 'x'" + Environment.NewLine + 993 "Expected: [\"Foo\"] = 16" + Environment.NewLine + 1030 "Assert.Equivalent() Failure: Collection value not found" + Environment.NewLine + 1031 "Expected: [\"Foo\"] = 16" + Environment.NewLine + 1047 "Assert.Equivalent() Failure: Extra values found" + Environment.NewLine + 1048 "Expected: [[\"Bar\"] = 2112, [\"Foo\"] = 42]" + Environment.NewLine + 1064 "Assert.Equivalent() Failure: Collection value not found in member 'x'" + Environment.NewLine + 1065 "Expected: [\"Foo\"] = 16" + Environment.NewLine + 1081 "Assert.Equivalent() Failure: Extra values found in member 'x'" + Environment.NewLine + 1082 "Expected: [[\"Bar\"] = 2112, [\"Foo\"] = 42]" + Environment.NewLine + 1110 "Assert.Equivalent() Failure: Mismatched value on member 'Key'" + Environment.NewLine + 1111 "Expected: 42" + Environment.NewLine + 1127 "Assert.Equivalent() Failure: Collection value not found in member 'Value'" + Environment.NewLine + 1128 "Expected: 6" + Environment.NewLine + 1156 "Assert.Equivalent() Failure: Mismatched value on member 'Key'" + Environment.NewLine + 1157 "Expected: 42" + Environment.NewLine + 1173 "Assert.Equivalent() Failure: Collection value not found in member 'Value'" + Environment.NewLine + 1174 "Expected: 6" + Environment.NewLine +
ExceptionAssertsTests.cs (6)
673 Assert.Contains("Assert.Throws() Failure" + Environment.NewLine + 674 "Expected: typeof(System.ArgumentException)" + Environment.NewLine + 755 "Assert.Throws() Failure" + Environment.NewLine + 756 "Expected: typeof(System.ArgumentException)" + Environment.NewLine + 895 Assert.Contains("Assert.Throws() Failure" + Environment.NewLine + 896 "Expected: typeof(System.ArgumentNullException)" + Environment.NewLine +
NullAssertsTests.cs (2)
40 "Assert.Null() Failure" + Environment.NewLine + 41 "Expected: (null)" + Environment.NewLine +
Sdk\Exceptions\AllExceptionTests.cs (12)
14 $"Multi-line{Environment.NewLine}ToString-print", 15 new Exception($"Multi-line{Environment.NewLine}message") 25 "Assert.All() Failure: 4 out of 6 items in the collection did not pass." + Environment.NewLine + 26 "[1]: Item: Multi-line" + Environment.NewLine + 27 " ToString-print" + Environment.NewLine + 28 " System.Exception: Multi-line" + Environment.NewLine + 29 " message" + Environment.NewLine + 30 "[3]: Item: 2" + Environment.NewLine + 31 " System.Exception: Error 2" + Environment.NewLine + 32 "[5]: Item: System.Object" + Environment.NewLine + 33 " System.Exception: Error 3" + Environment.NewLine + 34 "[6]: Item: " + Environment.NewLine +
Sdk\Exceptions\AssertActualExpectedExceptionTests.cs (16)
14 "Message" + Environment.NewLine + 15 "Expected: String[] [null, \"hello\"]" + Environment.NewLine + 27 "Message" + Environment.NewLine + 28 "Expected: 2" + Environment.NewLine + 40 "Message" + Environment.NewLine + 41 "Multi-Line" + Environment.NewLine + 42 "Expected: Expected" + Environment.NewLine + 43 " Multi-Line" + Environment.NewLine + 44 "Actual: Actual" + Environment.NewLine + 47 var ex = new AssertActualExpectedException($"Expected{Environment.NewLine}Multi-Line", $"Actual{Environment.NewLine}Multi-Line", $"Message{Environment.NewLine}Multi-Line"); 66 "Message" + Environment.NewLine + 67 "Expected: 1 (System.String)" + Environment.NewLine + 79 "Message" + Environment.NewLine + 80 "Expected: 2" + Environment.NewLine +
Sdk\Exceptions\EndsWithExceptionTests.cs (8)
10 "Assert.EndsWith() Failure:" + Environment.NewLine + 11 "Expected: WORLD" + Environment.NewLine + 24 "Assert.EndsWith() Failure:" + Environment.NewLine + 25 "Expected: WORLD" + Environment.NewLine + 38 "Assert.EndsWith() Failure:" + Environment.NewLine + 39 "Expected: first test 1" + Environment.NewLine + 52 "Assert.EndsWith() Failure:" + Environment.NewLine + 53 "Expected: (null)" + Environment.NewLine +
Sdk\Exceptions\EqualExceptionTests.cs (52)
13 "Assert.Equal() Failure" + Environment.NewLine + 14 " ↓ (pos 10)" + Environment.NewLine + 15 "Expected: first test 1" + Environment.NewLine + 16 "Actual: first test" + Environment.NewLine + 29 "Assert.Equal() Failure" + Environment.NewLine + 30 "Expected: first test 1" + Environment.NewLine + 43 "Assert.Equal() Failure" + Environment.NewLine + 44 " ↓ (pos 6)" + Environment.NewLine + 45 "Expected: first failure" + Environment.NewLine + 46 "Actual: first test" + Environment.NewLine + 62 "Assert.Equal() Failure" + Environment.NewLine + 63 "Expected: (null)" + Environment.NewLine + 81 "Assert.Equal() Failure" + Environment.NewLine + 82 "Expected: Int32[] [1, 2, 3]" + Environment.NewLine + 100 "Assert.Equal() Failure" + Environment.NewLine + 101 " ↓ (pos 0)" + Environment.NewLine + 102 "Expected: [1]" + Environment.NewLine + 103 "Actual: [99]" + Environment.NewLine + 121 "Assert.Equal() Failure" + Environment.NewLine + 122 " ↓ (pos 0)" + Environment.NewLine + 123 "Expected: [1, 2, 3, 4, 5]" + Environment.NewLine + 124 "Actual: [99, 2, 3, 4, 5]" + Environment.NewLine + 142 "Assert.Equal() Failure" + Environment.NewLine + 143 " ↓ (pos 1)" + Environment.NewLine + 144 "Expected: [1, 2, 3, 4, 5]" + Environment.NewLine + 145 "Actual: [1, 99, 3, 4, 5]" + Environment.NewLine + 163 "Assert.Equal() Failure" + Environment.NewLine + 164 " ↓ (pos 3)" + Environment.NewLine + 165 "Expected: [1, 2, 3, 4, 5]" + Environment.NewLine + 166 "Actual: [1, 2, 3, 99, 5]" + Environment.NewLine + 184 "Assert.Equal() Failure" + Environment.NewLine + 185 " ↓ (pos 4)" + Environment.NewLine + 186 "Expected: [1, 2, 3, 4, 5]" + Environment.NewLine + 187 "Actual: [1, 2, 3, 4, 99]" + Environment.NewLine + 205 "Assert.Equal() Failure" + Environment.NewLine + 206 "Expected: [1, 2, 3]" + Environment.NewLine + 207 "Actual: [1, 2, 3, 4]" + Environment.NewLine + 225 "Assert.Equal() Failure" + Environment.NewLine + 226 " ↓ (pos 3)" + Environment.NewLine + 227 "Expected: [1, 2, 3, 4]" + Environment.NewLine + 245 "Assert.Equal() Failure" + Environment.NewLine + 246 " ↓ (pos 0)" + Environment.NewLine + 247 "Expected: [1, 2, 3, 4, 5, ...]".Replace("'", "\"") + Environment.NewLine + 248 "Actual: [99, 2, 3, 4, 5, ...]".Replace("'", "\"") + Environment.NewLine + 266 "Assert.Equal() Failure" + Environment.NewLine + 267 " ↓ (pos 3)" + Environment.NewLine + 268 "Expected: [..., 2, 3, 4, 5, 6, ...]".Replace("'", "\"") + Environment.NewLine + 269 "Actual: [..., 2, 3, 99, 5, 6, ...]".Replace("'", "\"") + Environment.NewLine + 287 "Assert.Equal() Failure" + Environment.NewLine + 288 " ↓ (pos 6)" + Environment.NewLine + 289 "Expected: [..., 3, 4, 5, 6, 7]".Replace("'", "\"") + Environment.NewLine + 290 "Actual: [..., 3, 4, 5, 6, 99]".Replace("'", "\"") + Environment.NewLine +
Sdk\Exceptions\StartsWithExceptionTests.cs (8)
11 "Assert.StartsWith() Failure:" + Environment.NewLine + 12 "Expected: WORLD" + Environment.NewLine + 25 "Assert.StartsWith() Failure:" + Environment.NewLine + 26 "Expected: WORLD" + Environment.NewLine + 39 "Assert.StartsWith() Failure:" + Environment.NewLine + 40 "Expected: first test 1" + Environment.NewLine + 53 "Assert.StartsWith() Failure:" + Environment.NewLine + 54 "Expected: (null)" + Environment.NewLine +
SetAssertsTests.cs (8)
44 @"Assert.Subset() Failure" + Environment.NewLine + 45 @"Expected: HashSet<Int32> [1, 2, 3]" + Environment.NewLine + 70 @"Assert.ProperSubset() Failure" + Environment.NewLine + 71 @"Expected: HashSet<Int32> [1, 2, 3]" + Environment.NewLine + 132 @"Assert.Superset() Failure" + Environment.NewLine + 133 @"Expected: HashSet<Int32> [1, 2, 3]" + Environment.NewLine + 158 @"Assert.ProperSuperset() Failure" + Environment.NewLine + 159 @"Expected: HashSet<Int32> [1, 2, 3]" + Environment.NewLine +
StringAssertsTests.cs (20)
23 "Assert.Contains() Failure" + Environment.NewLine + 24 "Not found: WORLD" + Environment.NewLine + 73 "Assert.DoesNotContain() Failure" + Environment.NewLine + 74 "Found: world" + Environment.NewLine + 175 "Assert.Equal() Failure" + Environment.NewLine + 176 " ↓ (pos 21)" + Environment.NewLine + 177 "Expected: ···hy hello there world, you're a long string with some truncati···" + Environment.NewLine + 178 "Actual: ···hy hello there world! You're a long string!" + Environment.NewLine + 200 "Assert.StartsWith() Failure:" + Environment.NewLine + 201 "Expected: HELLO" + Environment.NewLine + 244 "Assert.EndsWith() Failure:" + Environment.NewLine + 245 "Expected: WORLD!" + Environment.NewLine + 295 "Assert.Matches() Failure:" + Environment.NewLine + 296 @"Regex: \d+" + Environment.NewLine + 331 "Assert.Matches() Failure:" + Environment.NewLine + 332 @"Regex: \d+" + Environment.NewLine + 361 "Assert.DoesNotMatch() Failure:" + Environment.NewLine + 362 @"Regex: \w" + Environment.NewLine + 391 "Assert.DoesNotMatch() Failure:" + Environment.NewLine + 392 @"Regex: \w" + Environment.NewLine +
Microsoft.DotNet.XUnitExtensions (1)
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)
196SpeechToTextResponse response = new("This is a test." + Environment.NewLine + "It's multiple lines."); 197Assert.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.OpenAI (2)
OpenAIClientExtensions.cs (1)
84$"{descriptionNode.GetValue<string>()}{Environment.NewLine}{additionalDescription}" :
OpenAIResponsesChatClient.cs (1)
407$"{result.Instructions}{Environment.NewLine}{instructions}";
Microsoft.Extensions.AI.Tests (1)
ChatCompletion\ChatClientStructuredOutputExtensionsTests.cs (1)
419var 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)
129textWriter.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)
68message = $"{logLevel}: {formatted}{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.ServiceDiscovery.Dns.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);
Microsoft.Extensions.ServiceDiscovery.Dns.Tests.Fuzzing (1)
Program.cs (1)
28{string.Join(Environment.NewLine, fuzzers.Select(f => $" {f.Name}"))}
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)
101string.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;
Microsoft.VisualStudio.LanguageServices.CSharp (1)
SemanticSearch\SemanticSearchToolWindowImpl.cs (1)
412pane.OutputStringThreadSafe(message + Environment.NewLine);
Microsoft.VisualStudio.LanguageServices.Implementation (3)
SolutionExplorer\AnalyzersCommandHandler.cs (3)
409var totalMessage = string.Join(Environment.NewLine, notificationMessages); 649notificationService.SendNotification(message1 + Environment.NewLine + Environment.NewLine + message2, severity: NotificationSeverity.Error);
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)
1225int 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 (2)
src\Compilers\Shared\CompilerServerLogger.cs (1)
155string output = prefix + message + Environment.NewLine;
src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
Roslyn.Diagnostics.Analyzers (5)
src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
173foreach (var line in child.ToString().Split([Environment.NewLine], StringSplitOptions.RemoveEmptyEntries))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (1)
47_ => 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)
285: reason + Environment.NewLine + restString;
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (1)
91var newLine = Environment.NewLine;
Roslyn.Test.PdbUtilities (6)
EditAndContinue\EditAndContinueTest.GenerationVerifier.cs (3)
91itemSeparator: "," + Environment.NewLine, 108itemSeparator: "," + Environment.NewLine, 125itemSeparator: "," + Environment.NewLine,
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)
87errorBuilder.AppendFormat("Exception message: {0}{1}", Environment.NewLine, exception.Message); 164errorBuilder.AppendFormat("Exception message: {0}{1}", Environment.NewLine, exception.Message); 248errorBuilder.AppendFormat("Exception message: {0}{1}", Environment.NewLine, exception.Message);
SemanticSearch.BuildTask (4)
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);
src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
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)
360builder.Append(Environment.NewLine);
System\Net\Http\HttpRequestMessage.cs (1)
167sb.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)
3452msg += Environment.NewLine; 3834Debugger.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)
594errorMessage.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)
591err += $"{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 (1)
System\IdentityModel\Claims\X509CertificateClaimSet.cs (1)
449Environment.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)
773/// The default is the value of <see cref="Environment.NewLine"/>. 788return _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)
618Text = 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)
899return 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)
899return 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)
899return 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)
899return 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)
899return 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 (6)
CodeMetricsTestsBase.cs (2)
88var actualMetricsTextLines = actualMetricsText.Split([Environment.NewLine], StringSplitOptions.RemoveEmptyEntries); 89var expectedMetricsTextLines = expectedMetricsText.Split([Environment.NewLine], StringSplitOptions.RemoveEmptyEntries);
src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (1)
47_ => 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)
285: reason + Environment.NewLine + restString;
Text.Analyzers (5)
src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
173foreach (var line in child.ToString().Split([Environment.NewLine], StringSplitOptions.RemoveEmptyEntries))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (1)
47_ => 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)
285: reason + Environment.NewLine + restString;
Text.Analyzers.UnitTests (2)
IdentifiersShouldBeSpelledCorrectlyTests.cs (2)
750string.Join(Environment.NewLine, words?.Select(x => $"<Word>{x}</Word>") ?? Enumerable.Empty<string>()); 755var contents = string.Join(Environment.NewLine, recognizedWords);
vbc (1)
src\Compilers\Shared\CompilerServerLogger.cs (1)
155string output = prefix + message + Environment.NewLine;
VBCSCompiler (1)
src\Compilers\Shared\CompilerServerLogger.cs (1)
155string 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 (34)
Sdk\Exceptions\AllException.cs (5)
61 var spaces = Environment.NewLine + "".PadRight(indexString.Length); 63 return $"{indexString}Item: {error.Item2?.ToString()?.Replace(Environment.NewLine, spaces)}{spaces}{error.Item3.ToString().Replace(Environment.NewLine, spaces)}"; 66 return $"{base.Message}: {errors.Count} out of {totalItems} items in the collection did not pass.{Environment.NewLine}{string.Join(Environment.NewLine, formattedErrors)}";
Sdk\Exceptions\AssertActualExpectedException.cs (5)
133 var indentedNewLine = Environment.NewLine + " ".PadRight(titleLength); 135 return $"{base.Message}{Environment.NewLine}{formattedExpectedTitle}{Expected?.Replace(Environment.NewLine, indentedNewLine) ?? "(null)"}{Environment.NewLine}{formattedActualTitle}{Actual?.Replace(Environment.NewLine, indentedNewLine) ?? "(null)"}";
Sdk\Exceptions\CollectionException.cs (8)
91 return $"{base.Message}{Environment.NewLine}Collection: {ArgumentFormatter.Format(Collection)}{Environment.NewLine}Error during comparison of item at index {IndexFailurePoint}{Environment.NewLine}Inner exception: {innerException}"; 93 return $"{base.Message}{Environment.NewLine}Collection: {ArgumentFormatter.Format(Collection)}{Environment.NewLine}Expected item count: {ExpectedCount}{Environment.NewLine}Actual item count: {ActualCount}"; 109 return innerStackTrace + Environment.NewLine + base.StackTrace; 128 return string.Join(Environment.NewLine, lines);
Sdk\Exceptions\DoesNotMatchException.cs (2)
32 base($"Assert.DoesNotMatch() Failure:{Environment.NewLine}Regex: {expectedRegexPattern}{Environment.NewLine}Value: {actual}")
Sdk\Exceptions\EndsWithException.cs (2)
32 base($"Assert.EndsWith() Failure:{Environment.NewLine}Expected: {ShortenExpected(expected, actual) ?? "(null)"}{Environment.NewLine}Actual: {ShortenActual(expected, actual) ?? "(null)"}")
Sdk\Exceptions\EqualException.cs (3)
193 Environment.NewLine, 200 Environment.NewLine, 209 Environment.NewLine,
Sdk\Exceptions\MatchesException.cs (2)
32 base($"Assert.Matches() Failure:{Environment.NewLine}Regex: {expectedRegexPattern}{Environment.NewLine}Value: {actual}")
Sdk\Exceptions\NotInRangeException.cs (2)
74 $"{base.Message}{Environment.NewLine}Range: ({Low} - {High}){Environment.NewLine}Actual: {Actual ?? "(null)"}";
Sdk\Exceptions\RaisesException.cs (2)
68 $"{base.Message}{Environment.NewLine}{Expected ?? "(null)"}{Environment.NewLine}{Actual ?? "(null)"}";
Sdk\Exceptions\StartsWithException.cs (2)
33 base($"Assert.StartsWith() Failure:{Environment.NewLine}Expected: {expected ?? "(null)"}{Environment.NewLine}Actual: {ShortenActual(expected, actual) ?? "(null)"}")
Sdk\Exceptions\XunitException.cs (1)
114 result = $"{result}{Environment.NewLine}{stackTrace}";