40 references to Matches
Aspire.Cli.EndToEnd.Tests (1)
DoctorCommandTests.cs (1)
112var renderedRuntimeMessages = Regex.Matches(text, @"(?:(?:Docker|Podman)(?: v\d+\.\d+\.\d+)?: (?:running|installed but not running)|Docker is running in Windows container mode)[^\r\n]*")
Aspire.Cli.Tests (2)
Agents\AgentTelemetryHookTests.cs (1)
164return Regex.Matches(body, "'([^']+)'").Select(match => match.Groups[1].Value).Order().ToArray();
Npm\AspireJsLauncherTests.cs (1)
190return Regex.Matches(supportedRidsMatch.Groups["rids"].Value, @"'(?<rid>[^']+)'")
Aspire.Dashboard.Tests (1)
Markdown\MarkdownProcessorTests.cs (1)
43var count = Regex.Matches(html, Regex.Escape("code-block")).Count;
Aspire.Hosting.Azure.Tests (2)
AzureContainerAppsTests.cs (1)
474var aliases = Regex.Matches(bicep, @"name: '(ConnectionStrings__[^']+)'")
AzureResourcePreparerTests.cs (1)
767var roleAssignmentCount = System.Text.RegularExpressions.Regex.Matches(manifest.BicepText, "Microsoft.Authorization/roleAssignments@").Count;
Aspire.Hosting.CodeGeneration.Go.Tests (1)
AtsGoDerivedBuilderTests.cs (1)
262var errors = Regex.Matches(output, @"negative\.go:\d+:\d+: [^\r\n]+")
Aspire.Hosting.CodeGeneration.Java.Tests (1)
AtsJavaCodeGeneratorTests.cs (1)
125Assert.Empty(Regex.Matches(generated, @"\bDouble\b(?!\.)"));
Aspire.Hosting.Docker.Tests (1)
DockerComposePublisherTests.cs (1)
125var aliases = Regex.Matches(compose, @"(?m)^\s+(ConnectionStrings__[^:]+):")
Aspire.Hosting.Radius.Tests (3)
Publishing\ConfigureRadiusInfrastructureTests.cs (2)
682var environmentScopes = Regex.Matches(bicep, @"environment: (\w+)\.id") 687var applicationScopes = Regex.Matches(bicep, @"application: (\w+)\.id")
Publishing\ConnectionStringPropagationTests.cs (1)
114var aliases = Regex.Matches(
Aspire.Hosting.Rust.Tests (1)
RustReadmeTests.cs (1)
19var links = Regex.Matches(additionalDocumentation, @"https://[^\s)]+")
Infrastructure.Tests (8)
MicrosoftTestingPlatformTests.cs (1)
82var options = Regex.Matches(arguments, @"--[\w-]+").Select(match => match.Value).Distinct().ToArray();
TestTriggerMap\SelectTestsAcceptanceTests.cs (1)
1353return System.Text.RegularExpressions.Regex.Matches(slnx, "Path=\"([^\"]+\\.csproj)\"")
TestTriggerMap\SelectTestsCliTests.cs (3)
528.Matches(solution, "Path=\"(tests/[^\"]+\\.Tests\\.csproj)\"") 957var gateNames = Regex.Matches(normalized, @"\brun_[a-zA-Z0-9_-]*"); 958var references = Regex.Matches(normalized, @"\bneeds\.([a-zA-Z0-9_-]+)\.outputs\.(run_[a-z0-9_]+)(?![a-zA-Z0-9_-])");
TestTriggerMap\TestTriggerMapTests.cs (2)
121return System.Text.RegularExpressions.Regex.Matches(slnx, "Path=\"([^\"]+\\.csproj)\"") 1028.Matches(ifNode.ToString(), @"needs\.setup_for_tests\.outputs\.(run_[a-z0-9_]+)")
WorkflowScripts\AutoSecWorkflowTests.cs (1)
4628var compiledPatchFormats = Regex.Matches(compiled, "patch_format\\\\\":\\\\\"([a-z]+)\\\\\"").Select(match => match.Groups[1].Value).ToArray();
Microsoft.Maui.Controls (1)
WebView\WebView.cs (1)
302 var singleQuotes = Regex.Matches(js, @"(\\*?)'");
QuarantineTools.Tests (8)
ActiveIssueTests.cs (6)
66var count = Regex.Matches(updated, "ActiveIssue").Count; 123var count = Regex.Matches(norm, "using Xunit;").Count; 160var count = Regex.Matches(norm, "using Xunit;").Count; 165var activeIssueCount = Regex.Matches(norm, @"\[ActiveIssue\(").Count; 217var countWithSuffix = Regex.Matches(updatedWithSuffix, @"ActiveIssue").Count; 218var countWithoutSuffix = Regex.Matches(updatedWithoutSuffix, @"ActiveIssue").Count;
QuarantineScriptTests.cs (2)
67var count = Regex.Matches(updated, "QuarantinedTest").Count; 193var count = Regex.Matches(norm, "using Aspire.TestUtilities;").Count;
SelectTests (2)
Program.cs (2)
306System.Text.RegularExpressions.Regex.Matches(slnx, "Path=\"([^\"]+\\.csproj)\"")) 466return System.Text.RegularExpressions.Regex.Matches(slnx, "Path=\"([^\"]+\\.csproj)\"")
System.Text.RegularExpressions (8)
System\Text\RegularExpressions\Regex.Match.cs (5)
28/// <see cref="Matches(string, string)"/> method instead. 304/// calling the <see cref="Matches(string, string)"/> method. 585/// The <see cref="Matches(string, string)"/> method is similar to the 594/// The <see cref="Matches(string, string)"/> method uses lazy evaluation to populate the returned 601/// Because of its lazy evaluation, calling the <see cref="Matches(string, string)"/> method does not
System\Text\RegularExpressions\Regex.Replace.cs (3)
344/// The method is equivalent to calling the <see cref="Regex.Matches(string, string)"/> method and passing 390/// The method is equivalent to calling the <see cref="Regex.Matches(string, string)"/> method and passing 445/// The method is equivalent to calling the <see cref="Regex.Matches(string, string)"/> method and passing