1892 references to Replace
Aspire.Azure.Messaging.EventHubs (1)
Aspire.Azure.Messaging.EventHubs.Tests (2)
Aspire.Dashboard.Tests (2)
Aspire.EndToEnd.Tests (1)
Aspire.Hosting.Analyzers (1)
Aspire.Hosting.Analyzers.Tests (1)
Aspire.Hosting.Azure (4)
Aspire.Hosting.Azure.Tests (2)
Aspire.Hosting.Docker (6)
Aspire.Hosting.Kubernetes (4)
Aspire.Hosting.Nats.Tests (3)
Aspire.Hosting.Orleans (1)
Aspire.Hosting.Tests (1)
Aspire.Templates.Tests (6)
BasicTestApp (1)
Binding.Http.IntegrationTests (1)
BuildValidator (1)
Client.ExpectedExceptions.IntegrationTests (1)
CodeGenerator (3)
ConfigurationSchemaGenerator (11)
ConfigurationSchemaGenerator.Tests (1)
csc (2)
CSharpSyntaxGenerator (1)
Diagnostics.EFCore.FunctionalTests (8)
DatabaseErrorPageMiddlewareTest.cs (8)
146Assert.Contains(StringsHelpers.GetResourceString("DatabaseErrorPage_AddMigrationCommandPMC").Replace(">", ">"), content);
147Assert.Contains(StringsHelpers.GetResourceString("DatabaseErrorPage_ApplyMigrationsCommandPMC").Replace(">", ">"), content);
208Assert.Contains(StringsHelpers.GetResourceString("DatabaseErrorPage_ApplyMigrationsCommandPMC").Replace(">", ">"), content);
212Assert.DoesNotContain(StringsHelpers.GetResourceString("DatabaseErrorPage_AddMigrationCommandPMC").Replace(">", ">"), content);
247Assert.Contains(StringsHelpers.GetResourceString("DatabaseErrorPage_AddMigrationCommandCLI").Replace(">", ">"), content);
248Assert.Contains(StringsHelpers.GetResourceString("DatabaseErrorPage_AddMigrationCommandPMC").Replace(">", ">"), content);
249Assert.Contains(StringsHelpers.GetResourceString("DatabaseErrorPage_ApplyMigrationsCommandCLI").Replace(">", ">"), content);
250Assert.Contains(StringsHelpers.GetResourceString("DatabaseErrorPage_ApplyMigrationsCommandPMC").Replace(">", ">"), content);
dotnet-getdocument (1)
dotnet-sql-cache (2)
dotnet-svcutil.xmlserializer.IntegrationTests (3)
dotnet-svcutil-lib (40)
dotnet-svcutil-lib.Tests (47)
E2ETests.cs (18)
96var tr = $"-r \"\"{{Newtonsoft.Json,*}}\"\" -bd {this_TestCaseBootstrapDir.Replace("\\", "/")}";
97var options = $"{uri.Replace("\\", "/")} {tf} {tr} -nl -tc global -v minimal -d ../{testCaseName} -n \"\"*,{testCaseName}_NS\"\"";
146.Replace("$serviceUrl$", g_ServiceUrl)
147.Replace("$testCaseBootstratDir$", $"\"\"{this_TestCaseBootstrapDir}\"\"")
148.Replace("$testCasesPath$", g_TestCasesDir);
182uri = uri.Replace("$wsdlDir$", $"{Path.GetDirectoryName(wsdlFile)}{Path.DirectorySeparatorChar}");
215var options = $"{uri} -nl -v minimal -d {outDir.Replace("\\", "/")} -n \"\"*,{testCaseName}_NS\"\" -bd {this_TestCaseBootstrapDir.Replace("\\", "/")}";
325var testCaseName = referenceFolderName.Replace(" ", "_").Split('/').Last();
328cmdOptions = cmdOptions?.Replace("$testCaseOutputDir$", this_TestCaseOutputDir.Replace("\\", "/"));
348var testCaseName = referenceFolderName.Replace(" ", "_").Split('/').Last();
383File.WriteAllText(dstParamsFile, File.ReadAllText(dstParamsFile).Replace("$testCasesPath$", g_TestCasesDir.Replace("\\", "/")));
428var testCaseName = serviceName.Replace(".svc", "");
431var uri = $"{g_ServiceUrl}/{serviceName}".Replace("http", "net.tcp");
518var testCaseName = serviceName.Replace(".svc", "").Replace("/", "_");
FixupUtil.cs (11)
42new ReplaceInfo(Path.GetTempPath().Replace("\\", "\\\\"), "$TEMP$"),
43new ReplaceInfo(Path.GetTempPath().Replace("\\", "/"), "$TEMP$"),
70_replacements.Add(new ReplaceInfo(resultPathReplacement.Replace("\\", "\\\\"), "$resultPath$"));
75_replacements.Add(new ReplaceInfo(testCasesPath.Replace("\\", "\\\\"), "$testCasesPath$"));
78_replacements.Add(new ReplaceInfo(projectPath.Replace("\\", "\\\\"), "$projectPath$"));
80_replacements.Add(new ReplaceInfo(repositoryRoot.Replace("\\", "/"), "$repositoryRoot$"));
81_replacements.Add(new ReplaceInfo(repositoryRoot.Replace("\\", "\\\\"), "$repositoryRoot$"));
125originalText = originalText.Replace("\0", "");
130originalText = originalText.Replace("\r\n", "\n");
131originalText = originalText.Replace("\n", "\r\n");
166updatedText = updatedText.Replace(target, value);
UnitTest.cs (7)
222FileUtil.CopyDirectory(wsdlFilesSrcDir.Replace("$testCasesDir$", g_TestCasesDir), Path.Combine(wsdlFilesDstDir, "WcfProjectNService"), overwrite: true);
240.Replace("$projectPath$", this_TestCaseProject.FullPath)
241.Replace("$testCasesDir$", g_TestCasesDir)
242.Replace("$testOutputDir$", this_TestGroupOutputDir)
243.Replace("$testCaseOutputDir$", this_TestCaseOutputDir)
244.Replace("$testCasesDir$", g_TestCasesDir)
245.Replace("$bootstrapDir$", this_TestCaseBootstrapDir)
dotnet-user-jwts (2)
dotnet-user-secrets (2)
GenerateDocumentationAndConfigFiles (3)
GenerateRulesMissingDocumentation (1)
GetDocument.Insider (2)
HotAddSample (1)
http2cat (2)
IdeCoreBenchmarks (6)
Identity.ExternalClaims (5)
IIS.FunctionalTests (7)
IIS.LongTests (3)
IIS.NewHandler.FunctionalTests (3)
IIS.NewShim.FunctionalTests (3)
IIS.ShadowCopy.Tests (2)
IISExpress.FunctionalTests (8)
illink (5)
Infrastructure.Common (4)
InMemory.FunctionalTests (6)
installer.tasks (15)
GenerateRunScript.cs (14)
80templateContent = templateContent.Replace("[[SetCommands]]", setCommandsBuilder.ToString());
95templateContent = templateContent.Replace("[[RunCommands]]", runCommandsBuilder.ToString());
106templateContent = templateContent.Replace("[[SetCommandsEcho]]", setCommandEchoesBuilder.ToString());
116templateContent = templateContent.Replace("[[RunCommandsEcho]]", runCommandEchoesBuilder.ToString());
122templateContent = templateContent.Replace("\r\n", "\n");
137string sanitizedRunCommand = command.Replace("`", "\\`")
138.Replace("?", "\\")
139.Replace("\r","")
140.Replace("\n"," ")
141.Replace("&", "^&")
142.Replace(">", "^>");
147sanitizedRunCommand = "\"" + sanitizedRunCommand.Replace("\"", "")
148.Replace("(", "")
149.Replace(")", "") + "\"";
InteractiveHost.UnitTests (1)
InteropTests (1)
Microsoft.Arcade.Common (2)
Microsoft.Arcade.Test.Common (5)
Microsoft.AspNetCore.Antiforgery (1)
Microsoft.AspNetCore.App.Analyzers (6)
Microsoft.AspNetCore.App.Analyzers.Test (17)
RouteEmbeddedLanguage\RoutePatternParserTests_ConformanceTests.cs (10)
575var tree = Test(@"""" + template.Replace(@"\", @"\\") + @"""");
577Assert.Collection(parameter.Policies, p => Assert.Equal(":" + constraint.Replace("{", "{{").Replace("}", "}}"), p));
589var tree = Test(@"""" + template.Replace(@"\", @"\\") + @"""");
598var tree = Test(@"""" + template.Replace(@"\", @"\\") + @"""");
613var tree = Test(@"""" + template.Replace(@"\", @"\\") + @"""");
626var tree = Test(@"""" + template.Replace(@"\", @"\\") + @"""");
646var tree = Test(@"""" + template.Replace(@"\", @"\\") + @"""");
696var tree = Test(@"""" + template.Replace(@"\", @"\\") + @"""");
784var tree = Test(@"""" + routePattern.Replace(@"\", @"\\") + @"""");
Microsoft.AspNetCore.Authentication (1)
Microsoft.AspNetCore.Authentication.Abstractions (1)
Microsoft.AspNetCore.Authentication.Facebook (1)
Microsoft.AspNetCore.Authentication.Google (1)
Microsoft.AspNetCore.Authentication.JwtBearer (1)
Microsoft.AspNetCore.Authentication.MicrosoftAccount (1)
Microsoft.AspNetCore.Authentication.OAuth (1)
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
Microsoft.AspNetCore.Authentication.Test (2)
Microsoft.AspNetCore.Authentication.Twitter (1)
Microsoft.AspNetCore.Authentication.WsFederation (1)
Microsoft.AspNetCore.Authorization (1)
Microsoft.AspNetCore.Authorization.Policy (1)
Microsoft.AspNetCore.AzureAppServices.SiteExtension.Tests (1)
Microsoft.AspNetCore.BrowserTesting (1)
Microsoft.AspNetCore.Components (7)
Microsoft.AspNetCore.Components.Analyzers (1)
Microsoft.AspNetCore.Components.Endpoints (2)
Microsoft.AspNetCore.Components.Endpoints.Tests (13)
Assets\ImportMapDefinitionTest.cs (10)
25""".Replace("\r\n", "\n");
37Assert.Equal(expectedJson, importMapDefinition.ToJson().Replace("\r\n", "\n"));
52""".Replace("\r\n", "\n");
66Assert.Equal(expectedJson, importMapDefinition.ToJson().Replace("\r\n", "\n"));
82""".Replace("\r\n", "\n");
96Assert.Equal(expectedJson, importMapDefinition.ToJson().Replace("\r\n", "\n"));
122""".Replace("\r\n", "\n");
128Assert.Equal(expectedJson, importMapDefinition.ToJson().Replace("\r\n", "\n"));
193""".Replace("\r\n", "\n");
199Assert.Equal(expectedImportMap, combinedImportMap.ToJson().Replace("\r\n", "\n"));
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
Microsoft.AspNetCore.Components.Web.Tests (1)
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
Microsoft.AspNetCore.Components.WebView (1)
Microsoft.AspNetCore.Cors (2)
Microsoft.AspNetCore.Cryptography.Internal (1)
Microsoft.AspNetCore.DataProtection (2)
Microsoft.AspNetCore.DataProtection.Abstractions (1)
Microsoft.AspNetCore.DataProtection.Extensions (1)
Microsoft.AspNetCore.DataProtection.Tests (1)
Microsoft.AspNetCore.Diagnostics (1)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (1)
Microsoft.AspNetCore.Diagnostics.HealthChecks (1)
Microsoft.AspNetCore.Hosting (1)
Microsoft.AspNetCore.Http.Abstractions (2)
Microsoft.AspNetCore.Http.Connections.Tests (1)
Microsoft.AspNetCore.Http.Extensions (1)
Microsoft.AspNetCore.Http.Extensions.Tests (2)
Microsoft.AspNetCore.Http.Microbenchmarks (2)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (2)
Microsoft.AspNetCore.Http.ValidationsGenerator (6)
Microsoft.AspNetCore.HttpLogging (1)
Microsoft.AspNetCore.Identity (1)
Microsoft.AspNetCore.Identity.EntityFrameworkCore (1)
Microsoft.AspNetCore.Identity.FunctionalTests (1)
Microsoft.AspNetCore.Identity.Test (3)
Microsoft.AspNetCore.Identity.UI (12)
Microsoft.AspNetCore.JsonPatch (1)
Microsoft.AspNetCore.JsonPatch.SystemTextJson (1)
Microsoft.AspNetCore.Localization (1)
Microsoft.AspNetCore.Mvc.Abstractions (1)
Microsoft.AspNetCore.Mvc.Core (3)
Microsoft.AspNetCore.Mvc.Core.Test (1)
Microsoft.AspNetCore.Mvc.Cors (1)
Microsoft.AspNetCore.Mvc.DataAnnotations (3)
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (1)
Microsoft.AspNetCore.Mvc.Formatters.Xml (1)
Microsoft.AspNetCore.Mvc.FunctionalTests (17)
JsonPatchInputFormatterTest.cs (7)
37var input = "[{ 'op': 'add', 'path': 'Reviews/-', 'value': { 'Rating': 3.5 }}]".Replace("'", "\"");
57var input = "[{ 'op': 'replace', 'path': 'Reviews/0/Rating', 'value': 5 }]".Replace("'", "\"");
77var input = "[{ 'op': 'copy', 'path': 'Reviews/1/Rating', 'from': 'Reviews/0/Rating'}]".Replace("'", "\"");
98var input = "[{ 'op': 'move', 'path': 'Reviews/1/Rating', 'from': 'Reviews/0/Rating'}]".Replace("'", "\"");
119var input = "[{ 'op': 'remove', 'path': 'Reviews/0/Rating'}]".Replace("'", "\"");
139var input = "[{ 'op': 'add', 'path': 'Reviews/-', 'value': { 'Rating': 'not-a-double' }}]".Replace("'", "\"");
153var input = "[{ 'op': 'invalid', 'path': 'Reviews/1/Rating', 'from': 'Reviews/0/Rating'}]".Replace("'", "\"");
Microsoft.AspNetCore.Mvc.IntegrationTests (1)
Microsoft.AspNetCore.Mvc.Localization (1)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
Microsoft.AspNetCore.Mvc.Razor (3)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
Microsoft.AspNetCore.Mvc.RazorPages (2)
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (8)
Microsoft.AspNetCore.Mvc.Testing (2)
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (3)
Microsoft.AspNetCore.OpenApi.SourceGenerators (1)
Microsoft.AspNetCore.OutputCaching (1)
Microsoft.AspNetCore.OutputCaching.Tests (1)
Microsoft.AspNetCore.RateLimiting (1)
Microsoft.AspNetCore.Razor.Runtime (1)
Microsoft.AspNetCore.Rewrite (1)
Microsoft.AspNetCore.Routing (5)
Microsoft.AspNetCore.Server.HttpSys (1)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (2)
Microsoft.AspNetCore.Server.IIS (1)
Microsoft.AspNetCore.Server.IntegrationTesting (6)
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (8)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
Microsoft.AspNetCore.Session (1)
Microsoft.AspNetCore.Shared.Tests (2)
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (2)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
Microsoft.AspNetCore.StaticFiles (1)
Microsoft.AspNetCore.WebSockets.ConformanceTests (3)
Microsoft.AspNetCore.WebUtilities (1)
Microsoft.Build (26)
Evaluation\Expander.cs (5)
3608ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", partiallyEvaluated, ex.Message.Replace("\r\n", " "));
3679ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", partiallyEvaluated, ex.InnerException.Message.Replace("\r\n", " "));
3690ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionStaticMethodSyntax", _expression, ex.Message.Replace("Microsoft.Build.Evaluation.IntrinsicFunctions.", "[MSBuild]::"));
4104string argument = args[n].ToString().Replace('|', ',').Replace(typeFullName, "").Replace(typeLeafName, "");
Microsoft.Build.BuildCheck.UnitTests (8)
EndToEndTests.cs (8)
193text = text.Replace(original, replacement);
203Directory.CreateDirectory(dirPath.Replace(sourcePath, targetPath));
209File.Copy(newPath, newPath.Replace(sourcePath, targetPath), true);
402text = text.Replace(original, replacement);
1050.Replace("TestFilePath", testFile.Path)
1051.Replace("WorkFolderPath", workFolder.Path);
1087configContent = configContent.Replace($"build_check.{rule.RuleId}.Severity={rule.RuleId}Severity", $"build_check.{rule.RuleId}.Severity={rule.Severity}");
1098configContent = configContent.Replace($"build_check.{rule.RuleId}.CustomConfig=dummy", $"build_check.{rule.RuleId}.{rule.CustomConfig.ConfigKey}={rule.CustomConfig.Value}");
Microsoft.Build.CommandLine.UnitTests (2)
Microsoft.Build.Engine.OM.UnitTests (14)
Definition\ProtectImports_Tests.cs (10)
503string expanded = original.Replace("$importFilename", _importFilename);
504expanded = expanded.Replace("$importedMetadataName", ImportedMetadataName);
505expanded = expanded.Replace("$importedMetadataValue", ImportedMetadataValue);
506expanded = expanded.Replace("$itemName", ItemName);
507expanded = expanded.Replace("$itemType", ItemType);
508expanded = expanded.Replace("$projectMetadataName", ProjectMetadataName);
509expanded = expanded.Replace("$overridableMetadataName", OverridableMetadataName);
510expanded = expanded.Replace("$nonOverridableMetadataName", NonOverridableMetadataName);
511expanded = expanded.Replace("$projectMetadataValue", ProjectMetadataValue);
512expanded = expanded.Replace("$propertyName", PropertyName);
Microsoft.Build.Engine.UnitTests (71)
ConsoleOutputAlignerTests.cs (16)
123output.ShouldBe(expected.Replace("\n", Environment.NewLine));
146input = input.Replace("\n", Environment.NewLine);
168expected = expected.Replace("\n", Environment.NewLine) + Environment.NewLine;
183input = input.Replace("\n", Environment.NewLine);
206string expected = input.Replace("\r", "").Replace("\n", Environment.NewLine) + Environment.NewLine;
220input = input.Replace("\n", Environment.NewLine);
221expected = expected.Replace("\n", Environment.NewLine);
234input = input.Replace("\n", Environment.NewLine);
235expected = expected.Replace("\n", Environment.NewLine);
248input = input.Replace("\n", Environment.NewLine);
263input = input.Replace("\n", Environment.NewLine);
278input = input.Replace("\n", Environment.NewLine);
293input = input.Replace("\n", Environment.NewLine);
369input = input.Replace("\n", Environment.NewLine);
370expected = expected.Replace("\n", Environment.NewLine);
Construction\SolutionFilter_Tests.cs (5)
215TransientTestFile slnf = testEnvironment.CreateFile(folder, "Dev.slnf", slnfValue.Replace(@"C:\\notAPath\\MSBuild.Dev.sln", sln.Path.Replace("\\", "\\\\")));
268""path"": """ + (convertToSlnx ? ConvertToSlnx(sln.Path) : sln.Path).Replace("\\", "\\\\") + @""",
270""" + Path.Combine("src", Path.GetFileName(microsoftBuild.Path)!).Replace("\\", "\\\\") + @""",
271""" + Path.Combine("src", Path.GetFileName(tasksUnitTests.Path)!).Replace("\\", "\\\\") + @"""
Evaluation\Preprocessor_Tests.cs (16)
25private static string CurrentDirectoryXmlCommentFriendly => Directory.GetCurrentDirectory().Replace("--", "__");
731string directoryXmlCommentFriendly = directory.Replace("--", "__");
896{sdkPropsPath.Replace("--", "__")}
917{sdkTargetsPath.Replace("--", "__")}
1002{projectPath.Replace("--", "__")}
1010{virtualProjectPath.Replace("--", "__")}
1030{importedPropsPath.Replace("--", "__")}
1040{projectPath.Replace("--", "__")}
1124{sdkPropsPath1.Replace("--", "__")}
1139<Import Project=""{importPath.Replace("--", "__")}"">
1141{importPath.Replace("--", "__")}
1149{sdkPropsPath2.Replace("--", "__")}
1159{importPath.Replace("--", "__")}
1170{sdkTargetsPath2.Replace("--", "__")}
1180{importPath.Replace("--", "__")}
1198{sdkTargetsPath1.Replace("--", "__")}
Microsoft.Build.Tasks.CodeAnalysis (2)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (6)
DotNetSdkTests.cs (6)
34var escapedRoot1 = root1.Replace(",", ",,").Replace("=", "==");
35var escapedRoot2 = root2.Replace(",", ",,").Replace("=", "==");
36var escapedRoot3 = root3.Replace(",", ",,").Replace("=", "==");
Microsoft.Build.Tasks.Core (19)
GetSDKReferenceFiles.cs (12)
316Log.LogMessageFromResources(MessageImportance.Low, "GetSDKReferenceFiles.ExpandRedistFrom", path.Replace(resolvedSDKReference.ItemSpec, String.Empty));
337Log.LogMessageFromResources("GetSDKReferenceFiles.AddingRedistFile", redist.RedistFile.Replace(redist.SDKReferenceItem.ItemSpec, String.Empty), redist.TargetPath);
390Log.LogMessageFromResources(MessageImportance.Low, "GetSDKReferenceFiles.ExpandReferencesFrom", path.Replace(resolvedSDKReference.ItemSpec, String.Empty));
411Log.LogMessageFromResources("GetSDKReferenceFiles.AddingReference", reference.AssemblyLocation.Replace(reference.SDKReferenceItem.ItemSpec, String.Empty));
599Log.LogMessageFromResources("GetSDKReferenceFiles.ConflictReferenceSameSDK", winner.SDKReferenceItem.GetMetadata("OriginalItemSpec"), winner.AssemblyLocation.Replace(winner.SDKReferenceItem.ItemSpec, String.Empty), resolvedReference.AssemblyLocation.Replace(resolvedReference.SDKReferenceItem.ItemSpec, String.Empty));
603string message = ResourceUtilities.FormatResourceStringStripCodeAndKeyword("GetSDKReferenceFiles.ConflictReferenceSameSDK", winner.SDKReferenceItem.GetMetadata("OriginalItemSpec"), winner.AssemblyLocation.Replace(winner.SDKReferenceItem.ItemSpec, String.Empty), resolvedReference.AssemblyLocation.Replace(resolvedReference.SDKReferenceItem.ItemSpec, String.Empty));
639Log.LogMessageFromResources("GetSDKReferenceFiles.ConflictRedistSameSDK", redistFile.TargetPath, redistFile.SDKReferenceItem.GetMetadata("OriginalItemSpec"), winner.RedistFile.Replace(redistFile.SDKReferenceItem.ItemSpec, String.Empty), redistFile.RedistFile.Replace(redistFile.SDKReferenceItem.ItemSpec, String.Empty));
643string message = ResourceUtilities.FormatResourceStringStripCodeAndKeyword("GetSDKReferenceFiles.ConflictRedistSameSDK", redistFile.TargetPath, redistFile.SDKReferenceItem.GetMetadata("OriginalItemSpec"), winner.RedistFile.Replace(redistFile.SDKReferenceItem.ItemSpec, String.Empty), redistFile.RedistFile.Replace(redistFile.SDKReferenceItem.ItemSpec, String.Empty));
Microsoft.Build.Tasks.UnitTests (67)
GetSDKReference_Tests.cs (57)
675engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[0].ItemSpec.Replace(t.References[0].GetMetadata("SDKRootPath"), String.Empty));
676engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[1].ItemSpec.Replace(t.References[1].GetMetadata("SDKRootPath"), String.Empty));
677engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[2].ItemSpec.Replace(t.References[2].GetMetadata("SDKRootPath"), String.Empty));
678engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[3].ItemSpec.Replace(t.References[3].GetMetadata("SDKRootPath"), String.Empty));
679engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[4].ItemSpec.Replace(t.References[4].GetMetadata("SDKRootPath"), String.Empty));
680engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[5].ItemSpec.Replace(t.References[5].GetMetadata("SDKRootPath"), String.Empty));
681engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[6].ItemSpec.Replace(t.References[6].GetMetadata("SDKRootPath"), String.Empty));
682engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[7].ItemSpec.Replace(t.References[7].GetMetadata("SDKRootPath"), String.Empty));
724engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[0].ItemSpec.Replace(t.References[0].GetMetadata("SDKRootPath"), String.Empty));
725engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[1].ItemSpec.Replace(t.References[1].GetMetadata("SDKRootPath"), String.Empty));
726engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[2].ItemSpec.Replace(t.References[2].GetMetadata("SDKRootPath"), String.Empty));
727engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[3].ItemSpec.Replace(t.References[3].GetMetadata("SDKRootPath"), String.Empty));
728engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[4].ItemSpec.Replace(t.References[4].GetMetadata("SDKRootPath"), String.Empty));
816engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[0].ItemSpec.Replace(t.References[0].GetMetadata("SDKRootPath"), String.Empty));
817engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[1].ItemSpec.Replace(t.References[1].GetMetadata("SDKRootPath"), String.Empty));
818engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[2].ItemSpec.Replace(t.References[2].GetMetadata("SDKRootPath"), String.Empty));
819engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[3].ItemSpec.Replace(t.References[3].GetMetadata("SDKRootPath"), String.Empty));
820engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[4].ItemSpec.Replace(t.References[4].GetMetadata("SDKRootPath"), String.Empty));
821engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[5].ItemSpec.Replace(t.References[5].GetMetadata("SDKRootPath"), String.Empty));
822engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[6].ItemSpec.Replace(t.References[6].GetMetadata("SDKRootPath"), String.Empty));
823engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[7].ItemSpec.Replace(t.References[7].GetMetadata("SDKRootPath"), String.Empty));
868engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[0].ItemSpec.Replace(t.References[0].GetMetadata("SDKRootPath"), String.Empty));
869engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[1].ItemSpec.Replace(t.References[1].GetMetadata("SDKRootPath"), String.Empty));
870engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[2].ItemSpec.Replace(t.References[2].GetMetadata("SDKRootPath"), String.Empty));
871engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[3].ItemSpec.Replace(t.References[3].GetMetadata("SDKRootPath"), String.Empty));
872engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[4].ItemSpec.Replace(t.References[4].GetMetadata("SDKRootPath"), String.Empty));
873engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[5].ItemSpec.Replace(t.References[5].GetMetadata("SDKRootPath"), String.Empty));
874engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[6].ItemSpec.Replace(t.References[6].GetMetadata("SDKRootPath"), String.Empty));
875engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[7].ItemSpec.Replace(t.References[7].GetMetadata("SDKRootPath"), String.Empty));
919engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[0].ItemSpec.Replace(t.References[0].GetMetadata("SDKRootPath"), String.Empty));
920engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[1].ItemSpec.Replace(t.References[1].GetMetadata("SDKRootPath"), String.Empty));
921engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[2].ItemSpec.Replace(t.References[2].GetMetadata("SDKRootPath"), String.Empty));
922engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[3].ItemSpec.Replace(t.References[3].GetMetadata("SDKRootPath"), String.Empty));
923engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[4].ItemSpec.Replace(t.References[4].GetMetadata("SDKRootPath"), String.Empty));
924engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[5].ItemSpec.Replace(t.References[5].GetMetadata("SDKRootPath"), String.Empty));
925engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[6].ItemSpec.Replace(t.References[6].GetMetadata("SDKRootPath"), String.Empty));
926engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[7].ItemSpec.Replace(t.References[7].GetMetadata("SDKRootPath"), String.Empty));
957engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[0].ItemSpec.Replace(t.RedistFiles[0].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[0].GetMetadata("TargetPath"));
958engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[1].ItemSpec.Replace(t.RedistFiles[1].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[1].GetMetadata("TargetPath"));
959engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[2].ItemSpec.Replace(t.RedistFiles[2].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[2].GetMetadata("TargetPath"));
960engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[3].ItemSpec.Replace(t.RedistFiles[3].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[3].GetMetadata("TargetPath"));
961engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[4].ItemSpec.Replace(t.RedistFiles[4].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[4].GetMetadata("TargetPath"));
1018engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[0].ItemSpec.Replace(t.RedistFiles[0].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[0].GetMetadata("TargetPath"));
1019engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[1].ItemSpec.Replace(t.RedistFiles[1].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[1].GetMetadata("TargetPath"));
1020engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[2].ItemSpec.Replace(t.RedistFiles[2].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[2].GetMetadata("TargetPath"));
1021engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[3].ItemSpec.Replace(t.RedistFiles[3].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[3].GetMetadata("TargetPath"));
1022engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[4].ItemSpec.Replace(t.RedistFiles[4].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[4].GetMetadata("TargetPath"));
1050engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[0].ItemSpec.Replace(t.RedistFiles[0].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[0].GetMetadata("TargetPath"));
1051engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[1].ItemSpec.Replace(t.RedistFiles[1].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[1].GetMetadata("TargetPath"));
1052engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[2].ItemSpec.Replace(t.RedistFiles[2].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[2].GetMetadata("TargetPath"));
1053engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[3].ItemSpec.Replace(t.RedistFiles[3].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[3].GetMetadata("TargetPath"));
1054engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[4].ItemSpec.Replace(t.RedistFiles[4].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[4].GetMetadata("TargetPath"));
1082engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[0].ItemSpec.Replace(t.RedistFiles[0].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[0].GetMetadata("TargetPath"));
1083engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[1].ItemSpec.Replace(t.RedistFiles[1].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[1].GetMetadata("TargetPath"));
1084engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[2].ItemSpec.Replace(t.RedistFiles[2].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[2].GetMetadata("TargetPath"));
1085engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[3].ItemSpec.Replace(t.RedistFiles[3].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[3].GetMetadata("TargetPath"));
1086engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[4].ItemSpec.Replace(t.RedistFiles[4].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[4].GetMetadata("TargetPath"));
Microsoft.Build.UnitTests.Shared (2)
Microsoft.Build.Utilities.Core (4)
Microsoft.Build.Utilities.UnitTests (2)
Microsoft.Cci.Extensions (2)
Microsoft.CodeAnalysis (4)
Microsoft.CodeAnalysis.CodeStyle (11)
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
Microsoft.CodeAnalysis.CSharp (3)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (12)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (8)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (71)
CodeActions\InitializeParameter\AddParameterCheckTests.cs (21)
584throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(a)}").Replace("""
593throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(b)}").Replace("""
602throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(c)}").Replace("""
678throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(a)}").Replace("""
687throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(b)}").Replace("""
741throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(a)}").Replace("""
750throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(c)}").Replace("""
787throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(a)}").Replace("""
796throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(c)}").Replace("""
834throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(a)}").Replace("""
848throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(c)}").Replace("""
1970throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(s)}").Replace("""
2008throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_whitespace, "{nameof(s)}").Replace("""
2079throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(s)}").Replace("""
2135throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(bar)}").Replace("""
2728throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(s)}").Replace("""
2770throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(s)}").Replace("""
2813throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(s)}").Replace("""
2855if (string.IsNullOrEmpty(s)) throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(s)}").Replace("""
2896if (string.IsNullOrEmpty(s)) throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(s)}").Replace("""
2939throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(s)}").Replace("""
Formatting\Indentation\SmartIndenterEnterOnTokenTests.cs (2)
1388await AssertIndentUsingSmartTokenFormatterAsync(code.Replace(" ", "\t"), ch, indentationLine, expectedIndentation, useTabs: true).ConfigureAwait(false);
1428await AssertIndentNotUsingSmartTokenFormatterButUsingIndenterAsync(code.Replace(" ", "\t"), indentationLine, expectedIndentation, useTabs: true, indentStyle).ConfigureAwait(false);
Formatting\Indentation\SmartIndenterTests.cs (3)
3524AssertSmartIndentInProjection(markup.Replace(" ", "\t"), expectedIndentation, useTabs: true, options, indentStyle);
3579AssertSmartIndent(code.Replace(" ", "\t"), indentationLine, expectedIndentation, useTabs: true, options, indentStyle);
3609AssertSmartIndent(code.Replace(" ", "\t"), expectedIndentation, useTabs: true, options, indentStyle);
Formatting\Indentation\SmartTokenFormatterFormatTokenTests.cs (12)
461actualIndentation = await GetSmartTokenFormatterIndentationAsync(code.Replace(" ", "\t"), indentationLine: 5, ch: '#', useTabs: true);
480actualIndentation = await GetSmartTokenFormatterIndentationAsync(code.Replace(" ", "\t"), indentationLine: 5, ch: 'n', useTabs: true);
500actualIndentation = await GetSmartTokenFormatterIndentationAsync(code.Replace(" ", "\t"), indentationLine: 5, ch: 'n', useTabs: true);
524actualIndentation = await GetSmartTokenFormatterIndentationAsync(code.Replace(" ", "\t"), indentationLine: 9, ch: 't', useTabs: true);
548actualIndentation = await GetSmartTokenFormatterIndentationAsync(code.Replace(" ", "\t"), indentationLine: 9, ch: 'e', useTabs: true);
555await AssertSmartTokenFormatterOpenBraceWithBaseIndentationAsync(markup.Replace(" ", "\t"), baseIndentation, expectedIndentation, useTabs: true).ConfigureAwait(false);
580await AssertSmartTokenFormatterOpenBraceAsync(code.Replace(" ", "\t"), indentationLine, expectedSpace, useTabs: true, baseIndentation, span).ConfigureAwait(false);
601await AssertSmartTokenFormatterOpenBraceAsync(expected.Replace(" ", "\t"), code.Replace(" ", "\t"), indentationLine, useTabs: true).ConfigureAwait(false);
622await AssertSmartTokenFormatterCloseBraceWithBaseIndentation(markup.Replace(" ", "\t"), baseIndentation, expectedIndentation, useTabs: true).ConfigureAwait(false);
647await AssertSmartTokenFormatterCloseBraceAsync(code.Replace(" ", "\t"), indentationLine, expectedSpace, useTabs: true, baseIndentation, span).ConfigureAwait(false);
667await ExpectException_SmartTokenFormatterCloseBraceAsync(code.Replace(" ", "\t"), indentationLine, useTabs: true).ConfigureAwait(false);
SignatureHelp\InvocationExpressionSignatureHelpProviderTests.cs (6)
1856await TestAsync(markup.Replace("ARGUMENTS", arguments), [new SignatureHelpTestItem("void Program.M(int i1, int i2, int i3)", currentParameterIndex: expectedParameterIndex, isSelected: true)]);
1881await TestAsync(markup.Replace("ARGUMENTS", arguments), [new SignatureHelpTestItem("void Delegate(int i1, int i2, int i3)", currentParameterIndex: expectedParameterIndex, isSelected: true)]);
1915await TestAsync(markup.Replace("ARGUMENTS", arguments), [
1940await TestAsync(markup.Replace("ARGUMENTS", arguments), [new SignatureHelpTestItem($"void Program.M(string s, string s2)", currentParameterIndex: expectedParameterIndex, isSelected: true)]);
1974await TestAsync(markup.Replace("ARGUMENTS", arguments), [new SignatureHelpTestItem("void Program.M(int i1, params int[] i2)", currentParameterIndex: expectedParameterIndex, isSelected: true)]);
2030await TestAsync(markup.Replace("ARGUMENTS", arguments), [new SignatureHelpTestItem("void Program.M(int i, string s)", currentParameterIndex: expectedParameterIndex, isSelected: true)]);
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (34)
EmbeddedLanguages\RegularExpressions\CSharpRegexParserTests_BasicTests.cs (15)
2061<Diagnostic Message="{{FeaturesResources.Illegal_x_y_with_x_less_than_y.Replace(">", ">")}}" Span="[13..14)" Text="0" />
4721<Diagnostic Message="{FeaturesResources.Malformed_named_back_reference.Replace("<", "<").Replace(">", ">")}" Span="[10..12)" Text="\k" />
4750<Diagnostic Message="{FeaturesResources.Malformed_named_back_reference.Replace("<", "<").Replace(">", ">")}" Span="[10..12)" Text="\k" />
4779<Diagnostic Message="{FeaturesResources.Malformed_named_back_reference.Replace("<", "<").Replace(">", ">")}" Span="[10..12)" Text="\k" />
5048<Diagnostic Message="{FeaturesResources.Malformed_named_back_reference.Replace("<", "<").Replace(">", ">")}" Span="[10..12)" Text="\k" />
5077<Diagnostic Message="{FeaturesResources.Malformed_named_back_reference.Replace("<", "<").Replace(">", ">")}" Span="[10..12)" Text="\k" />
5106<Diagnostic Message="{FeaturesResources.Malformed_named_back_reference.Replace("<", "<").Replace(">", ">")}" Span="[10..12)" Text="\k" />
5268<Diagnostic Message="{FeaturesResources.Malformed_named_back_reference.Replace("<", "<").Replace(">", ">")}" Span="[10..12)" Text="\k" />
EmbeddedLanguages\RegularExpressions\CSharpRegexParserTests_DotnetNegativeTests.cs (10)
119<Diagnostic Message="{FeaturesResources.Malformed_named_back_reference.Replace("<", "<").Replace(">", ">")}" Span="[10..12)" Text="\k" />
145<Diagnostic Message="{FeaturesResources.Malformed_named_back_reference.Replace("<", "<").Replace(">", ">")}" Span="[10..12)" Text="\k" />
4260<Diagnostic Message="{FeaturesResources.Malformed_named_back_reference.Replace("<", "<").Replace(">", ">")}" Span="[35..37)" Text="\k" />
5263<Diagnostic Message="{FeaturesResources.Malformed_named_back_reference.Replace("<", "<").Replace(">", ">")}" Span="[35..37)" Text="\k" />
5329<Diagnostic Message="{FeaturesResources.Malformed_named_back_reference.Replace("<", "<").Replace(">", ">")}" Span="[35..37)" Text="\k" />
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (107)
CodeGen\CodeGenAsyncIteratorTests.cs (5)
88return runner.Replace("ITERATIONS", iterations.ToString());
5568var source = template.Replace("POSITION", position.ToString());
5661var source = template.Replace("POSITION", position.ToString());
7557var comp = CreateCompilationWithAsyncIterator(new[] { source.Replace("SOURCETOCANCEL", sourceToCancel), EnumeratorCancellationAttributeType }, options: options);
7617var comp = CreateCompilationWithAsyncIterator(new[] { source.Replace("SOURCETOCANCEL", sourceToCancel), EnumeratorCancellationAttributeType }, options: options, parseOptions: TestOptions.Regular9);
CodeGen\CodeGenAsyncMethodBuilderOverrideTests.cs (58)
362.Replace("public static IgnoredTaskMethodBuilder Create() => new IgnoredTaskMethodBuilder(new MyTask());", "public static int Create() => 0;")}
365.Replace("public static IgnoredTaskMethodBuilder<T> Create() => new IgnoredTaskMethodBuilder<T>(new MyTask<T>());", "public static int Create() => 0;")}
400.Replace("public MyTask Task => _task;", "public int Task => 0;")}
403.Replace("public MyTask<T> Task => _task;", "public int Task => 0;")}
438.Replace("public void SetException", "internal void SetException")
439.Replace("public void SetResult", "internal void SetResult")}
442.Replace("public void SetException", "internal void SetException")
443.Replace("public void SetResult", "internal void SetResult")}
478.Replace("public void SetResult", "internal void SetResult")}
481.Replace("public void SetResult", "internal void SetResult")}
644{AsyncBuilderCode("B1", "T1").Replace("public class B1", "public class B1")}
645{AsyncBuilderCode("B2", "T2").Replace("public class B2", "internal class B2")}
646{AsyncBuilderCode("B3", "T3").Replace("public class B3", "public class B3").Replace("public T3 Task =>", "internal T3 Task =>")}
647{AsyncBuilderCode("B4", "T4").Replace("public class B4", "internal class B4")}
979{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask").Replace("public MyTask Task", "public object Task")}
980{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T").Replace("public MyTask<T> Task", "public object Task")}
1021.Replace("public static MyTaskMethodBuilder Create() => new MyTaskMethodBuilder(new MyTask());", "")}
1024.Replace("public static MyTaskMethodBuilder<T> Create() => new MyTaskMethodBuilder<T>(new MyTask<T>());", "")}
1066{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask").Replace("public static MyTaskMethodBuilder Create()", accessibility + " static MyTaskMethodBuilder Create()")}
1067{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T").Replace("public static MyTaskMethodBuilder<T> Create()", accessibility + " static MyTaskMethodBuilder<T> Create()")}
1106{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask").Replace("public static MyTaskMethodBuilder Create()", "public MyTaskMethodBuilder Create()")}
1107{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T").Replace("public static MyTaskMethodBuilder<T> Create()", "public MyTaskMethodBuilder<T> Create()")}
1147{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask").Replace("public static MyTaskMethodBuilder Create()", "public static MyTaskMethodBuilder Create(int i)")}
1148{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T").Replace("public static MyTaskMethodBuilder<T> Create()", "public static MyTaskMethodBuilder<T> Create(int i)")}
1188{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask").Replace("public static MyTaskMethodBuilder Create()", "public static MyTaskMethodBuilder Create<U>()")}
1189{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T").Replace("public static MyTaskMethodBuilder<T> Create()", "public static MyTaskMethodBuilder<T> Create<U>()")}
1230.Replace(
1235.Replace(
1281{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask").Replace("public class MyTaskMethodBuilder", "internal class MyTaskMethodBuilder")}
1282{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T").Replace("public class MyTaskMethodBuilder<T>", "internal class MyTaskMethodBuilder<T>")}
1310{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask").Replace("public class MyTaskMethodBuilder", "private class MyTaskMethodBuilder")}
1311{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T").Replace("public class MyTaskMethodBuilder<T>", "private class MyTaskMethodBuilder<T>")}
1345{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask").Replace("public static MyTaskMethodBuilder Create()", "internal static MyTaskMethodBuilder Create()")}
1346{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T").Replace("public static MyTaskMethodBuilder<T> Create()", "internal static MyTaskMethodBuilder<T> Create()")}
1534{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask").Replace("public MyTask Task =>", "internal MyTask Task =>")}
1535{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T").Replace("public MyTask<T> Task =>", "internal MyTask<T> Task =>")}
1574{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask").Replace("public MyTask Task => _task;", "public static MyTask Task => throw null;")}
1575{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T").Replace("public MyTask<T> Task => _task;", "public static MyTask<T> Task => throw null;")}
1614{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask").Replace("public MyTask Task => _task;", "public static MyTask Task = null;")}
1615{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T").Replace("public MyTask<T> Task => _task;", "public MyTask<T> Task = null;")}
1654{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask").Replace("public void SetException", "internal void SetException")}
1655{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T").Replace("public void SetException", "internal void SetException")}
1695.Replace("public void SetException(System.Exception e) { }", "public object SetException(System.Exception e) => null;")}
1698.Replace("public void SetException(System.Exception e) { }", "public object SetException(System.Exception e) => null;")}
1738{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask").Replace("public void SetException(System.Exception e)", "public void SetException()")}
1739{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T").Replace("public void SetException(System.Exception e)", "public void SetException()")}
1778{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask").Replace("public void SetResult", "internal void SetResult")}
1779{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T").Replace("public void SetResult", "internal void SetResult")}
1818{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask").Replace("public void AwaitOnCompleted", "internal void AwaitOnCompleted")}
1819{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T").Replace("public void AwaitOnCompleted", "internal void AwaitOnCompleted")}
1858{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask").Replace("public void AwaitUnsafeOnCompleted", "internal void AwaitUnsafeOnCompleted")}
1859{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T").Replace("public void AwaitUnsafeOnCompleted", "internal void AwaitUnsafeOnCompleted")}
1898{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask").Replace("public void Start", "internal void Start")}
1899{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T").Replace("public void Start", "internal void Start")}
1938{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask").Replace("public void SetStateMachine", "internal void SetStateMachine")}
1939{AsyncBuilderCode("MyTaskMethodBuilder", "MyTask", "T").Replace("public void SetStateMachine", "internal void SetStateMachine")}
2088{AsyncBuilderCode("MyTaskTypeBuilder", "MyTaskType").Replace("public class MyTaskType", "internal class MyTaskType")}
CodeGen\CodeGenAsyncTests.cs (14)
3771{AsyncBuilderCode("B0", "T0").Replace("public static B0 Create()", "public static B0 Create()")}
3772{AsyncBuilderCode("B1", "T1").Replace("public static B1 Create()", "private static B1 Create()")}
3773{AsyncBuilderCode("B2", "T2").Replace("public static B2 Create() => default(B2);", "public static void Create() { }")}
3774{AsyncBuilderCode("B3", "T3").Replace("public static B3 Create() => default(B3);", "public static B1 Create() => default(B1);")}
3775{AsyncBuilderCode("B4", "T4").Replace("public static B4 Create()", "public static B4 Create(int i)")}
3776{AsyncBuilderCode("B5", "T5").Replace("public static B5 Create()", "public static B5 Create<T>()")}
3777{AsyncBuilderCode("B6", "T6").Replace("public static B6 Create()", "public static B6 Create(object arg = null)")}
3778{AsyncBuilderCode("B7", "T7").Replace("public static B7 Create()", "public static B7 Create(params object[] arg)")}
3779{AsyncBuilderCode("B8", "T8").Replace("public static B8 Create()", "public B8 Create()")}
3852{AsyncBuilderCode("B1", "T1").Replace("public class B1", "public class B1")}
3853{AsyncBuilderCode("B2", "T2").Replace("public class B2", "internal class B2")}
3854{AsyncBuilderCode("B3", "T3").Replace("public class B3", "public class B3").Replace("public T3 Task { get; }", "internal T3 Task {get; }")}
3855{AsyncBuilderCode("B4", "T4").Replace("public class B4", "internal class B4")}
CodeGen\CodeGenOverridingAndHiding.cs (8)
11820 => source.Replace("METHOD1", method1).Replace("METHOD2", method2),
1183_ => source.Replace("METHOD2", method1).Replace("METHOD1", method2),
11890 => s.Replace("BASEREF", "ref").Replace("BASE2REF", "out"),
1190_ => s.Replace("BASEREF", "out").Replace("BASE2REF", "ref"),
CodeGen\CodeGenTupleEqualityTests.cs (9)
62.Replace("CHANGE1", change1)
63.Replace("CHANGE2", change2)
64.Replace("EXPECTED", expectedMatch ? "true" : "false");
2414var comp = CreateCompilation(source.Replace("EXPRESSION", expression), options: TestOptions.DebugExe);
4477var comp = CreateCompilation(source.Replace("REPLACE", expression),
4581var comp = CreateCompilation(source.Replace("REPLACE", expression),
4671var comp = CreateCompilation(source.Replace("REPLACE", expression), options: TestOptions.DebugExe);
4741var comp = CreateCompilation(source.Replace("REPLACE", expression));
4933var comp = CreateCompilation(source.Replace("REPLACE", expression));
Emit\DeterministicTests.cs (4)
175var mvid1 = CompiledGuid(source.Replace("CHANGE", ""), "X1", TestOptions.DebugDll, emitRefAssembly);
176var mvid2 = CompiledGuid(source.Replace("CHANGE", "private void M() { }"), "X1", TestOptions.DebugDll, emitRefAssembly);
468sourceBuilder.Add(source.Replace("NUMBER1", i.ToString()).Replace("NUMBER2", j.ToString()));
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (56)
Emit\EditAndContinue\EditAndContinueClosureTests.cs (9)
3843var source0 = MarkedSource(template.Replace("<<VALUE>>", "0"), options: TestOptions.Regular.WithNoRefSafetyRulesAttribute());
3844var source1 = MarkedSource(template.Replace("<<VALUE>>", "1"), options: TestOptions.Regular.WithNoRefSafetyRulesAttribute());
3845var source2 = MarkedSource(template.Replace("<<VALUE>>", "2"), options: TestOptions.Regular.WithNoRefSafetyRulesAttribute());
3884v0.VerifyIL("C.F", expectedIL.Replace("<<VALUE>>", "0"));
3896diff1.VerifyIL("C.F", expectedIL.Replace("<<VALUE>>", "1"));
3908diff2.VerifyIL("C.F", expectedIL.Replace("<<VALUE>>", "2"));
3923var source0 = MarkedSource(template.Replace("<<CALL>>", "d.F(out x, new { })"));
3924var source1 = MarkedSource(template.Replace("<<CALL>>", "d.F(out x, new { y })"));
3925var source2 = MarkedSource(template.Replace("<<CALL>>", "d.F(new { y }, out x)"));
Emit\EditAndContinue\EditAndContinueStateMachineTests.cs (21)
7735var source0 = MarkedSource(template.Replace("<<VALUE>>", "0"));
7736var source1 = MarkedSource(template.Replace("<<VALUE>>", "1"));
7737var source2 = MarkedSource(template.Replace("<<VALUE>>", "2"));
7888diff1.VerifyIL("C.<F>d__0.System.Collections.IEnumerator.MoveNext()", baselineIL.Replace("<<VALUE>>", "1").Replace("<<DYNAMIC_CONTAINER_NAME>>", "<>o__0#1"));
7901diff2.VerifyIL("C.<F>d__0.System.Collections.IEnumerator.MoveNext()", baselineIL.Replace("<<VALUE>>", "2").Replace("<<DYNAMIC_CONTAINER_NAME>>", "<>o__0#2"));
9215v0.VerifyIL("C.<F>d__0.System.Collections.IEnumerator.MoveNext()", baselineIL.Replace("<<VALUE>>", "1"));
9234diff1.VerifyIL("C.<F>d__0.System.Collections.IEnumerator.MoveNext()", baselineIL.Replace("<<VALUE>>", "2"));
9253diff2.VerifyIL("C.<F>d__0.System.Collections.IEnumerator.MoveNext()", baselineIL.Replace("<<VALUE>>", "3"));
9372v0.VerifyIL("C.<F>d__0.System.Collections.IEnumerator.MoveNext()", baselineIL.Replace("<<VALUE>>", "1"));
9385diff1.VerifyIL("C.<F>d__0.System.Collections.IEnumerator.MoveNext()", baselineIL.Replace("<<VALUE>>", "2"));
9398diff2.VerifyIL("C.<F>d__0.System.Collections.IEnumerator.MoveNext()", baselineIL.Replace("<<VALUE>>", "3"));
9527v0.VerifyIL("C.<F>d__0.System.Collections.IEnumerator.MoveNext()", baselineIL.Replace("<<VALUE>>", "1"));
9538diff1.VerifyIL("C.<F>d__0.System.Collections.IEnumerator.MoveNext()", baselineIL.Replace("<<VALUE>>", "2"));
9549diff2.VerifyIL("C.<F>d__0.System.Collections.IEnumerator.MoveNext()", baselineIL.Replace("<<VALUE>>", "3"));
9569var source0 = MarkedSource(template.Replace("<<VALUE>>", "0"));
9570var source1 = MarkedSource(template.Replace("<<VALUE>>", "1"));
9571var source2 = MarkedSource(template.Replace("<<VALUE>>", "2"));
9696diff1.VerifyIL("C.<F>d__0.System.Collections.IEnumerator.MoveNext()", baselineIL.Replace("<<VALUE>>", "1"));
9708diff2.VerifyIL("C.<F>d__0.System.Collections.IEnumerator.MoveNext()", baselineIL.Replace("<<VALUE>>", "2"));
Emit\EditAndContinue\EditAndContinueTests.cs (20)
10539var source0 = MarkedSource(template.Replace("<<VALUE>>", "0"));
10540var source1 = MarkedSource(template.Replace("<<VALUE>>", "1"));
10541var source2 = MarkedSource(template.Replace("<<VALUE>>", "2"));
10610v0.VerifyIL("C.F", expectedIL.Replace("<<VALUE>>", "0"));
10624diff1.VerifyIL("C.F", expectedIL.Replace("<<VALUE>>", "1"));
10638diff2.VerifyIL("C.F", expectedIL.Replace("<<VALUE>>", "2"));
10662var source0 = MarkedSource(template.Replace("<<VALUE>>", "0"));
10663var source1 = MarkedSource(template.Replace("<<VALUE>>", "1"));
10664var source2 = MarkedSource(template.Replace("<<VALUE>>", "2"));
10733v0.VerifyIL("C.F", expectedIL.Replace("<<VALUE>>", "0"));
10747diff1.VerifyIL("C.F", expectedIL.Replace("<<VALUE>>", "1"));
10761diff2.VerifyIL("C.F", expectedIL.Replace("<<VALUE>>", "2"));
10894var source0 = MarkedSource(template.Replace("<<VALUE>>", "0"));
10895var source1 = MarkedSource(template.Replace("<<VALUE>>", "1"));
10896var source2 = MarkedSource(template.Replace("<<VALUE>>", "2"));
10959diff1.VerifyIL("C.F", baselineIL.Replace("<<VALUE>>", "1"));
10969diff2.VerifyIL("C.F", baselineIL.Replace("<<VALUE>>", "2"));
11571var source0 = MarkedSource(template.Replace("<<VALUE>>", "0"));
11572var source1 = MarkedSource(template.Replace("<<VALUE>>", "1"));
11573var source2 = MarkedSource(template.Replace("<<VALUE>>", "2"));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (66)
Semantics\ExtensionTests.cs (30)
4726""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
4849verifier1.VerifyTypeIL("Extensions", expectedTypeIL.Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
5253""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
5438""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
5809""").Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
6127""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
6288""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
6626""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
6886""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
7297""").Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
7598""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
7766verifier1.VerifyTypeIL("Extensions", expectedTypeIL.Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
8282""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
8465""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
8834""").Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
9116""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
9261verifier1.VerifyTypeIL("Extensions", expectedTypeIL.Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
9547verifier1.VerifyTypeIL("Extensions", expectedTypeIL.Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
9759""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
9930""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
10074""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
10219""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
10363""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
10505""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
10686""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]").
10687Replace("[System.Core]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[System.Core]"));
10849""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]").
10850Replace("[System.Core]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[System.Core]"));
11004""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]").
11005Replace("[System.Core]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[System.Core]"));
Semantics\PrimaryConstructorTests.cs (19)
7758source += nestedSource.Replace("p1", @"
8086source += attribute.Replace("p1", @"
8175source += attribute.Replace("p1", @"
8258source += attribute.Replace("p1", @"
9120".Replace("[mscorlib]", ExecutionConditionUtil.IsDesktop ? "[mscorlib]" : "[netstandard]"));
9311".Replace("[netstandard]", ExecutionConditionUtil.IsDesktop ? "[mscorlib]" : "[netstandard]"));
16043".Replace("[mscorlib]", ExecutionConditionUtil.IsDesktop ? "[mscorlib]" : "[netstandard]"));
16585".Replace("[netstandard]", RuntimeUtilities.IsCoreClrRuntime ? "[netstandard]" : "[mscorlib]"));
16790".Replace("[netstandard]", RuntimeUtilities.IsCoreClrRuntime ? "[netstandard]" : "[mscorlib]"));
17426".Replace("[netstandard]", RuntimeUtilities.IsCoreClrRuntime ? "[netstandard]" : "[mscorlib]"));
17498".Replace("[netstandard]", RuntimeUtilities.IsCoreClrRuntime ? "[netstandard]" : "[mscorlib]"));
17611".Replace("[netstandard]", RuntimeUtilities.IsCoreClrRuntime ? "[netstandard]" : "[mscorlib]"));
17718".Replace("[netstandard]", RuntimeUtilities.IsCoreClrRuntime ? "[netstandard]" : "[mscorlib]"));
17951".Replace("[netstandard]", RuntimeUtilities.IsCoreClrRuntime ? "[netstandard]" : "[mscorlib]"));
18181".Replace("[netstandard]", RuntimeUtilities.IsCoreClrRuntime ? "[netstandard]" : "[mscorlib]"));
19025".Replace("[netstandard]", RuntimeUtilities.IsCoreClrRuntime ? "[netstandard]" : "[mscorlib]"));
19222".Replace("[netstandard]", RuntimeUtilities.IsCoreClrRuntime ? "[netstandard]" : "[mscorlib]"));
19322".Replace("[netstandard]", RuntimeUtilities.IsCoreClrRuntime ? "[netstandard]" : "[mscorlib]"));
19403".Replace("[netstandard]", RuntimeUtilities.IsCoreClrRuntime ? "[netstandard]" : "[mscorlib]"));
Microsoft.CodeAnalysis.CSharp.Features (3)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (64)
Diagnostics\Suppression\RemoveSuppressionTests.cs (12)
590".Replace("<", "<").Replace(">", ">");
646".Replace("<", "<").Replace(">", ">");
710".Replace("<", "<").Replace(">", ">");
828".Replace("<", "<").Replace(">", ">");
839".Replace("<", "<").Replace(">", ">");
964".Replace("<", "<").Replace(">", ">");
Diagnostics\Suppression\SuppressionTest_FixAllTests.cs (12)
517.Replace("<", "<").Replace(">", ">");
627.Replace("<", "<").Replace(">", ">");
737".Replace("<", "<").Replace(">", ">");
751".Replace("<", "<").Replace(">", ">");
886.Replace("<", "<").Replace(">", ">");
991.Replace("<", "<").Replace(">", ">");
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (71)
Semantics\NullableReferenceTypesTests.cs (20)
3254var comp = CreateCompilation(source.Replace("FIELDTYPE", fieldType), options: WithNullableEnable());
42348var comp = CreateNullableCompilation(new[] { MaybeNullWhenAttributeDefinition, source.Replace("TYPE", type) });
42405var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, MaybeNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source.Replace("TYPE", type) });
42448var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, MaybeNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source.Replace("TYPE", type) });
42575var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, NotNullWhenAttributeDefinition, source.Replace("TYPE", type) });
42661var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, NotNullWhenAttributeDefinition, source.Replace("CONSTRAINT", constraint) });
42840var comp = CreateNullableCompilation(new[] { MaybeNullWhenAttributeDefinition, NotNullAttributeDefinition, NotNullWhenAttributeDefinition, source.Replace("TYPE", type) });
76775var comp = CreateCompilation(source.Replace("OPERATOR", op), options: WithNullableEnable());
113176var comp1 = CreateCompilation(new[] { source.Replace("PLACEHOLDER", "") });
113179var comp2 = CreateCompilation(new[] { source.Replace("PLACEHOLDER", "annotations") });
113219var source1 = source0.Replace("PLACEHOLDER", "");
113220var source2 = source0.Replace("PLACEHOLDER", "annotations");
113255verify(source.Replace("PLACEHOLDER", ""));
113256verify(source.Replace("PLACEHOLDER", "annotations"));
113285var source1 = source0.Replace("PLACEHOLDER", "");
113286var source2 = source0.Replace("PLACEHOLDER", "annotations");
113323verify(source.Replace("PLACEHOLDER", ""));
113324verify(source.Replace("PLACEHOLDER", "annotations"));
113357var source1 = source0.Replace("PLACEHOLDER", "");
113358var source2 = source0.Replace("PLACEHOLDER", "annotations");
Semantics\NullableTests.cs (16)
267CompileAndVerify(source: source4.Replace("TYPE", type), expectedOutput: "0", verify: Verification.FailsPEVerify);
268CompileAndVerify(source: source4.Replace("TYPE", type), expectedOutput: "0", parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature());
325var verifier = CompileAndVerify(source: source.Replace("TYPE", type), expectedOutput: expected);
751string s = source.Replace("TYPE", t).Replace("OP", oper).Replace("ZERO", zeros[t]).Replace("ONE", ones[t]);
1293.Replace("METHOD", "M" + m)
1294.Replace("TYPEX", typeX)
1295.Replace("TYPEY", typeY)
1296.Replace("OP", oper)
1297.Replace("NAME", names[oper])
1298.Replace("TWOX", twos[typeX])
1299.Replace("ONEX", ones[typeX])
1300.Replace("TWOY", twos[typeY])
1301.Replace("ONEY", ones[typeY]));
Semantics\TargetTypedDefaultTests.cs (11)
1720var source = template.Replace("MODIFIER", modifier).Replace("TYPE", type).Replace("VALUE", value).Replace("EQUAL", equal);
1786var source = template.Replace("MODIFIER", modifier).Replace("TYPE", type).Replace("VALUE", value).Replace("EQUAL", equal);
1857var source = template.Replace("TYPE", type).Replace("VALUE", value).Replace("EQUAL", equal);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (21)
Symbols\MockSymbolTests.cs (3)
254}".Replace("Assembly: Merged", "Assembly: Merged, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")
255.Replace("Assembly: Assem1", "Assembly: Assem1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")
256.Replace("Assembly: Assem3", "Assembly: Assem3, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null");
Symbols\UnsignedRightShiftTests.cs (9)
119verifier.VerifyIL("C.Test1", actualIL.Replace("shr.un", "shr").Replace("shr", "shr.un"));
1172verifier.VerifyIL("C.Test1", actualIL.Replace("shr.un", "shr").Replace("shr", "shr.un"));
1979verifier.VerifyIL("C.Test1", actualIL.Replace("op_RightShift", "op_UnsignedRightShift"));
2231verifier.VerifyIL("C.Test1", actualIL.Replace("op_RightShift", "op_UnsignedRightShift"));
2373verifier.VerifyIL("C.Test1", actualIL.Replace("op_RightShift", "op_UnsignedRightShift"));
2507verifier.VerifyIL("C.Test1", actualIL.Replace("op_RightShift", "op_UnsignedRightShift"));
2604verifier.VerifyIL("C.Test1", actualIL.Replace("op_RightShift", "op_UnsignedRightShift"));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (14)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
Microsoft.CodeAnalysis.EditorFeatures (3)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (5)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (7)
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (2)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Microsoft.CodeAnalysis.Features (17)
Microsoft.CodeAnalysis.Features.Test.Utilities (7)
Microsoft.CodeAnalysis.Features.UnitTests (2)
Microsoft.CodeAnalysis.LanguageServer (3)
Microsoft.CodeAnalysis.LanguageServer.Protocol (6)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (4)
Microsoft.CodeAnalysis.ResxSourceGenerator.UnitTests (2)
Microsoft.CodeAnalysis.Test.Utilities (26)
Microsoft.CodeAnalysis.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic (2)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (15)
CommandLineBreakingChanges.vb (5)
39</text>.Value.Trim().Replace(vbLf, vbCrLf), tempLog.ReadAllText().Trim().Replace(src, "SRC.VB"))
75</text>.Value.Trim().Replace(vbLf, vbCrLf), tempOut.ReadAllText().Trim().Replace(src, "SRC.VB"))
107</text>.Value.Trim().Replace(vbLf, vbCrLf), tempOut.ReadAllText().Trim().Replace(src, "SRC.VB"))
139</text>.Value.Trim().Replace(vbLf, vbCrLf), tempOut.ReadAllText().Trim().Replace(src, "SRC.VB"))
174</text>.Value.Trim().Replace(vbLf, vbCrLf), tempOut.ReadAllText().Trim().Replace(src, "SRC.VB"))
CommandLineTests.vb (10)
621</text>.Value.Trim().Replace(vbLf, vbCrLf), tempOut.ReadAllText().Trim().Replace(src, "SRC.VB"))
640</text>.Value.Trim().Replace(vbLf, vbCrLf), tempOut.ReadAllText().Trim().Replace(src, "SRC.VB"))
5240</text>, output.Replace(dir.Path, "{SDKPATH}"))
5250</text>, output.Replace(dir.Path, "{SDKPATH}"))
5259</text>, output.Replace(dir.Path, "{SDKPATH}"))
5267AssertOutput(<text></text>, output.Replace(dir.Path, "{SDKPATH}")) ' SUCCESSFUL BUILD with 'mscorlib.dll' and embedded VbCore
5273AssertOutput(<text></text>, output.Replace(dir.Path, "{SDKPATH}"))
5305AssertOutput(<text>vbc : error BC2017: could not find library 'mscorlib.dll'</text>, output.Replace(dir.Path, "{SDKPATH}"))
5313AssertOutput(<text></text>, output.Replace(dir.Path, "{SDKPATH}"))
5320</text>, output.Replace(dir.Path, "{SDKPATH}"))
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (29)
Emit\EditAndContinue\EditAndContinueClosureTests.vb (12)
2090Dim source0 = MarkedSource(template.Replace("<<VALUE>>", "0"))
2091Dim source1 = MarkedSource(template.Replace("<<VALUE>>", "1"))
2092Dim source2 = MarkedSource(template.Replace("<<VALUE>>", "2"))
2130v0.VerifyIL("C.F", expectedIL.Replace("<<VALUE>>", "0"))
2141diff1.VerifyIL("C.F", expectedIL.Replace("<<VALUE>>", "1"))
2152diff2.VerifyIL("C.F", expectedIL.Replace("<<VALUE>>", "2"))
2168Dim source0 = MarkedSource(template.Replace("<<VALUE>>", "0"))
2169Dim source1 = MarkedSource(template.Replace("<<VALUE>>", "1"))
2170Dim source2 = MarkedSource(template.Replace("<<VALUE>>", "2"))
2208v0.VerifyIL("C.F", expectedIL.Replace("<<VALUE>>", "0"))
2219diff1.VerifyIL("C.F", expectedIL.Replace("<<VALUE>>", "1"))
2230diff2.VerifyIL("C.F", expectedIL.Replace("<<VALUE>>", "2"))
Emit\EditAndContinue\EditAndContinueStateMachineTests.vb (6)
8561v0.VerifyIL("C.VB$StateMachine_1_F.MoveNext()", baselineIL.Replace("<<VALUE>>", "1"))
8572diff1.VerifyIL("C.VB$StateMachine_1_F.MoveNext()", baselineIL.Replace("<<VALUE>>", "2"))
8583diff2.VerifyIL("C.VB$StateMachine_1_F.MoveNext()", baselineIL.Replace("<<VALUE>>", "3"))
8702v0.VerifyIL("C.VB$StateMachine_1_F.MoveNext()", baselineIL.Replace("<<VALUE>>", "1"))
8713diff1.VerifyIL("C.VB$StateMachine_1_F.MoveNext()", baselineIL.Replace("<<VALUE>>", "2"))
8724diff2.VerifyIL("C.VB$StateMachine_1_F.MoveNext()", baselineIL.Replace("<<VALUE>>", "3"))
Emit\EditAndContinue\EditAndContinueTests.vb (7)
5506Dim source0 = MarkedSource(template.Replace("<<VALUE>>", "0"))
5507Dim source1 = MarkedSource(template.Replace("<<VALUE>>", "1"))
5508Dim source2 = MarkedSource(template.Replace("<<VALUE>>", "2"))
5577v0.VerifyIL("C.F", expectedIL.Replace("<<VALUE>>", "0"))
5588diff1.VerifyIL("C.F", expectedIL.Replace("<<VALUE>>", "1"))
5599diff2.VerifyIL("C.F", expectedIL.Replace("<<VALUE>>", "2"))
6701Dim tree1 = VisualBasicSyntaxTree.ParseText(source0.Replace("' Body", "N1(): N2()"), parseOptions)
Microsoft.CodeAnalysis.VisualBasic.Features (2)
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (13)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (38)
SymbolsTests\GenericConstraintTests.vb (7)
537compilationVerifier.VerifyIL("B1(Of T).F1(Of U)(U)", expectedIL.Replace("F1", "F1"))
538compilationVerifier.VerifyIL("B1(Of T).F2(Of U)(U)", expectedIL.Replace("F1", "F2"))
539compilationVerifier.VerifyIL("B1(Of T).F3(Of U)(U)", expectedIL.Replace("F1", "F3"))
540compilationVerifier.VerifyIL("B2(Of T).F1(Of U)(U)", expectedIL.Replace("F1", "F1"))
541compilationVerifier.VerifyIL("B2(Of T).F2(Of U)(U)", expectedIL.Replace("F1", "F2"))
542compilationVerifier.VerifyIL("B2(Of T).F3(Of U)(U)", expectedIL.Replace("F1", "F3"))
543compilationVerifier.VerifyIL("B2(Of T).F4(Of U)(U)", expectedIL.Replace("F1", "F4"))
SymbolsTests\Metadata\PE\LoadingOperators.vb (12)
601Replace("Boolean", "System.Boolean").
602Replace("Integer", "System.Int32").
603Replace("Byte", "System.Byte"), method.ToTestDisplayString())
1197Replace("Boolean", "System.Boolean").
1198Replace("Integer", "System.Int32").
1199Replace("Byte", "System.Byte"), method.ToTestDisplayString())
1959Replace("Boolean", "System.Boolean").
1960Replace("Integer", "System.Int32").
1961Replace("Byte", "System.Byte"), method.ToTestDisplayString())
2093Replace("Boolean", "System.Boolean").
2094Replace("Integer", "System.Int32").
2095Replace("Byte", "System.Byte"), method.ToTestDisplayString())
SymbolsTests\MockSymbolTests.vb (3)
208Replace("Assembly: Merged", "Assembly: Merged, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
209Replace("Assembly: Assem1", "Assembly: Assem1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
210Replace("Assembly: Assem3", "Assembly: Assem3, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (37)
Syntax\SyntaxEquivalenceTests.vb (37)
254Dim tree2 = VisualBasicSyntaxTree.ParseText(text.Replace(" ", " "))
263Dim tree2 = VisualBasicSyntaxTree.ParseText(text.Replace("Modle ", "Mode "))
399Dim tree2 = VisualBasicSyntaxTree.ParseText(text.Replace("Body(1)", "Body(2)"))
408Dim tree2 = VisualBasicSyntaxTree.ParseText(text.Replace("Friend", ""))
417Dim tree2 = VisualBasicSyntaxTree.ParseText(text.Replace("args", "arg"))
426Dim tree2 = VisualBasicSyntaxTree.ParseText(text.Replace("args", "<A>args"))
435Dim tree2 = VisualBasicSyntaxTree.ParseText(text.Replace("args", "ByRef args"))
444Dim tree2 = VisualBasicSyntaxTree.ParseText(text.Replace("123", "456"))
453Dim tree2 = VisualBasicSyntaxTree.ParseText(text.Replace("Function", "Sub"))
462Dim tree2 = VisualBasicSyntaxTree.ParseText(text.Replace("As Integer", ""))
471Dim tree2 = VisualBasicSyntaxTree.ParseText(text.Replace("As C", "As D"))
480Dim tree2 = VisualBasicSyntaxTree.ParseText(text.Replace("As <A(1)>C", "As <A(2)>C"))
489Dim tree2 = VisualBasicSyntaxTree.ParseText(text.Replace("E.Goo", "E.Bar"))
498Dim tree2 = VisualBasicSyntaxTree.ParseText(text.Replace("I.Goo", "I.Bar"))
507Dim tree2 = VisualBasicSyntaxTree.ParseText(text.Replace("End Sub", ""))
516Dim tree2 = VisualBasicSyntaxTree.ParseText(text.Replace("End Sub", "End Function"))
543Dim tree2 = VisualBasicSyntaxTree.ParseText(text.Replace("Body(1)", "Body(2)"))
552Dim tree2 = VisualBasicSyntaxTree.ParseText(text.Replace("MyBase", "Me"))
561Dim tree2 = VisualBasicSyntaxTree.ParseText(text.Replace("123", "456"))
572Dim tree2 = VisualBasicSyntaxTree.ParseText(text.Replace("Return 0", "Return 1"))
581Dim tree2 = VisualBasicSyntaxTree.ParseText(text.Replace("b As C", "c As C"))
592Dim tree2 = VisualBasicSyntaxTree.ParseText(text.Replace("<A(1)>", "<A(2)>"))
601Dim tree2 = VisualBasicSyntaxTree.ParseText(text.Replace("<A(1)>", "<A(2)>"))
610Dim tree2 = VisualBasicSyntaxTree.ParseText(text.Replace("<A(1)>", "<A(2)>"))
619Dim tree2 = VisualBasicSyntaxTree.ParseText(text.Replace("123", "345"))
628Dim tree2 = VisualBasicSyntaxTree.ParseText(text.Replace("123", "345"))
637Dim tree2 = VisualBasicSyntaxTree.ParseText(text.Replace("123", "345"))
648Dim tree2 = VisualBasicSyntaxTree.ParseText(text.Replace("<A(1)>", "<A(2)>"))
657Dim tree2 = VisualBasicSyntaxTree.ParseText(text.Replace("<A(1)>", "<A(2)>"))
666Dim tree2 = VisualBasicSyntaxTree.ParseText(text.Replace("<A(1)>", "<A(2)>"))
675Dim tree2 = VisualBasicSyntaxTree.ParseText(text.Replace("<A(1)>", "<A(2)>"))
684Dim tree2 = VisualBasicSyntaxTree.ParseText(text.Replace("<A(1)>", "<A(2)>"))
695Dim tree2 = VisualBasicSyntaxTree.ParseText(text.Replace("Ansi", "Unicode"))
704Dim tree2 = VisualBasicSyntaxTree.ParseText(text.Replace("goo", "goo2"))
713Dim tree2 = VisualBasicSyntaxTree.ParseText(text.Replace("bar", "bar2"))
722Dim tree2 = VisualBasicSyntaxTree.ParseText(text.Replace("Integer", "Boolean"))
731Dim tree2 = VisualBasicSyntaxTree.ParseText(text.Replace("()", "(a As Integer)"))
Microsoft.CodeAnalysis.Workspaces (10)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (5)
VisualStudioMSBuildWorkspaceTests.cs (5)
2769("Encoding.csproj", Resources.ProjectFiles.CSharp.Encoding.Replace("<CodePage>ReplaceMe</CodePage>", "<CodePage>-1</CodePage>")),
2788("Encoding.csproj", Resources.ProjectFiles.CSharp.Encoding.Replace("<CodePage>ReplaceMe</CodePage>", "<CodePage>Broken</CodePage>")),
2807("Encoding.csproj", Resources.ProjectFiles.CSharp.Encoding.Replace("<CodePage>ReplaceMe</CodePage>", string.Empty)),
2856("Encoding.csproj", Resources.ProjectFiles.CSharp.Encoding.Replace("<CodePage>ReplaceMe</CodePage>", string.Empty)),
3285("Encoding.csproj", Resources.ProjectFiles.CSharp.Encoding.Replace("<CodePage>ReplaceMe</CodePage>", "<CodePage>1254</CodePage>")),
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (3)
Microsoft.CodeAnalysis.Workspaces.UnitTests (8)
Microsoft.Data.Analysis (2)
Microsoft.DotNet.Arcade.Sdk (3)
Microsoft.DotNet.AsmDiff (1)
Microsoft.DotNet.Build.Manifest (4)
Microsoft.DotNet.Build.Tasks.Feed (7)
Microsoft.DotNet.Build.Tasks.Installers (14)
src\BuildFPMToolPreReqs.cs (12)
73str = str.Replace("{PACKAGE_NAME}", configJson.Package_Name);
74str = str.Replace("{PACKAGE_VERSION}", package_version);
75str = str.Replace("{PACKAGE_REVISION}", configJson.Release.Package_Revision);
76str = str.Replace("{URGENCY}", configJson.Release.Urgency);
77str = str.Replace("{CHANGELOG_MESSAGE}", configJson.Release.Changelog_Message);
78str = str.Replace("{MAINTAINER_NAME}", configJson.Maintainer_Name);
79str = str.Replace("{MAINTAINER_EMAIL}", configJson.Maintainer_Email);
81str = str.Replace("{DATE}", DateTime.UtcNow.ToString("ddd MMM dd yyyy"));
101str = str.Replace("{COPYRIGHT_TEXT}", configJson.CopyRight);
102str = str.Replace("{LICENSE_NAME}", configJson.License.Type);
103str = str.Replace("{LICENSE_NAME}", configJson.License.Type);
104str = str.Replace("{LICENSE_TEXT}", configJson.License.Full_Text);
Microsoft.DotNet.Build.Tasks.Templating.Tests (2)
Microsoft.DotNet.Build.Tasks.VisualStudio (7)
Microsoft.DotNet.Build.Tasks.Workloads (8)
Microsoft.DotNet.Helix.Client (32)
generated-code\Job.cs (6)
302"/api/jobs/{job}/results".Replace("{job}", Uri.EscapeDataString(Client.Serialize(job))),
377"/api/jobs/{job}/pf".Replace("{job}", Uri.EscapeDataString(Client.Serialize(job))),
452"/api/jobs/{job}".Replace("{job}", Uri.EscapeDataString(Client.Serialize(job))),
527"/api/jobs/{job}/details".Replace("{job}", Uri.EscapeDataString(Client.Serialize(job))),
603"/api/jobs/{job}/cancel".Replace("{job}", Uri.EscapeDataString(Client.Serialize(job))),
673"/api/jobs/{job}/wait".Replace("{job}", Uri.EscapeDataString(Client.Serialize(job))),
generated-code\Telemetry.cs (5)
299"/api/telemetry/job/build/{id}/finish".Replace("{id}", Uri.EscapeDataString(Client.Serialize(id))),
486"/api/telemetry/job/xunit/{id}/finish".Replace("{id}", Uri.EscapeDataString(Client.Serialize(id))),
583"/api/telemetry/job/workitem/{id}/warning".Replace("{id}", Uri.EscapeDataString(Client.Serialize(id))),
680"/api/telemetry/job/workitem/{id}/error".Replace("{id}", Uri.EscapeDataString(Client.Serialize(id))),
777"/api/telemetry/job/workitem/{id}/log".Replace("{id}", Uri.EscapeDataString(Client.Serialize(id))),
generated-code\WorkItem.cs (10)
97"/api/jobs/{job}/workitems/{id}/files/{file}".Replace("{job}", Uri.EscapeDataString(Client.Serialize(job))).Replace("{id}", Uri.EscapeDataString(Client.Serialize(id))).Replace("{file}", Uri.EscapeDataString(Client.Serialize(file))),
178"/api/jobs/{job}/workitems/{id}/files".Replace("{job}", Uri.EscapeDataString(Client.Serialize(job))).Replace("{id}", Uri.EscapeDataString(Client.Serialize(id))),
263"/api/jobs/{job}/workitems/{id}/console".Replace("{job}", Uri.EscapeDataString(Client.Serialize(job))).Replace("{id}", Uri.EscapeDataString(Client.Serialize(id))),
333"/api/jobs/{job}/workitems".Replace("{job}", Uri.EscapeDataString(Client.Serialize(job))),
414"/api/jobs/{job}/workitems/{id}".Replace("{job}", Uri.EscapeDataString(Client.Serialize(job))).Replace("{id}", Uri.EscapeDataString(Client.Serialize(id))),
Microsoft.DotNet.Helix.JobSender (2)
Microsoft.DotNet.Helix.Sdk (3)
Microsoft.DotNet.Internal.SymbolHelper (1)
Microsoft.DotNet.NuGetRepack.Tests (1)
Microsoft.DotNet.SignCheckLibrary (3)
Microsoft.DotNet.SignTool (2)
Microsoft.DotNet.SourceBuild.Tasks (1)
Microsoft.DotNet.StrongName (1)
Microsoft.DotNet.VersionTools.Cli (1)
Microsoft.DotNet.XliffTasks.Tests (4)
Microsoft.DotNet.XUnitAssert.Tests (4)
Microsoft.Extensions.AI.Abstractions (2)
Microsoft.Extensions.AI.Templates.Tests (1)
Microsoft.Extensions.ApiDescription.Client (1)
Microsoft.Extensions.Caching.SqlServer (2)
Microsoft.Extensions.Configuration.EnvironmentVariables (1)
Microsoft.Extensions.Configuration.KeyPerFile (1)
Microsoft.Extensions.Configuration.KeyPerFile.Tests (2)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (4)
Microsoft.Extensions.Http.Polly (1)
Microsoft.Extensions.Identity.Core (1)
Microsoft.Extensions.Localization (1)
Microsoft.Extensions.Localization.RootNamespace.Tests (1)
Microsoft.Extensions.Logging.Console (2)
Microsoft.Extensions.Telemetry.Tests (3)
Microsoft.Gen.ComplianceReports (2)
Microsoft.Gen.Logging (1)
Microsoft.Gen.MetadataExtractor (9)
Microsoft.Gen.Metrics (3)
Microsoft.Gen.MetricsReports (7)
Microsoft.Interop.ComInterfaceGenerator (1)
Microsoft.Interop.JavaScript.JSImportGenerator (1)
Microsoft.Maui.Controls.Build.Tasks (2)
Microsoft.Maui.Controls.SourceGen (3)
Microsoft.Maui.Resizetizer (10)
Microsoft.ML.AutoML (1)
Microsoft.ML.AutoML.Interactive (3)
Microsoft.ML.AutoML.SourceGenerator (5)
Microsoft.ML.AutoML.Tests (1)
Microsoft.ML.CodeGenerator (11)
Microsoft.ML.Core (2)
Microsoft.ML.Core.Tests (4)
Microsoft.ML.Data (2)
Microsoft.ML.EntryPoints (1)
Microsoft.ML.GenAI.Mistral (2)
Microsoft.ML.OnnxTransformer (1)
Microsoft.ML.Parquet (1)
Microsoft.ML.SearchSpace.Tests (2)
Microsoft.ML.Sweeper (1)
Microsoft.ML.TensorFlow.Tests (1)
Microsoft.ML.TestFramework (6)
Microsoft.ML.Tests (11)
OnnxConversionTest.cs (6)
699}}", dataPath.Replace("\\", "\\\\"), modelPath.Replace("\\", "\\\\"));
731", modelPath.Replace("\\", "\\\\"), onnxJsonPath.Replace("\\", "\\\\"), onnxPath.Replace("\\", "\\\\"));
1827var colName = name.Replace(stdSuffix, "");
Microsoft.ML.Tokenizers.Tests (1)
Microsoft.Net.Http.Headers (2)
Microsoft.VisualBasic.Core (5)
Microsoft.VisualStudio.LanguageServices (2)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
Microsoft.VisualStudio.LanguageServices.Test.Utilities2 (2)
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
MSBuild (4)
MSBuildTaskHost (2)
Mvc.Api.Analyzers.Test (4)
OpenIdConnectSample (1)
PresentationBuildTasks (1)
PresentationCore (4)
MS\Internal\FontCache\FontCacheUtil.cs (4)
606return NormalizeFontFamilyReference(friendlyName.Substring(startIndex, length).Replace(",,", ","));
676string fontFamilyReference = familyName.Replace("%", "%25").Replace("#", "%23");
702return fontFamilyReference.Replace(",", ",,");
PresentationFramework (6)
RazorWebSite (2)
Replay (2)
Roslyn.Test.Performance.Utilities (4)
Roslyn.VisualStudio.Next.UnitTests (1)
RunTests (1)
Security.TransportSecurity.IntegrationTests (1)
Shared (2)
SignalR.Client.FunctionalTestApp (1)
SocialSample (1)
System.ComponentModel.Annotations (4)
System.Data.Common (8)
System.Data.Odbc (7)
System.Drawing.Common.Tests (1)
System.IO.Packaging (1)
System.Net.Mail (1)
System.Net.Requests (2)
System.Private.CoreLib (9)
System.Private.CoreLib.Generators (3)
System.Private.Windows.Core.Tests (2)
System.Private.Windows.Core.TestUtilities (1)
System.Private.Xml (10)
System.Security.Cryptography (1)
System.Security.Cryptography.Xml (4)
System.ServiceModel.Primitives.Tests (2)
System.Text.RegularExpressions.Generator (4)
System.Windows.Forms (2)
System.Windows.Forms.Design (1)
System.Windows.Forms.UI.IntegrationTests (2)
System.Xaml (1)
TagHelpersWebSite (3)
TaskUsageLogger (1)
Templates.Blazor.Tests (6)
Templates.Blazor.WebAssembly.Auth.Tests (6)
Templates.Blazor.WebAssembly.Tests (6)
Templates.Mvc.Tests (8)
Templates.Tests (9)
vbc (2)
VBCSCompiler (2)
VBCSCompiler.UnitTests (7)
CompilerServerTests.cs (7)
224var outFile = srcFile.Replace("test.cs", "test.dll");
353result.Output.Trim().Replace(srcFile, "test.cs"));
378~", result.Output.Trim().Replace(srcFile, "test.vb"));
401~", result.Output.Trim().Replace(srcFile, "test.vb"));
1185result.Output.Trim().Replace(srcFile, "SRC.VB"));
1234result.Output.Trim().Replace(srcFile, "SRC.VB"));
1341~", result.Output.Trim().Replace(srcFile, "src.vb"));
VisualBasicSyntaxGenerator (9)
WinShimmer (1)
XmlFileLogger (3)