19 references to Matches
Aspire.Cli.EndToEnd.Tests (1)
RadiusDeployTests.cs (1)
630var emittedTypes = Regex.Matches(appBicep, @"^resource\s+\S+\s+'(?<type>[^']+)'", RegexOptions.Multiline)
Aspire.Cli.Tests (1)
Utils\TerminalLinkAssert.cs (1)
20var matches = Regex.Matches(output, segmentPattern, RegexOptions.Singleline);
Aspire.Hosting.Azure.EntraId.Tests (1)
EntraIdApiProvisioningTests.cs (1)
1328var symbols = System.Text.RegularExpressions.Regex.Matches(bicep, @"^(?:param|resource) (\S+)", System.Text.RegularExpressions.RegexOptions.Multiline)
Aspire.Hosting.CodeGeneration.Go.Tests (5)
AtsGoDerivedBuilderTests.cs (5)
105Assert.Single(Regex.Matches(generated, @"^var AnyPoolResource = struct \{", RegexOptions.Multiline)); 118Assert.Single(Regex.Matches(generated, @"^\tAnyPoolResource AnyPool = ""Resource""", RegexOptions.Multiline)); 448Regex.Matches(generated, @"^type (Any\w+) interface ", RegexOptions.Multiline) 468Regex.Matches(generated, @"^func \(\*(\w+)\) (is\w+)\(\) \{\}", RegexOptions.Multiline) 474Regex.Matches(generated, $@"^func \(s \*{implName}\) ({methodPrefix}[^\r\n]*) \{{\r?$", RegexOptions.Multiline)
Aspire.Hosting.CodeGeneration.Java.Tests (1)
AtsJavaCodeGeneratorTests.cs (1)
483foreach (Match import in Regex.Matches(content, @"^import\s+(?:static\s+)?([\w.]+)\.(\w+);", RegexOptions.Multiline))
Aspire.Hosting.Radius.Tests (3)
Publishing\RadiusDeployParametersTests.cs (3)
240var declarations = Regex.Matches(bicep, @"^@secure\(\)\r?\n\s*param sharedSecret ", RegexOptions.Multiline); 268var declarations = Regex.Matches(bicep, @"^@secure\(\)\r?\n\s*param radiusenv ", RegexOptions.Multiline); 296var declared = Regex.Matches(bicep, @"^\s*param (?<name>\w+) ", RegexOptions.Multiline)
Infrastructure.Tests (2)
WorkflowScripts\AutoSecWorkflowTests.cs (2)
4572Regex.Matches(approvalInputs, "^ ([a-z_]+):\r?$", RegexOptions.Multiline).Select(match => match.Groups[1].Value).Order(StringComparer.Ordinal)); 4627Assert.Equal(2, Regex.Matches(source, "^ patch-format: am\r?$", RegexOptions.Multiline).Count);
System.Text.RegularExpressions (5)
System\Text\RegularExpressions\Regex.Match.cs (5)
77/// <see cref="Matches(string, string, RegexOptions)"/> method instead. 337/// calling the <see cref="Matches(string, string, RegexOptions)"/> method. 630/// The <see cref="Matches(string, string, RegexOptions)"/> method is similar to the 639/// The <see cref="Matches(string, string, RegexOptions)"/> method uses lazy evaluation to populate the 646/// Because of its lazy evaluation, calling the <see cref="Matches(string, string, RegexOptions)"/>