28 references to Match
Microsoft.AspNetCore.Components.Endpoints.Tests (8)
EndpointHtmlRendererTest.cs (8)
175var match = Regex.Match(content, PrerenderedComponentPattern, RegexOptions.Multiline); 293var match = Regex.Match(content, PrerenderedComponentPattern, RegexOptions.Multiline); 343var match = Regex.Match(content, PrerenderedComponentPattern, RegexOptions.Multiline); 434var match = Regex.Match(content, PrerenderedComponentPattern, RegexOptions.Multiline); 495var firstMatch = Regex.Match(firstComponent, PrerenderedComponentPattern, RegexOptions.Multiline); 631var match = Regex.Match(content, PrerenderedComponentPattern, RegexOptions.Multiline); 682var match = Regex.Match(content, PrerenderedComponentPattern, RegexOptions.Multiline); 1316var match = Regex.Match(content, PrerenderedComponentPattern, RegexOptions.Singleline);
Microsoft.Build (1)
DebugUtils.cs (1)
73var match = Regex.Match(input, @"/nodemode:(?<nodemode>[12\s])(\s|$)", RegexOptions.IgnoreCase);
Microsoft.Build.Engine.OM.UnitTests (1)
DebugUtils.cs (1)
73var match = Regex.Match(input, @"/nodemode:(?<nodemode>[12\s])(\s|$)", RegexOptions.IgnoreCase);
Microsoft.Build.Engine.UnitTests (3)
NetTaskHost_E2E_Tests.cs (3)
77var msBuildDllPathMatch = System.Text.RegularExpressions.Regex.Match( 92var arg1Match = System.Text.RegularExpressions.Regex.Match( 107var cmdLineMatch = System.Text.RegularExpressions.Regex.Match(
Microsoft.Build.Tasks.Core (1)
DebugUtils.cs (1)
73var match = Regex.Match(input, @"/nodemode:(?<nodemode>[12\s])(\s|$)", RegexOptions.IgnoreCase);
Microsoft.Build.Utilities.Core (1)
DebugUtils.cs (1)
73var match = Regex.Match(input, @"/nodemode:(?<nodemode>[12\s])(\s|$)", RegexOptions.IgnoreCase);
Microsoft.Extensions.AI.Evaluation.Quality (1)
EvaluationMetricExtensions.cs (1)
104Match match = Regex.Match(text, $@"<{tagName}>(?<value>.*?)</{tagName}>", Options);
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
Linux\Resources\HardcodedValueFileSystem.cs (1)
40.Select(x => Regex.Match(x, pattern, RegexOptions.IgnoreCase))
Microsoft.NET.Sdk.StaticWebAssets.Tests (7)
ScopedCssIntegrationTests.cs (7)
155var counterScopeMatch = Regex.Match(counterContent, ".*button\\[(.*)\\].*", RegexOptions.Multiline | RegexOptions.IgnoreCase); 159var indexScopeMatch = Regex.Match(indexContent, ".*h1\\[(.*)\\].*", RegexOptions.Multiline | RegexOptions.IgnoreCase); 187var indexScopeMatch = Regex.Match(indexContent, ".*p\\[(.*)\\].*", RegexOptions.Multiline | RegexOptions.IgnoreCase); 191var aboutScopeMatch = Regex.Match(aboutContent, ".*h2\\[(.*)\\].*", RegexOptions.Multiline | RegexOptions.IgnoreCase); 195var contactScopeMatch = Regex.Match(contactContent, ".*a\\[(.*)\\].*", RegexOptions.Multiline | RegexOptions.IgnoreCase); 224var indexScopeMatch = Regex.Match(indexContent, ".*p\\[(.*)\\].*", RegexOptions.Multiline | RegexOptions.IgnoreCase); 228var counterScopeMatch = Regex.Match(counterContent, ".*div\\[(.*)\\].*", RegexOptions.Multiline | RegexOptions.IgnoreCase);
Microsoft.NET.TestFramework (3)
Assertions\CommandResultAssertions.cs (3)
102Regex.Match(_commandResult.StdOut ?? string.Empty, pattern, options).Success.Should().BeTrue(AppendDiagnosticsTo($"Matching the command output failed. Pattern: {pattern}{Environment.NewLine}")); 109Regex.Match(_commandResult.StdOut ?? string.Empty, pattern, options).Success.Should().BeFalse(AppendDiagnosticsTo($"The command output matched a pattern it should not have. Pattern: {pattern}{Environment.NewLine}")); 153Regex.Match(_commandResult.StdErr ?? string.Empty, pattern, options).Success.Should().BeTrue(AppendDiagnosticsTo($"Matching the command error output failed. Pattern: {pattern}{Environment.NewLine}"));
MSBuild (1)
DebugUtils.cs (1)
73var match = Regex.Match(input, @"/nodemode:(?<nodemode>[12\s])(\s|$)", RegexOptions.IgnoreCase);