33 references to Matches
Aspire.Cli.Tests (1)
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 (1)
AzureResourcePreparerTests.cs (1)
652var roleAssignmentCount = System.Text.RegularExpressions.Regex.Matches(manifest.BicepText, "Microsoft.Authorization/roleAssignments@").Count;
Aspire.Hosting.CodeGeneration.Java.Tests (1)
AtsJavaCodeGeneratorTests.cs (1)
72Assert.Empty(Regex.Matches(generated, @"\bDouble\b(?!\.)"));
Aspire.Hosting.Rust.Tests (1)
RustReadmeTests.cs (1)
19var links = Regex.Matches(additionalDocumentation, @"https://[^\s)]+")
Infrastructure.Tests (7)
Pipelines\ReleasePublishNugetPipelineTests.cs (2)
468var semverRegexUses = System.Text.RegularExpressions.Regex.Matches( 596var secretReferenceMatches = System.Text.RegularExpressions.Regex.Matches(job, @"\b(VSCE_PAT|VscePublishToken)\b");
TestTriggerMap\SelectTestsAcceptanceTests.cs (1)
989return System.Text.RegularExpressions.Regex.Matches(slnx, "Path=\"([^\"]+\\.csproj)\"")
TestTriggerMap\SelectTestsCliTests.cs (1)
453.Matches(solution, "Path=\"(tests/[^\"]+\\.Tests\\.csproj)\"")
TestTriggerMap\TestTriggerMapTests.cs (3)
145return System.Text.RegularExpressions.Regex.Matches(slnx, "Path=\"([^\"]+\\.csproj)\"") 432.Matches(testsYml, @"fromJSON\(steps\.select_tests\.outputs\.selection\)\.(run_[a-z0-9_]+)") 438.Matches(testsYml, @"needs\.setup_for_tests\.outputs\.(run_[a-z0-9_]+)")
Microsoft.CodeAnalysis (1)
Diagnostic\DiagnosticInfo.cs (1)
134var matches = Regex.Matches(message, @"\{\d+[}:]");
Microsoft.Extensions.AI.OpenAI.Tests (1)
OpenAIAssistantChatClientIntegrationTests.cs (1)
124var matches = Regex.Matches(listing, @"thread_\w+");
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)
303System.Text.RegularExpressions.Regex.Matches(slnx, "Path=\"([^\"]+\\.csproj)\"")) 463return 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