1876 references to Trim
Analyzer.Utilities.UnitTests (1)
aspire (4)
Aspire.Azure.AI.OpenAI (1)
Aspire.Azure.Messaging.EventHubs (4)
Aspire.Azure.Messaging.ServiceBus (4)
Aspire.Azure.Messaging.WebPubSub (4)
Aspire.Azure.Storage.Queues (4)
Aspire.Cli.Tests (2)
Aspire.Dashboard (6)
Aspire.Dashboard.Components.Tests (1)
Aspire.Hosting (1)
Aspire.Hosting.Azure.CosmosDB (4)
Aspire.Hosting.Azure.Tests (1)
Aspire.Hosting.Docker (1)
Aspire.Hosting.Tests (4)
Aspire.Microsoft.Azure.Cosmos (4)
Aspire.Microsoft.EntityFrameworkCore.Cosmos (4)
Aspire.Templates.Tests (2)
BoundTreeGenerator (1)
BuildBoss (8)
csc (1)
CSharpErrorFactsGenerator (1)
dotnet-dev-certs (1)
dotnet-svcutil.xmlserializer (2)
dotnet-svcutil-lib (84)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlReaderDelegator.cs (1)
348str = str.Trim();
dotnet-svcutil-lib.Tests (4)
dotnet-user-jwts (3)
dotnet-user-secrets (1)
GenerateDocumentationAndConfigFiles (27)
illink (2)
ILLink.RoslynAnalyzer (3)
ILLink.Tasks (2)
Infrastructure.Common (5)
InMemory.FunctionalTests (2)
installer.tasks (5)
InteractiveHost.UnitTests (29)
InteractiveHostDesktopTests.cs (28)
82var errorOutput = (await ReadErrorOutputToEnd()).Trim();
206var errorOut = (await ReadErrorOutputToEnd()).Trim();
217var errorOut = (await ReadErrorOutputToEnd()).Trim();
242Assert.Equal("5", output.Trim());
246Assert.Equal("2", output.Trim());
250Assert.Equal("3", output.Trim());
254Assert.Equal("4", output.Trim());
262var errorOut = (await ReadErrorOutputToEnd()).Trim();
275var errorOut = (await ReadErrorOutputToEnd()).Trim();
344Assert.Equal("", error.Trim());
345Assert.Equal("", output.Trim());
351Assert.Equal("", error.Trim());
352Assert.Equal("", output.Trim());
358Assert.Equal("", error.Trim());
359Assert.Equal("", output.Trim());
376Assert.Equal("C { }", output.Trim());
385Assert.Equal("", error.Trim());
386Assert.Equal("C { }", output.Trim());
447Assert.Equal("", error.Trim());
448Assert.Equal("1", output.Trim());
475Assert.Equal("", error.Trim());
476Assert.Equal("2", output.Trim());
530Assert.Equal("", error.Trim());
5322", output.Trim());
565(1,5): error CS0246: The type or namespace name 'C2' could not be found (are you missing a using directive or an assembly reference?)", error.Trim());
567Assert.Equal("", output.Trim());
598Assert.Equal("TODO: error", error.Trim());
599Assert.Equal("", output.Trim());
InteropTests (1)
IOperationGenerator (1)
Metrics (22)
Metrics.Legacy (22)
Microsoft.Analyzers.Local (7)
Microsoft.Arcade.Test.Common (4)
Microsoft.AspNetCore.Authentication.JwtBearer (1)
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (3)
Microsoft.AspNetCore.Authentication.Negotiate (1)
Microsoft.AspNetCore.Authorization (2)
Microsoft.AspNetCore.Cryptography.Internal (1)
Microsoft.AspNetCore.DataProtection (3)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
Microsoft.AspNetCore.Http.Extensions.Tests (2)
Microsoft.AspNetCore.Http.Microbenchmarks (2)
Microsoft.AspNetCore.Http.Results.Tests (2)
Microsoft.AspNetCore.HttpLogging (1)
Microsoft.AspNetCore.Mvc.Core.Test (8)
Microsoft.AspNetCore.Mvc.FunctionalTests (177)
HtmlGenerationTest.cs (34)
116responseContent = responseContent.Trim();
233responseContent = responseContent.Trim();
273responseContent = responseContent.Trim();
312responseContent = responseContent.Trim();
342responseContent = responseContent.Trim();
436ResourceFile.UpdateOrVerify(_resourcesAssembly, outputFile1, expected1, response1.Trim());
440Assert.Equal(expected1, response2.Trim(), ignoreLineEndingDifferences: true);
452ResourceFile.UpdateOrVerify(_resourcesAssembly, outputFile2, expected2, response3.Trim());
455Assert.Equal(expected2, response4.Trim(), ignoreLineEndingDifferences: true);
467ResourceFile.UpdateOrVerify(_resourcesAssembly, outputFile3, expected3, response5.Trim());
470Assert.Equal(expected3, response6.Trim(), ignoreLineEndingDifferences: true);
482Assert.Equal(expected1, response1.Trim());
490Assert.Equal(expected2, response2.Trim());
501Assert.Equal(expected1, response1.Trim());
510Assert.Equal(expected2, response2.Trim());
517Assert.Equal(expected1, response3.Trim());
529Assert.Equal(expected1, response1.Trim());
537Assert.Equal(expected2, response2.Trim());
544Assert.Equal(expected3, response3.Trim());
551Assert.Equal(expected4, response4.Trim());
565Assert.Equal(expected1, response1.Trim());
566Assert.Equal(expected2, response2.Trim());
567Assert.Equal(expected3, response3.Trim());
568Assert.Equal(expected4, response4.Trim());
580Assert.Equal(expected1, response1.Trim());
581Assert.Equal(expected1, response2.Trim());
589Assert.Equal(expected2, response3.Trim());
590Assert.Equal(expected2, response4.Trim());
603Assert.Equal(expected1, response1.Trim(), ignoreLineEndingDifferences: true);
612Assert.Equal(expected2, response2.Trim(), ignoreLineEndingDifferences: true);
627Assert.Equal(expected3, response3.Trim(), ignoreLineEndingDifferences: true);
639Assert.Equal("Deal percentage is 20", response1.Trim());
640Assert.Equal("Deal percentage is 20", response2.Trim());
641Assert.Equal("Deal percentage is 30", response3.Trim());
RazorBuildTest.cs (11)
62Assert.Equal("Hello from runtime-compiled rzc page!", responseBody.Trim());
75Assert.Equal("Hello from fallback page!", responseBody.Trim());
87Assert.Equal("Hello from runtime-compiled rzc view!", responseBody.Trim());
100Assert.Equal("Hello from buildtime-compiled rzc view!", responseBody.Trim());
116Assert.Equal(expected1, body.Trim(), ignoreLineEndingDifferences: true);
123var actual2 = body.Trim();
131Assert.Equal(actual2, body.Trim(), ignoreLineEndingDifferences: true);
139Assert.NotEqual(actual2, body.Trim());
154Assert.Equal(expected1, body.Trim(), ignoreLineEndingDifferences: true);
162var actual2 = body.Trim();
170Assert.Equal(actual2, body.Trim(), ignoreLineEndingDifferences: true);
RazorPagesTest.cs (52)
69Assert.StartsWith("Method: OnGetCustomer", content.Trim());
79Assert.StartsWith("Method: OnGetCustomer", content.Trim());
89Assert.StartsWith("Method: OnGetCustomer", content.Trim());
111Assert.StartsWith("Method: OnPostAsync", content.Trim());
121Assert.StartsWith("Method: OnGetViewCustomerAsync", content.Trim());
202Assert.StartsWith("Method: OnGetCustomer", content.Trim());
224Assert.StartsWith("Method: OnPostAsync", content.Trim());
234Assert.StartsWith("Method: OnGetViewCustomerAsync", content.Trim());
294Assert.Equal("From RouteData: 5", content.Trim());
308Assert.Equal("Path: /PathSet.cshtml", content.Trim());
326Assert.StartsWith("<a href=\"/Show?id=2\">Post title</a>", content.Trim());
371Assert.Equal("Hello, World!", content.Trim());
387Assert.Equal("Hello, route!", content.Trim());
403Assert.Equal("Hello, handler!", content.Trim());
427Assert.StartsWith("Hello, You posted!", content.Trim());
446Assert.StartsWith("Hello, pagemodel!", content.Trim());
459Assert.Equal("Hello, DecoratedModel!", content.Trim());
491Assert.Equal("The message: From OnGet", content.Trim());
516Assert.Equal("Hi1", content.Trim());
541Assert.Equal("Hi2", content.Trim());
565Assert.StartsWith("Message: Secret Message", content.Trim());
566Assert.EndsWith("TempData: Secret Message", content.Trim());
590Assert.StartsWith("Message: Secret post", content.Trim());
591Assert.EndsWith("TempData:", content.Trim());
603Assert.StartsWith("Message: Secret post", content.Trim());
604Assert.EndsWith("TempData: Secret post", content.Trim());
663Assert.Equal(expected, response.Trim());
687Assert.StartsWith(expected, content.Trim());
742Assert.StartsWith(expected, content.Trim());
858Assert.StartsWith(expected, content.Trim());
882Assert.StartsWith(expected, content.Trim());
931Assert.StartsWith(expected, content.Trim());
947Assert.Equal(expected, response.Trim(), ignoreLineEndingDifferences: true);
1131Assert.Equal(expected, response.Trim(), ignoreLineEndingDifferences: true);
1147Assert.Equal(expected, response.Trim(), ignoreLineEndingDifferences: true);
1164Assert.Equal(expected, response.Trim(), ignoreLineEndingDifferences: true);
1177Assert.StartsWith(expected, response.Trim());
1190Assert.StartsWith(expected, response.Trim());
1203Assert.StartsWith(expected, response.Trim());
1238Assert.Equal(expected, response.Trim());
1255Assert.Equal(expected, (await response.Content.ReadAsStringAsync()).Trim());
1267Assert.Equal(expected, response.Trim());
1280Assert.Equal(expected, response.Trim());
1303Assert.StartsWith(expected, responseContent.Trim());
1318Assert.Equal("Property-Value", content.Trim());
1344Assert.StartsWith(expected, responseContent.Trim());
1364Assert.Equal(expected, response.Trim());
1377Assert.Equal(expected, response.Trim());
1397Assert.Equal("<p>Hey, it's Mr. totally custom here!</p>", content.Trim());
1464Assert.Empty(content.Trim());
1480Assert.Equal("Hello from OnGet!", content.Trim());
1496Assert.Equal("Hello from OnOptions!", content.Trim());
RazorPagesWithBasePathTest.cs (19)
51Assert.Equal("Hello from /Index", content.Trim());
64Assert.Equal("Hello from /Index", content.Trim());
77Assert.Equal("Hello from /Admin/Index", content.Trim());
90Assert.Equal("Hello from /Admin/RouteTemplate 1", content.Trim());
103Assert.Equal("Hello from /Admin/RouteTemplate my-user-id 4", content.Trim());
135Assert.Equal("Hello from Anonymous", response.Trim());
165Assert.Equal(expected, response.Trim(), ignoreLineEndingDifferences: true);
179Assert.Equal(expected, response.Trim());
192Assert.Contains(expected, response.Trim());
208var responseContent = response.Trim();
227Assert.Equal(expected, response.Trim(), ignoreLineEndingDifferences: true);
287Assert.Equal(expected, response.Trim());
300Assert.Equal(expected, response.Trim());
313Assert.Equal(expected, response.Trim());
326Assert.Equal(expected, response.Trim());
343Assert.Equal(expected, response.Trim(), ignoreLineEndingDifferences: true);
359Assert.Equal(expected, response.Trim(), ignoreLineEndingDifferences: true);
382Assert.Equal(expected, response.Trim(), ignoreLineEndingDifferences: true);
403Assert.Equal("Hello from AllowAnonymous", response.Trim());
ViewEngineTests.cs (18)
84Assert.Equal(expected, body.Trim(), ignoreLineEndingDifferences: true);
103Assert.Equal(expected, body.Trim(), ignoreLineEndingDifferences: true);
117Assert.Equal(expected, body.Trim());
132Assert.Equal(expected, body.Trim(), ignoreLineEndingDifferences: true);
172Assert.Equal(expected, body.Trim(), ignoreLineEndingDifferences: true);
201Assert.Equal(expected, body.Trim());
260Assert.Equal(expected, body.Trim(), ignoreLineEndingDifferences: true);
275Assert.Equal(expected, body.Trim(), ignoreLineEndingDifferences: true);
316Assert.Equal(expected, body.Trim(), ignoreLineEndingDifferences: true);
332Assert.Equal(expected, body.Trim(), ignoreLineEndingDifferences: true);
349Assert.Equal(expected, body.Trim(), ignoreLineEndingDifferences: true);
373Assert.Equal(expected, body.Trim(), ignoreLineEndingDifferences: true);
386Assert.Equal(expected, body.Trim());
399Assert.Equal(expected, body.Trim());
414Assert.Equal(expected, body.Trim(), ignoreLineEndingDifferences: true);
434Assert.Equal(expected, body.Trim(), ignoreLineEndingDifferences: true);
448responseContent = responseContent.Trim();
478Assert.Equal(expected, responseContent.Trim());
Microsoft.AspNetCore.Mvc.IntegrationTests (1)
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Microsoft.AspNetCore.OpenApi.SourceGenerators (1)
Microsoft.AspNetCore.ResponseCompression (1)
Microsoft.AspNetCore.Rewrite (1)
Microsoft.AspNetCore.Server.HttpSys (4)
Microsoft.AspNetCore.Server.IIS (2)
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
Microsoft.AspNetCore.Server.Kestrel.Tests (2)
Microsoft.AspNetCore.Shared.Tests (2)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
Microsoft.AspNetCore.SpaServices.Extensions.Tests (1)
Microsoft.AspNetCore.WebUtilities (2)
Microsoft.Build.Framework (7)
Microsoft.Build.Tasks.CodeAnalysis (24)
Microsoft.Build.Tasks.CodeAnalysis.Sdk (24)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (2)
Microsoft.Cci.Extensions (2)
Microsoft.CodeAnalysis (8)
Microsoft.CodeAnalysis.Analyzers (36)
Microsoft.CodeAnalysis.AnalyzerUtilities (22)
Microsoft.CodeAnalysis.BannedApiAnalyzers (26)
Microsoft.CodeAnalysis.CodeStyle (23)
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
Microsoft.CodeAnalysis.CSharp (3)
Microsoft.CodeAnalysis.CSharp.CodeStyle (6)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (136)
CommandLineTests.cs (98)
227AssertEx.Equal("Class1.cs(1,1): warning ID1000:", output.Trim());
588Assert.Equal("error CS0006: Metadata file 'System.dll' could not be found", outWriter.ToString().Trim());
694Assert.Equal("warning CS2008: No source files specified.", outWriter.ToString().Trim());
699Assert.Equal("warning CS2008: No source files specified.", outWriter.ToString().Trim());
704Assert.Equal("warning CS2008: No source files specified.", outWriter.ToString().Trim());
709Assert.Equal("warning CS2008: No source files specified.", outWriter.ToString().Trim());
2456Assert.Equal("", output.ToString().Trim());
2788Assert.Equal("error CS0006: Metadata file 'missing.dll' could not be found", outWriter.ToString().Trim());
3686output.Trim());
3706output.Trim());
4354Assert.Equal("", outWriter.ToString().Trim());
4373Assert.Equal($@"error CS7093: Cannot read config file '{root}DoesNotExist\NOwhere\bonobo.exe.config' -- 'Could not find a part of the path '{root}DoesNotExist\NOwhere\bonobo.exe.config'.'", outWriter.ToString().Trim());
4753Assert.Equal("", outWriter.ToString().Trim());
4758Assert.Equal("", outWriter.ToString().Trim());
4776var output = outWriter.ToString().Trim();
4798var output = outWriter.ToString().Trim();
5975Assert.Equal("error CS7041: Each linked resource and module must have a unique filename. Filename '" + Path.GetFileName(modfile) + "' is specified more than once in this assembly", outWriter.ToString().Trim());
6027Assert.Equal("Hello World!", output.Trim());
6081Assert.Equal("Hello World!", result.Output.Trim());
6147Assert.Equal("", output.Trim());
6148Assert.Equal("SRC.CS(1,1): error CS1056: Unexpected character '?'", tempOut.ReadAllText().Trim().Replace(srcFile, "SRC.CS"));
6162Assert.Equal("", output.Trim());
6163Assert.Equal("SRC.CS(1,1): error CS1056: Unexpected character '♚'", tempOut.ReadAllText().Trim().Replace(srcFile, "SRC.CS"));
6178Assert.Equal("", output.Trim());
6181Assert.Equal("", output.Trim());
6184Assert.Equal("warning CS2008: No source files specified.", output.Trim());
6198Assert.Equal("", output.Trim());
6212Assert.Equal("", output.Trim());
6348outWriter.ToString().Trim());
6438Assert.Equal("error CS1680: Invalid reference alias option: 'myAlias=' -- missing filename", outWriter.ToString().Trim());
6537Assert.Equal("error CS1680: Invalid reference alias option: 'myAlias=' -- missing filename", outWriter.ToString().Trim());
6955Assert.Equal("error CS5001: Program does not contain a static 'Main' method suitable for an entry point", outWriter.ToString().Trim());
6979Assert.Contains("error CS5001:", outWriter.ToString().Trim());
7002outWriter.ToString().Trim());
7025var patched = Regex.Replace(outWriter.ToString().Trim(), "version \\d+\\.\\d+\\.\\d+(-[\\w\\d]+)*", "version A.B.C-d");
7029Copyright (C) Microsoft Corporation. All rights reserved.".Trim(),
7126Assert.Equal("error CS0006: Metadata file 'missing.dll' could not be found", outWriter.ToString().Trim());
7536".Trim(),
7537Regex.Replace(output, "^.*a.cs", "a.cs", RegexOptions.Multiline).Trim());
8010Assert.Equal("", outWriter.ToString().Trim());
8016outWriter.ToString().Replace(Path.GetFileName(src.Path), "{FILE}").Trim());
8023Assert.Equal("", outWriter.ToString().Trim());
8164Assert.Equal("", outWriter.ToString().Trim());
8169Assert.Equal("", outWriter.ToString().Trim());
8177Assert.Equal("", outWriter.ToString().Trim());
8193Assert.Equal("error CS2006: Command-line syntax error: Missing '<text>' for '/define' option", outWriter.ToString().Trim());
8198Assert.Equal("warning CS2029: Invalid name for a preprocessing symbol; '' is not a valid identifier", outWriter.ToString().Trim());
8203Assert.Equal("error CS2006: Command-line syntax error: Missing '<text>' for '/define:' option", outWriter.ToString().Trim());
8208Assert.Equal("error CS2006: Command-line syntax error: Missing '<text>' for '/define:' option", outWriter.ToString().Trim());
8213Assert.Equal("warning CS2029: Invalid name for a preprocessing symbol; '' is not a valid identifier", outWriter.ToString().Trim());
8218Assert.Equal("warning CS2029: Invalid name for a preprocessing symbol; '' is not a valid identifier", outWriter.ToString().Trim());
8223var errorLines = outWriter.ToString().Trim().Split(new string[] { Environment.NewLine }, StringSplitOptions.None);
8230Assert.Equal("warning CS2029: Invalid name for a preprocessing symbol; 'b@' is not a valid identifier", outWriter.ToString().Trim());
8236errorLines = outWriter.ToString().Trim().Split(new string[] { Environment.NewLine }, StringSplitOptions.None);
8261Assert.Equal("", output.Trim());
8279</doc>".Trim(), content.Trim());
8306Assert.Equal("", output.Trim());
8325</doc>".Trim(), content.Trim());
8335Assert.Equal("", output.Trim());
8351</doc>".Trim(), content.Trim());
8539Assert.Equal(Path.GetFileName(source) + "(7,17): warning CS1634: Expected 'disable' or 'restore'", outWriter.ToString().Trim());
8544Assert.Equal("", outWriter.ToString().Trim());
8549Assert.Equal("error CS2001: Source file '" + Path.Combine(baseDir, "nonexistent.cs") + "' could not be found.", outWriter.ToString().Trim());
8578Assert.Equal("", outWriter.ToString().Trim());
8603$@"{fileName}(4,18): error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.", outWriter.ToString().Trim());
8639{fileName}(5,17): error CS0169: The field 'Test.x' is never used", outWriter.ToString().Trim());
8663Assert.Equal("error CS1583: Error reading Win32 resources -- Image is too small.", outWriter.ToString().Trim());
8688Assert.Equal("error CS1583: Error reading Win32 resources -- Unrecognized resource file format.", outWriter.ToString().Trim());
8708Assert.Equal("", outWriter.ToString().Trim());
8729Assert.Equal("", outWriter.ToString().Trim());
8734Assert.Equal("", outWriter.ToString().Trim());
9157Assert.Equal(expectedOutput, outWriter.ToString().Trim());
9221var cscOutput = outWriter.ToString().Trim();
9270Assert.Equal(expected.Trim(), actual.Trim());
9401Assert.Equal(outString, outWriter.ToString().Trim());
9748Assert.Equal("", outWriter.ToString().Trim());
11212Assert.Equal("error CS2005: Missing file specification for 'keyfile' option", outWriter.ToString().Trim());
11224Assert.Equal("error CS2005: Missing file specification for 'keyfile' option", outWriter.ToString().Trim());
11236Assert.Equal("error CS2005: Missing file specification for 'keyfile' option", outWriter.ToString().Trim());
11248Assert.Equal("error CS2005: Missing file specification for 'keyfile' option", outWriter.ToString().Trim());
11377Assert.Equal("", output.Trim());
11392</doc>".Trim();
11397Assert.Equal(expected, content.Trim());
11401Assert.Equal(expected, output.Trim());
11777Assert.Equal(s_compilerVersion, output.Trim());
11838Assert.Equal(expectedDoc, content.Trim());
11841Assert.Equal("Hello", output.Trim());
11880Assert.Equal("a.cs(1,39): error CS0103: The name 'error' does not exist in the current context", outWriter.ToString().Trim());
11965Assert.Equal(expectedDoc, content.Trim());
12033result.Output.Trim());
12041result.Output.Trim());
12271"The specified module could not be found. (Exception from HRESULT: 0x8007007E)'", result.Output.Trim());
12275AssertEx.AssertEqualToleratingWhitespaceDifferences("", result.Output.Trim());
12284Assert.Equal("", result.Output.Trim());
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (10)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Features (3)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (4)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (22)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (206)
Symbols\StaticAbstractMembersInInterfacesTests.cs (49)
961Diagnostic(ErrorCode.ERR_BadMemberFlag, "I1").WithArguments(modifier.Trim()).WithLocation(4, 21),
964Diagnostic(ErrorCode.ERR_BadMemberFlag, "I2").WithArguments(modifier.Trim()).WithLocation(9, 21),
8594Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M01").WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(12, 26)
9203Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, prefixOp + postfixOp).WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(12, 40)
9211Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, prefixOp + postfixOp).WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(12, 31)
9454Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "true").WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(12, 35),
9457Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "false").WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(13, 35)
9868Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "true").WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(21, 35),
9871Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "false").WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(22, 35)
12472Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, op).WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(12, 41)
12480Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, op).WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(12, 33)
12491Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, ">>>").WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(12, 33)
12566Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, op).WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(12, 32)
12575Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "true").WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(13, 35)
12584Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "false").WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(14, 35)
12672Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, op).WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(12, 40)
12680Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, op).WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(12, 32)
12691Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, ">>>").WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(12, 32)
12742Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "==").WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(12, 35),
12745Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "!=").WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(13, 35)
13602Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P01").WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(12, 25)
13654Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P01").WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(12, 25)
13706Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P01").WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(12, 25)
14251Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P01").WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(12, 41)
14303Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P01").WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(12, 41)
14804Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M01").WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(12, 26)
15210Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M01").WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(12, 26)
15478Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M01").WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(12, 26)
15914Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M01").WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(10, 26),
15917Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M02").WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(11, 26)
19374Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, op).WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(14, 41),
19380Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, op).WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(19, 40)
19391Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, op).WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(14, 33),
19394Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, op).WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(19, 32)
19510Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, op).WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(14, 33),
19513Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, op).WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(19, 32)
19533Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, ">>>").WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(14, 33),
19539Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, ">>>").WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(19, 32)
19554Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, op).WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(14, 33 + checkedKeyword.Length),
19563Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, op).WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(19, 32 + checkedKeyword.Length),
23320Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M01").WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(10, 25),
23323Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M02").WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(11, 25)
26104Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M01").WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(10, 41),
26107Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M02").WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(11, 41)
29006Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "int").WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(14, 39)
29026Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "int").WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(14, 47)
31210Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "int").WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(12, 48)
31218Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "int").WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(12, 39)
31277Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "bool").WithArguments(modifier.Trim(), "10.0", "11.0").WithLocation(21, 39)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (6)
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
Microsoft.CodeAnalysis.EditorFeatures (12)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (3)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (7)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Microsoft.CodeAnalysis.Features (30)
Microsoft.CodeAnalysis.Features.Test.Utilities (6)
Microsoft.CodeAnalysis.Features.UnitTests (1)
Microsoft.CodeAnalysis.LanguageServer (3)
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (22)
Microsoft.CodeAnalysis.PublicApiAnalyzers (22)
Microsoft.CodeAnalysis.ResxSourceGenerator (24)
Microsoft.CodeAnalysis.Scripting (1)
Microsoft.CodeAnalysis.Scripting.TestUtilities (3)
Microsoft.CodeAnalysis.Test.Utilities (12)
Microsoft.CodeAnalysis.VisualBasic (10)
Microsoft.CodeAnalysis.Workspaces (21)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
Microsoft.Data.Analysis (6)
Microsoft.Data.Analysis.Tests (6)
Microsoft.DotNet.Arcade.Sdk (2)
Microsoft.DotNet.ArcadeLogging (2)
Microsoft.DotNet.Build.Manifest (1)
Microsoft.DotNet.Build.Tasks.Installers (5)
Microsoft.DotNet.Build.Tasks.Packaging (8)
Microsoft.DotNet.Build.Tasks.Templating (1)
Microsoft.DotNet.GenFacades (5)
Microsoft.DotNet.Helix.Client (3)
Microsoft.DotNet.Helix.Sdk (4)
Microsoft.DotNet.MacOsPkg.Core (1)
Microsoft.DotNet.NuGetRepack.Tests (1)
Microsoft.DotNet.SignCheckLibrary (3)
Microsoft.DotNet.SignTool (3)
Microsoft.DotNet.SourceBuild.Tasks (1)
Microsoft.DotNet.XliffTasks (1)
Microsoft.Extensions.AI.Evaluation.Quality (6)
Microsoft.Extensions.AI.Integration.Tests (3)
Microsoft.Extensions.Configuration.Ini (3)
Microsoft.Extensions.ServiceDiscovery.Dns (1)
Microsoft.Gen.Logging (2)
Microsoft.Gen.MetadataExtractor (1)
Microsoft.Gen.Metrics (1)
Microsoft.Gen.MetricsReports (1)
Microsoft.Interop.ComInterfaceGenerator (2)
Microsoft.Interop.JavaScript.JSImportGenerator (4)
Microsoft.Maui (4)
Microsoft.Maui.Controls (20)
Microsoft.Maui.Controls.Build.Tasks (20)
Microsoft.Maui.Controls.DesignTools (9)
Microsoft.Maui.Controls.SourceGen (4)
Microsoft.Maui.Controls.Xaml (8)
Microsoft.Maui.Graphics.Text.Markdig (2)
Microsoft.Maui.Resizetizer (3)
Microsoft.ML.Core (9)
Microsoft.ML.Core.Tests (1)
Microsoft.ML.Data (4)
Microsoft.ML.GenAI.LLaMA (7)
Microsoft.ML.GenAI.Mistral (6)
Microsoft.ML.LightGbm (5)
Microsoft.ML.Maml (1)
Microsoft.ML.PerformanceTests (2)
Microsoft.ML.StandardTrainers (3)
Microsoft.ML.TestFramework (1)
Microsoft.ML.Tokenizers (1)
Microsoft.ML.TorchSharp (1)
Microsoft.VisualBasic.Core (6)
Microsoft.VisualStudio.LanguageServices (18)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Microsoft.VisualStudio.LanguageServices.Implementation (1)
Microsoft.Web.Xdt.Extensions (2)
PresentationBuildTasks (25)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (1)
3891text = text.Trim();
PresentationCore (14)
PresentationFramework (28)
PresentationUI (5)
Roslyn.Diagnostics.Analyzers (22)
Roslyn.Diagnostics.CSharp.Analyzers (6)
Roslyn.Test.PdbUtilities (1)
Roslyn.Test.Performance.Utilities (1)
Roslyn.VisualStudio.Next.UnitTests (1)
RulesetToEditorconfigConverter (1)
RulesetToEditorconfigConverter.UnitTests (2)
RunTests (1)
SemanticSearch.BuildTask (1)
SignalR.Client.FunctionalTestApp (1)
System.CodeDom (3)
System.ComponentModel.TypeConverter (12)
System.Configuration.ConfigurationManager (20)
System.Data.Common (4)
System.Data.Odbc (4)
System.Diagnostics.DiagnosticSource (1)
System.DirectoryServices.Protocols (1)
System.Drawing.Common (4)
System.Drawing.Primitives (1)
System.IO.FileSystem.Watcher (1)
System.IO.Packaging (4)
System.Net.Mail (2)
System.Net.Security (1)
System.Private.CoreLib (7)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\DebugProvider.cs (1)
89s = s.Trim();
System.Private.CoreLib.Generators (1)
System.Private.DataContractSerialization (11)
System.Private.Xml (21)
System.Private.Xml.Linq (1)
System.Security.Cryptography.Xml (4)
System.ServiceModel.Primitives (18)
System.ServiceModel.Syndication (2)
System.Text.Json.SourceGeneration (1)
System.Text.RegularExpressions.Generator (2)
System.Windows.Controls.Ribbon (3)
System.Windows.Forms (23)
System.Windows.Forms.Analyzers.CSharp (3)
System.Windows.Forms.Design (3)
System.Windows.Forms.PrivateSourceGenerators.Tests (2)
System.Windows.Forms.Tests (2)
System.Xaml (4)
TaskUsageLogger (1)
Templates.Blazor.Tests (7)
Templates.Blazor.WebAssembly.Auth.Tests (3)
Templates.Blazor.WebAssembly.Tests (3)
Templates.Mvc.Tests (3)
Templates.Tests (3)
Test.Utilities (26)
Text.Analyzers (24)
vbc (1)
VBCSCompiler (1)
VBCSCompiler.UnitTests (29)
CompilerServerTests.cs (25)
265Assert.Equal(expectedOutput.Trim(), result.Output.Trim());
332Assert.Equal("hello.cs(1,1): error CS1056: Unexpected character '?'", result.Output.Trim());
352Assert.Equal("test.cs(1,1): error CS1056: Unexpected character '♕'".Trim(),
353result.Output.Trim().Replace(srcFile, "test.cs"));
378~", result.Output.Trim().Replace(srcFile, "test.vb"));
401~", result.Output.Trim().Replace(srcFile, "test.vb"));
1157Assert.Equal("test.cs(1,1): error CS1056: Unexpected character '?'".Trim(),
1158result.Output.Trim());
1184".Trim(),
1185result.Output.Trim().Replace(srcFile, "SRC.VB"));
1206Assert.Equal("test.cs(1,1): error CS1056: Unexpected character '♕'".Trim(),
1207result.Output.Trim());
1233".Trim(),
1234result.Output.Trim().Replace(srcFile, "SRC.VB"));
1315result.Output.Trim());
1341~", result.Output.Trim().Replace(srcFile, "src.vb"));
1355Assert.Equal("Missing argument for '/keepalive' option.", result.Output.Trim());
1365Assert.Equal("Argument to '/keepalive' option is not a 32-bit integer.", result.Output.Trim());
1375Assert.Equal("Arguments to '/keepalive' option below -1 are invalid.", result.Output.Trim());
1385Assert.Equal("Argument to '/keepalive' option is not a 32-bit integer.", result.Output.Trim());
1415Assert.Equal("", result.Output.Trim());
1439Assert.Equal("", result.Output.Trim());
1449Assert.Equal("", result.Output.Trim());
1471Assert.Equal("", result.Output.Trim());