25 references to Match
aspire (1)
Aspire.Cli.EndToEnd.Tests (1)
Aspire.Cli.Tests (4)
Aspire.Hosting (1)
Aspire.Hosting.Azure.Tests (1)
Aspire.Hosting.CodeGeneration.Go.Tests (1)
Aspire.Hosting.CodeGeneration.TypeScript.Tests (7)
AtsTypeScriptCodeGeneratorTests.cs (7)
1361var declaration = Regex.Match(code, $@"^export interface {name}(?: extends [^\n]+)? \{{.*?^\}}",
1370var implementation = Regex.Match(code, $@"^class {resourceType.Name}Impl\b.*?^\}}",
1373var invocation = Regex.Match(implementation.Value, @"^ private async _withContainerImageInternal\(.*?^ \}",
1480var volumeInterface = Regex.Match(generatedCode, @"^export interface KubernetesPersistentVolumeResource \{.*?^\}",
1482var callback = Regex.Match(volumeInterface.Value, @"^\s+withConfiguration\(.*$", RegexOptions.Multiline);
1487var match = Regex.Match(generatedCode, $@"^export interface {name} \{{.*?^\}}",
2655var match = Regex.Match(code, $@"^export interface {Regex.Escape(name)} \{{.*?^\}}", RegexOptions.Multiline | RegexOptions.Singleline);
Infrastructure.Tests (2)
Microsoft.Extensions.AI.Evaluation.Quality (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
NativeIntegrations.DockerCompose (1)
NuGet.Configuration (1)
System.Text.RegularExpressions (3)