44 references to Match
Aspire.Hosting.MySql.Tests (2)
AddMySqlTests.cs (2)
292Match match1 = Regex.Match(fileContents, pattern1); 294Match match2 = Regex.Match(fileContents, pattern2);
Microsoft.AspNetCore.Components.Endpoints.Tests (7)
EndpointHtmlRendererTest.cs (7)
60var match = Regex.Match(content, ComponentPattern); 126var match = Regex.Match(content, ComponentPattern); 163var match = Regex.Match(content, ComponentPattern); 1064var serverMarkerMatch = Regex.Match(lines[0], PrerenderedComponentPattern); 1065var serverNonPrerenderedMarkerMatch = Regex.Match(lines[1], ComponentPattern); 1066var webAssemblyMarkerMatch = Regex.Match(lines[2], PrerenderedComponentPattern); 1067var webAssemblyNonPrerenderedMarkerMatch = Regex.Match(lines[3], ComponentPattern);
Microsoft.AspNetCore.Components.Server.Tests (1)
Circuits\ComponentHubTest.cs (1)
34mockClientProxy.Verify(m => m.SendCoreAsync("JS.Error", It.Is<object[]>(s => Regex.Match((string)s[0], errorMessage).Success), It.IsAny<CancellationToken>()), Times.Once());
Microsoft.AspNetCore.DataProtection.Tests (5)
AuthenticatedEncryption\ConfigurationModel\AuthenticatedEncryptorDescriptorTests.cs (5)
32int keyLengthInBits = Int32.Parse(Regex.Match(encryptionAlgorithm.ToString(), @"^AES_(?<keyLength>\d{3})_CBC$").Groups["keyLength"].Value, CultureInfo.InvariantCulture); 33string hashAlgorithm = Regex.Match(validationAlgorithm.ToString(), @"^HMAC(?<hashAlgorithm>.*)$").Groups["hashAlgorithm"].Value; 60int keyLengthInBits = Int32.Parse(Regex.Match(encryptionAlgorithm.ToString(), @"^AES_(?<keyLength>\d{3})_GCM$").Groups["keyLength"].Value, CultureInfo.InvariantCulture); 86int keyLengthInBits = Int32.Parse(Regex.Match(encryptionAlgorithm.ToString(), @"^AES_(?<keyLength>\d{3})_GCM$").Groups["keyLength"].Value, CultureInfo.InvariantCulture); 123int keyLengthInBits = Int32.Parse(Regex.Match(encryptionAlgorithm.ToString(), @"^AES_(?<keyLength>\d{3})_CBC$").Groups["keyLength"].Value, CultureInfo.InvariantCulture);
Microsoft.AspNetCore.Identity.FunctionalTests (2)
MapIdentityApiTests.cs (2)
1361var confirmationMatch = Regex.Match(email.HtmlMessage, "href='(.*?)'"); 1373var confirmationMatch = Regex.Match(email.HtmlMessage, "code: (.*?)$");
Microsoft.AspNetCore.Rewrite.Tests (8)
IISUrlRewrite\InputParserTests.cs (4)
167var match = Regex.Match("foo/bar/baz", "(.*)/(.*)/(.*)"); 173var match = Regex.Match("foo/bar/baz", "(.*)/(.*)/(.*)"); 179var match = Regex.Match(input, "([^/]*)/?(.*)"); 185var match = Regex.Match(input, "(.+)");
IISUrlRewrite\ServerVariableTests.cs (2)
161var match = Regex.Match("foo/bar/baz", "(.*)/(.*)/(.*)"); 167var match = Regex.Match("foo/bar/baz", "(.*)/(.*)/(.*)");
PatternSegments\ConditionMatchSegmentTests.cs (1)
31var match = Regex.Match("foo/bar/baz", "(.*)/(.*)/(.*)");
PatternSegments\RuleMatchSegmentTests.cs (1)
30var match = Regex.Match("foo/bar/baz", "(.*)/(.*)/(.*)");
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
4801var match = Regex.Match(output, pattern);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenReadOnlySpanConstructionTest.cs (1)
2572Match m = Regex.Match(il, @"\.data cil I_([0-9A-F]*) = bytearray");
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\SemanticModelAPITests.cs (2)
4029for (var match = System.Text.RegularExpressions.Regex.Match(source, " => x"); match.Success; match = match.NextMatch()) 4057for (var match = System.Text.RegularExpressions.Regex.Match(source, " => x"); match.Success; match = match.NextMatch())
Microsoft.CodeAnalysis.EditorFeatures (1)
EditorConfigSettings\DataProvider\SettingsProviderBase.cs (1)
143var match = Regex.Match(key, diagnosticKey);
Microsoft.CodeAnalysis.Test.Utilities (2)
Diagnostics\DiagnosticDescription.cs (1)
523if (Regex.Match(message, @"{\d+}").Success)
Diagnostics\DiagnosticsHelper.cs (1)
20var match = Regex.Match(source, pattern);
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (1)
CommandLineTests.vb (1)
5062Dim match = Regex.Match(output, pattern)
Microsoft.DotNet.Arcade.Sdk (2)
src\CheckRequiredDotNetVersion.cs (1)
82var match = Regex.Match(globalJson, $@"""dotnet""\s*:\s*""([^""]+)""");
src\LocateDotNet.cs (1)
61var match = Regex.Match(globalJson, @"""dotnet""\s*:\s*""([^""]+)""");
Microsoft.DotNet.Build.Tasks.Feed (6)
src\AzureDevOpsNugetFeedAssetPublisher.cs (1)
38var parsedUri = Regex.Match(_targetUrl, PublishingConstants.AzDoNuGetFeedPattern);
src\BlobFeedAction.cs (1)
42Match m = Regex.Match(expectedFeedUrl, feedRegex);
src\BlobUrlInfo.cs (2)
40Match hostNameMatch = Regex.Match(hostName, AccountNameAndEndpointRegex); 53Match containerAndBlobMatch = Regex.Match(path, ContainerAndBlobRegex);
src\PublishArtifactsInManifestBase.cs (2)
1289var parsedUri = Regex.Match(feedConfig.TargetURL, PublishingConstants.AzDoNuGetFeedPattern); 1638var parsedUri = Regex.Match(feedConfig.TargetURL, PublishingConstants.AzDoNuGetFeedPattern);
Microsoft.DotNet.Build.Tasks.Feed.Tests (1)
PublishArtifactsInManifestTests.cs (1)
66var matches = Regex.Match(uri, PublishingConstants.AzDoNuGetFeedPattern);
XmlFileLogger (1)
XmlFileLogger.cs (1)
136var match = Regex.Match(messageArgs.Message, taskAssemblyPattern);
xunit.assert (1)
StringAsserts.cs (1)
539 var match = Regex.Match(actualString, expectedRegexPattern);