1777 references to Replace
aspire (5)
Aspire.Azure.Messaging.EventHubs (1)
Aspire.Azure.Messaging.EventHubs.Tests (2)
Aspire.Cli.Tests (11)
Utils\MarkdownToSpectreConverterTests.cs (10)
137expected = expected.Replace("\r\n", "\n").Replace("\r", "\n");
251expected = expected.Replace("\r\n", "\n").Replace("\r", "\n");
312[bold]Header 6[/]".Replace("\r\n", "\n").Replace("\r", "\n");
330[italic grey]Line 2[/]".Replace("\r\n", "\n").Replace("\r", "\n");
389[italic grey]That's all![/]".Replace("\r\n", "\n").Replace("\r", "\n");
Aspire.Dashboard (1)
Aspire.Dashboard.Tests (2)
Aspire.EndToEnd.Tests (1)
Aspire.Hosting (3)
Aspire.Hosting.Analyzers (1)
Aspire.Hosting.Analyzers.Tests (1)
Aspire.Hosting.Azure (4)
Aspire.Hosting.Azure.AppContainers (3)
Aspire.Hosting.Azure.Tests (4)
Aspire.Hosting.Docker (7)
Aspire.Hosting.Docker.Tests (2)
Aspire.Hosting.Kubernetes (6)
Aspire.Hosting.Nats.Tests (3)
Aspire.Hosting.Orleans (1)
Aspire.Hosting.Tests (3)
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 (4)
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 (55)
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);
ProjectUtils.cs (9)
100string srcPath = project.FullPath.Replace("csproj", "cs");
112csStr = csStr.Replace(csStr.Substring(start, end - start), "string optstring = @\"" + options + "\";\r\n");
126csStr = csStr.Replace("using System;", "using System;\r\nusing Microsoft.Tools.ServiceModel.Svcutil;\r\nusing System.Linq;\r\nusing System.Text.RegularExpressions;");
127csStr = csStr.Replace("static void Main", "static int Main");
128csStr = csStr.Replace("Console.WriteLine(\"Hello World!\");", replacement);
133csStr = csStr.Replace("Console.WriteLine(\"Hello, World!\");", replacement);
185var referenceNamespace = PathHelper.GetRelativePath(referenceFolderName, project.DirectoryPath).Replace("\\", ".").Replace("/", ".").Replace(" ", "_");
UnitTest.cs (11)
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)
332File.WriteAllText(jsonFileDstPath, File.ReadAllText(jsonFileDstPath).Replace("$testCaseProject$", this_TestCaseProject.FullPath.Replace("\\", "/")));
349var optionsJson = options.Json.Replace(this_TestCaseProject.FullPath.Replace("\\", "/"), "$testCaseProject$");
dotnet-user-jwts (2)
dotnet-user-secrets (2)
GenerateDocumentationAndConfigFiles (13)
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)
Metrics (9)
Metrics.Legacy (9)
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.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 (1)
Microsoft.AspNetCore.OpenApi.SourceGenerators (1)
Microsoft.AspNetCore.OpenApi.Tests (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.Tasks.CodeAnalysis (2)
Microsoft.Build.Tasks.CodeAnalysis.Sdk (2)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (7)
DotNetSdkTests.cs (6)
34var escapedRoot1 = root1.Replace(",", ",,").Replace("=", "==");
35var escapedRoot2 = root2.Replace(",", ",,").Replace("=", "==");
36var escapedRoot3 = root3.Replace(",", ",,").Replace("=", "==");
Microsoft.Cci.Extensions (2)
Microsoft.CodeAnalysis (4)
Microsoft.CodeAnalysis.Analyzers (10)
Microsoft.CodeAnalysis.AnalyzerUtilities (9)
Microsoft.CodeAnalysis.BannedApiAnalyzers (10)
Microsoft.CodeAnalysis.CodeStyle (13)
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
Microsoft.CodeAnalysis.CSharp (5)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (14)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (14)
CommandLineTests.cs (12)
77s_CSharpScriptExecutable = s_CSharpCompilerExecutable.Replace("csc.dll", Path.Combine("csi", "csi.dll"));
1226parsedArgs.SourceFiles.Select((file) => file.Path.Replace(dir.ToString(), "{DIR}")));
1231parsedArgs.SourceFiles.Select((file) => file.Path.Replace(dir.ToString(), "{DIR}")));
6007.Replace(Environment.NewLine, string.Empty), workingDirectory: tempDir) :
6042.Replace(Environment.NewLine, string.Empty), workingDirectory: tempDir) :
6122.Replace(Environment.NewLine, string.Empty)) :
6148Assert.Equal("SRC.CS(1,1): error CS1056: Unexpected character '?'", tempOut.ReadAllText().Trim().Replace(srcFile, "SRC.CS"));
6163Assert.Equal("SRC.CS(1,1): error CS1056: Unexpected character '♚'", tempOut.ReadAllText().Trim().Replace(srcFile, "SRC.CS"));
8016outWriter.ToString().Replace(Path.GetFileName(src.Path), "{FILE}").Trim());
14613pathMapArgument = pathMapArgument.Replace("DIRPATH", dir.Path).Replace("SRCDIRPATH", srcDir.Path).Replace("OBJDIRPATH", objDir.Path);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (75)
CodeActions\InitializeParameter\AddParameterCheckTests.cs (24)
548throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(a)}").Replace("""
557throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(b)}").Replace("""
566throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(c)}").Replace("""
638throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(a)}").Replace("""
647throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(b)}").Replace("""
699throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(a)}").Replace("""
708throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(c)}").Replace("""
743throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(a)}").Replace("""
752throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(c)}").Replace("""
788throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(a)}").Replace("""
802throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(c)}").Replace("""
1872throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(s)}").Replace("""
1908throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_whitespace, "{nameof(s)}").Replace("""
1975throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(s)}").Replace("""
2029throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(bar)}").Replace("""
2594throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(s)}").Replace("""
2634throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(s)}").Replace("""
2675throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(s)}").Replace("""
2715if (string.IsNullOrEmpty(s)) throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(s)}").Replace("""
2754if (string.IsNullOrEmpty(s)) throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(s)}").Replace("""
2795throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(s)}").Replace("""
3491throw new ArgumentOutOfRangeException(nameof(num), num, $"{{string.Format(FeaturesResources._0_cannot_be_negative, "{nameof(num)}").Replace("\"", "\\\"")}}");
3512throw new ArgumentOutOfRangeException(nameof(num), num, $"{{string.Format(FeaturesResources._0_cannot_be_negative_or_zero, "{nameof(num)}").Replace("\"", "\\\"")}}");
3727throw new ArgumentOutOfRangeException(nameof(i), i, $"{{string.Format(FeaturesResources._0_cannot_be_negative, "{nameof(i)}").Replace("\"", "\\\"")}}");
Formatting\Indentation\SmartIndenterEnterOnTokenTests.cs (2)
1303await AssertIndentUsingSmartTokenFormatterAsync(code.Replace(" ", "\t"), ch, indentationLine, expectedIndentation, useTabs: true).ConfigureAwait(false);
1343await AssertIndentNotUsingSmartTokenFormatterButUsingIndenterAsync(code.Replace(" ", "\t"), indentationLine, expectedIndentation, useTabs: true, indentStyle).ConfigureAwait(false);
Formatting\Indentation\SmartIndenterTests.cs (3)
3399AssertSmartIndentInProjection(markup.Replace(" ", "\t"), expectedIndentation, useTabs: true, options, indentStyle);
3454AssertSmartIndent(code.Replace(" ", "\t"), indentationLine, expectedIndentation, useTabs: true, options, indentStyle);
3484AssertSmartIndent(code.Replace(" ", "\t"), expectedIndentation, useTabs: true, options, indentStyle);
Formatting\Indentation\SmartTokenFormatterFormatTokenTests.cs (12)
409actualIndentation = await GetSmartTokenFormatterIndentationAsync(code.Replace(" ", "\t"), indentationLine: 5, ch: '#', useTabs: true);
430actualIndentation = await GetSmartTokenFormatterIndentationAsync(code.Replace(" ", "\t"), indentationLine: 5, ch: 'n', useTabs: true);
452actualIndentation = await GetSmartTokenFormatterIndentationAsync(code.Replace(" ", "\t"), indentationLine: 5, ch: 'n', useTabs: true);
478actualIndentation = await GetSmartTokenFormatterIndentationAsync(code.Replace(" ", "\t"), indentationLine: 9, ch: 't', useTabs: true);
504actualIndentation = await GetSmartTokenFormatterIndentationAsync(code.Replace(" ", "\t"), indentationLine: 9, ch: 'e', useTabs: true);
511await AssertSmartTokenFormatterOpenBraceWithBaseIndentationAsync(markup.Replace(" ", "\t"), baseIndentation, expectedIndentation, useTabs: true).ConfigureAwait(false);
536await AssertSmartTokenFormatterOpenBraceAsync(code.Replace(" ", "\t"), indentationLine, expectedSpace, useTabs: true, baseIndentation, span).ConfigureAwait(false);
557await AssertSmartTokenFormatterOpenBraceAsync(expected.Replace(" ", "\t"), code.Replace(" ", "\t"), indentationLine, useTabs: true).ConfigureAwait(false);
578await AssertSmartTokenFormatterCloseBraceWithBaseIndentation(markup.Replace(" ", "\t"), baseIndentation, expectedIndentation, useTabs: true).ConfigureAwait(false);
603await AssertSmartTokenFormatterCloseBraceAsync(code.Replace(" ", "\t"), indentationLine, expectedSpace, useTabs: true, baseIndentation, span).ConfigureAwait(false);
623await ExpectException_SmartTokenFormatterCloseBraceAsync(code.Replace(" ", "\t"), indentationLine, useTabs: true).ConfigureAwait(false);
SignatureHelp\InvocationExpressionSignatureHelpProviderTests.cs (6)
1632await TestAsync(markup.Replace("ARGUMENTS", arguments), [new SignatureHelpTestItem("void Program.M(int i1, int i2, int i3)", currentParameterIndex: expectedParameterIndex, isSelected: true)]);
1657await TestAsync(markup.Replace("ARGUMENTS", arguments), [new SignatureHelpTestItem("void Delegate(int i1, int i2, int i3)", currentParameterIndex: expectedParameterIndex, isSelected: true)]);
1691await TestAsync(markup.Replace("ARGUMENTS", arguments), [
1716await TestAsync(markup.Replace("ARGUMENTS", arguments), [new SignatureHelpTestItem($"void Program.M(string s, string s2)", currentParameterIndex: expectedParameterIndex, isSelected: true)]);
1750await TestAsync(markup.Replace("ARGUMENTS", arguments), [new SignatureHelpTestItem("void Program.M(int i1, params int[] i2)", currentParameterIndex: expectedParameterIndex, isSelected: true)]);
1797await TestAsync(markup.Replace("ARGUMENTS", arguments), [new SignatureHelpTestItem("void Program.M(int i, string s)", currentParameterIndex: expectedParameterIndex, isSelected: true)]);
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (35)
EmbeddedLanguages\RegularExpressions\CSharpRegexParserTests_BasicTests.cs (15)
1920<Diagnostic Message="{{FeaturesResources.Illegal_x_y_with_x_less_than_y.Replace(">", ">")}}" Span="[13..14)" Text="0" />
4386<Diagnostic Message="{FeaturesResources.Malformed_named_back_reference.Replace("<", "<").Replace(">", ">")}" Span="[10..12)" Text="\k" />
4413<Diagnostic Message="{FeaturesResources.Malformed_named_back_reference.Replace("<", "<").Replace(">", ">")}" Span="[10..12)" Text="\k" />
4440<Diagnostic Message="{FeaturesResources.Malformed_named_back_reference.Replace("<", "<").Replace(">", ">")}" Span="[10..12)" Text="\k" />
4691<Diagnostic Message="{FeaturesResources.Malformed_named_back_reference.Replace("<", "<").Replace(">", ">")}" Span="[10..12)" Text="\k" />
4718<Diagnostic Message="{FeaturesResources.Malformed_named_back_reference.Replace("<", "<").Replace(">", ">")}" Span="[10..12)" Text="\k" />
4745<Diagnostic Message="{FeaturesResources.Malformed_named_back_reference.Replace("<", "<").Replace(">", ">")}" Span="[10..12)" Text="\k" />
4895<Diagnostic Message="{FeaturesResources.Malformed_named_back_reference.Replace("<", "<").Replace(">", ">")}" Span="[10..12)" Text="\k" />
EmbeddedLanguages\RegularExpressions\CSharpRegexParserTests_DotnetNegativeTests.cs (10)
114<Diagnostic Message="{FeaturesResources.Malformed_named_back_reference.Replace("<", "<").Replace(">", ">")}" Span="[10..12)" Text="\k" />
138<Diagnostic Message="{FeaturesResources.Malformed_named_back_reference.Replace("<", "<").Replace(">", ">")}" Span="[10..12)" Text="\k" />
4051<Diagnostic Message="{FeaturesResources.Malformed_named_back_reference.Replace("<", "<").Replace(">", ">")}" Span="[35..37)" Text="\k" />
5010<Diagnostic Message="{FeaturesResources.Malformed_named_back_reference.Replace("<", "<").Replace(">", ">")}" Span="[35..37)" Text="\k" />
5074<Diagnostic Message="{FeaturesResources.Malformed_named_back_reference.Replace("<", "<").Replace(">", ">")}" Span="[35..37)" Text="\k" />
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (108)
CodeGen\CodeGenAsyncIteratorTests.cs (5)
90return runner.Replace("ITERATIONS", iterations.ToString());
5779var source = template.Replace("POSITION", position.ToString());
5872var source = template.Replace("POSITION", position.ToString());
7768var comp = CreateCompilationWithAsyncIterator(new[] { source.Replace("SOURCETOCANCEL", sourceToCancel), EnumeratorCancellationAttributeType }, options: options);
7828var 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)
5344{AsyncBuilderCode("B0", "T0").Replace("public static B0 Create()", "public static B0 Create()")}
5345{AsyncBuilderCode("B1", "T1").Replace("public static B1 Create()", "private static B1 Create()")}
5346{AsyncBuilderCode("B2", "T2").Replace("public static B2 Create() => default(B2);", "public static void Create() { }")}
5347{AsyncBuilderCode("B3", "T3").Replace("public static B3 Create() => default(B3);", "public static B1 Create() => default(B1);")}
5348{AsyncBuilderCode("B4", "T4").Replace("public static B4 Create()", "public static B4 Create(int i)")}
5349{AsyncBuilderCode("B5", "T5").Replace("public static B5 Create()", "public static B5 Create<T>()")}
5350{AsyncBuilderCode("B6", "T6").Replace("public static B6 Create()", "public static B6 Create(object arg = null)")}
5351{AsyncBuilderCode("B7", "T7").Replace("public static B7 Create()", "public static B7 Create(params object[] arg)")}
5352{AsyncBuilderCode("B8", "T8").Replace("public static B8 Create()", "public B8 Create()")}
5425{AsyncBuilderCode("B1", "T1").Replace("public class B1", "public class B1")}
5426{AsyncBuilderCode("B2", "T2").Replace("public class B2", "internal class B2")}
5427{AsyncBuilderCode("B3", "T3").Replace("public class B3", "public class B3").Replace("public T3 Task { get; }", "internal T3 Task {get; }")}
5428{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 (57)
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)
7724var source0 = MarkedSource(template.Replace("<<VALUE>>", "0"));
7725var source1 = MarkedSource(template.Replace("<<VALUE>>", "1"));
7726var source2 = MarkedSource(template.Replace("<<VALUE>>", "2"));
7877diff1.VerifyIL("C.<F>d__0.System.Collections.IEnumerator.MoveNext()", baselineIL.Replace("<<VALUE>>", "1").Replace("<<DYNAMIC_CONTAINER_NAME>>", "<>o__0#1"));
7890diff2.VerifyIL("C.<F>d__0.System.Collections.IEnumerator.MoveNext()", baselineIL.Replace("<<VALUE>>", "2").Replace("<<DYNAMIC_CONTAINER_NAME>>", "<>o__0#2"));
9204v0.VerifyIL("C.<F>d__0.System.Collections.IEnumerator.MoveNext()", baselineIL.Replace("<<VALUE>>", "1"));
9223diff1.VerifyIL("C.<F>d__0.System.Collections.IEnumerator.MoveNext()", baselineIL.Replace("<<VALUE>>", "2"));
9242diff2.VerifyIL("C.<F>d__0.System.Collections.IEnumerator.MoveNext()", baselineIL.Replace("<<VALUE>>", "3"));
9361v0.VerifyIL("C.<F>d__0.System.Collections.IEnumerator.MoveNext()", baselineIL.Replace("<<VALUE>>", "1"));
9374diff1.VerifyIL("C.<F>d__0.System.Collections.IEnumerator.MoveNext()", baselineIL.Replace("<<VALUE>>", "2"));
9387diff2.VerifyIL("C.<F>d__0.System.Collections.IEnumerator.MoveNext()", baselineIL.Replace("<<VALUE>>", "3"));
9516v0.VerifyIL("C.<F>d__0.System.Collections.IEnumerator.MoveNext()", baselineIL.Replace("<<VALUE>>", "1"));
9527diff1.VerifyIL("C.<F>d__0.System.Collections.IEnumerator.MoveNext()", baselineIL.Replace("<<VALUE>>", "2"));
9538diff2.VerifyIL("C.<F>d__0.System.Collections.IEnumerator.MoveNext()", baselineIL.Replace("<<VALUE>>", "3"));
9558var source0 = MarkedSource(template.Replace("<<VALUE>>", "0"));
9559var source1 = MarkedSource(template.Replace("<<VALUE>>", "1"));
9560var source2 = MarkedSource(template.Replace("<<VALUE>>", "2"));
9685diff1.VerifyIL("C.<F>d__0.System.Collections.IEnumerator.MoveNext()", baselineIL.Replace("<<VALUE>>", "1"));
9697diff2.VerifyIL("C.<F>d__0.System.Collections.IEnumerator.MoveNext()", baselineIL.Replace("<<VALUE>>", "2"));
Emit\EditAndContinue\EditAndContinueTests.cs (20)
11169var source0 = MarkedSource(template.Replace("<<VALUE>>", "0"));
11170var source1 = MarkedSource(template.Replace("<<VALUE>>", "1"));
11171var source2 = MarkedSource(template.Replace("<<VALUE>>", "2"));
11240v0.VerifyIL("C.F", expectedIL.Replace("<<VALUE>>", "0"));
11254diff1.VerifyIL("C.F", expectedIL.Replace("<<VALUE>>", "1"));
11268diff2.VerifyIL("C.F", expectedIL.Replace("<<VALUE>>", "2"));
11292var source0 = MarkedSource(template.Replace("<<VALUE>>", "0"));
11293var source1 = MarkedSource(template.Replace("<<VALUE>>", "1"));
11294var source2 = MarkedSource(template.Replace("<<VALUE>>", "2"));
11363v0.VerifyIL("C.F", expectedIL.Replace("<<VALUE>>", "0"));
11377diff1.VerifyIL("C.F", expectedIL.Replace("<<VALUE>>", "1"));
11391diff2.VerifyIL("C.F", expectedIL.Replace("<<VALUE>>", "2"));
11524var source0 = MarkedSource(template.Replace("<<VALUE>>", "0"));
11525var source1 = MarkedSource(template.Replace("<<VALUE>>", "1"));
11526var source2 = MarkedSource(template.Replace("<<VALUE>>", "2"));
11589diff1.VerifyIL("C.F", baselineIL.Replace("<<VALUE>>", "1"));
11599diff2.VerifyIL("C.F", baselineIL.Replace("<<VALUE>>", "2"));
12201var source0 = MarkedSource(template.Replace("<<VALUE>>", "0"));
12202var source1 = MarkedSource(template.Replace("<<VALUE>>", "1"));
12203var source2 = MarkedSource(template.Replace("<<VALUE>>", "2"));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (125)
Semantics\ExtensionOperatorsTests.cs (12)
3701""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
3789""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
3869""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
9966""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
10059""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
10144""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
18523""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
18613""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
18695""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
26653""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
26749""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
26837""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
Semantics\ExtensionTests.cs (56)
169""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
267""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
355""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
644""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
896""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
1289""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
1466""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
1640""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
1885""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
2000""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
2179""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
2367""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
4504""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
5191""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
5328verifier1.VerifyTypeIL("Extensions", expectedTypeIL.Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
5746""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
5945""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
6330""").Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
6662""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
6837""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
7189""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
7463""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
7888""").Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
8203""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
8385verifier1.VerifyTypeIL("Extensions", expectedTypeIL.Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
8915""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
9160""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
9332""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
9715""").Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
10011""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
10175verifier1.VerifyTypeIL("Extensions", expectedTypeIL.Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
10480verifier1.VerifyTypeIL("Extensions", expectedTypeIL.Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
10711""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
10902""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
11066""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
11225""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
11383""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
11539""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
11756""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]").
11757Replace("[System.Core]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[System.Core]"));
11933""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]").
11934Replace("[System.Core]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[System.Core]"));
12102""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]").
12103Replace("[System.Core]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[System.Core]"));
29748""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
33322""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
42794""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
42935""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
43078""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
43226""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
43264""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
43404""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
43560""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
43702""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
46995""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
48226""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
Semantics\ExtensionTests2.cs (11)
20911""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
21239""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
21622""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
23400""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
23501""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
25561""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
28777""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
30207""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
30711""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
30982""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
31156""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]"));
Semantics\PrimaryConstructorTests.cs (23)
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]"));
17077").Replace("[netstandard]", RuntimeUtilities.IsCoreClrRuntime ? "[netstandard]" : "[mscorlib]"));
17344").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]"));
18510").Replace("[netstandard]", RuntimeUtilities.IsCoreClrRuntime ? "[netstandard]" : "[mscorlib]"));
18829").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 (67)
Diagnostics\Suppression\RemoveSuppressionTests.cs (12)
600""".Replace("<", "<").Replace(">", ">");
664""".Replace("<", "<").Replace(">", ">");
736""".Replace("<", "<").Replace(">", ">");
870""".Replace("<", "<").Replace(">", ">");
883""".Replace("<", "<").Replace(">", ">");
1024""".Replace("<", "<").Replace(">", ">");
Diagnostics\Suppression\SuppressionTest_FixAllTests.cs (12)
449.Replace("<", "<").Replace(">", ">");
559.Replace("<", "<").Replace(">", ">");
667""".Replace("<", "<").Replace(">", ">");
681""".Replace("<", "<").Replace(">", ">");
819.Replace("<", "<").Replace(">", ">");
917.Replace("<", "<").Replace(">", ">");
Diagnostics\Suppression\SuppressionTests.cs (10)
2253expected = expected.Replace("class Class", "[|class Class|]");
2294expected = expected.Replace("class Class", "[|class Class|]");
2337expected = expected.Replace("class Class", "[|class Class|]");
2383expected = expected.Replace("class Class", "[|class Class|]");
2429expected = expected.Replace("class Class", "[|class Class|]");
2475expected = expected.Replace("int Method()", "[|int Method()|]");
2519expected = expected.Replace("public void Method(int unused)", "[|public void Method(int unused)|]");
2555expected = expected.Replace("public void Method(int unused)", "[|public void Method(int unused)|]");
2592expected = expected.Replace("public void Method(int unused)", "[|public void Method(int unused)|]");
2624expected = expected.Replace("struct S", "[|struct S|]");
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (72)
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) });
76817var comp = CreateCompilation(source.Replace("OPERATOR", op), options: WithNullableEnable());
113218var comp1 = CreateCompilation(new[] { source.Replace("PLACEHOLDER", "") });
113221var comp2 = CreateCompilation(new[] { source.Replace("PLACEHOLDER", "annotations") });
113261var source1 = source0.Replace("PLACEHOLDER", "");
113262var source2 = source0.Replace("PLACEHOLDER", "annotations");
113297verify(source.Replace("PLACEHOLDER", ""));
113298verify(source.Replace("PLACEHOLDER", "annotations"));
113327var source1 = source0.Replace("PLACEHOLDER", "");
113328var source2 = source0.Replace("PLACEHOLDER", "annotations");
113365verify(source.Replace("PLACEHOLDER", ""));
113366verify(source.Replace("PLACEHOLDER", "annotations"));
113399var source1 = source0.Replace("PLACEHOLDER", "");
113400var 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 (4)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (5)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (7)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Microsoft.CodeAnalysis.Features (24)
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 (5)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (10)
Microsoft.CodeAnalysis.PublicApiAnalyzers (9)
Microsoft.CodeAnalysis.ResxSourceGenerator (9)
Microsoft.CodeAnalysis.ResxSourceGenerator.UnitTests (2)
Microsoft.CodeAnalysis.Test.Utilities (27)
Microsoft.CodeAnalysis.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic (2)
Microsoft.CodeAnalysis.Workspaces (11)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (5)
VisualStudioMSBuildWorkspaceTests.cs (5)
2770("Encoding.csproj", Resources.ProjectFiles.CSharp.Encoding.Replace("<CodePage>ReplaceMe</CodePage>", "<CodePage>-1</CodePage>")),
2789("Encoding.csproj", Resources.ProjectFiles.CSharp.Encoding.Replace("<CodePage>ReplaceMe</CodePage>", "<CodePage>Broken</CodePage>")),
2808("Encoding.csproj", Resources.ProjectFiles.CSharp.Encoding.Replace("<CodePage>ReplaceMe</CodePage>", string.Empty)),
2859("Encoding.csproj", Resources.ProjectFiles.CSharp.Encoding.Replace("<CodePage>ReplaceMe</CodePage>", string.Empty)),
3316("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.Baselines.Tasks (2)
Microsoft.DotNet.Build.Manifest (4)
Microsoft.DotNet.Build.Tasks.Feed (7)
Microsoft.DotNet.Build.Tasks.Installers (3)
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 (1)
Microsoft.Extensions.Telemetry.Tests (3)
Microsoft.Extensions.Validation.ValidationsGenerator (1)
Microsoft.Gen.ComplianceReports (2)
Microsoft.Gen.Logging (1)
Microsoft.Gen.MetadataExtractor (9)
Microsoft.Gen.Metrics (3)
Microsoft.Gen.MetricsReports (7)
Microsoft.Interop.ComInterfaceGenerator (3)
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 (1)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
Microsoft.VisualStudio.LanguageServices.Implementation (1)
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.Diagnostics.Analyzers (10)
Roslyn.Diagnostics.CSharp.Analyzers (1)
Roslyn.Test.Performance.Utilities (4)
Roslyn.VisualStudio.Next.UnitTests (2)
RunTests (1)
Security.TransportSecurity.IntegrationTests (1)
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 (4)
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 (11)
System.ServiceModel.Primitives.Tests (2)
System.Text.RegularExpressions.Generator (6)
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)
Test.Utilities (9)
Text.Analyzers (10)
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"));
WinShimmer (1)
XmlFileLogger (3)