68 references to Match
Aspire.Hosting.MySql.Tests (2)
AddMySqlTests.cs (2)
285Match match1 = Regex.Match(fileContents, pattern1); 287Match match2 = Regex.Match(fileContents, pattern2);
dotnet-new.IntegrationTests (1)
DotnetNewDetailsTest.Approval.cs (1)
221var match = Regex.Match(stdOut ?? string.Empty, @"Package version:\s*(\S+)");
dotnet-watch.Tests (1)
Build\EvaluationTests.cs (1)
585var match = Regex.Match(line, $"> ([^{Path.PathSeparator}]*)({Path.PathSeparator}(.*))?");
dotnet-watch-test-browser (2)
Program.cs (2)
115var match = Regex.Match(refreshScript, pattern); 128var match = Regex.Match(refreshScript, pattern);
Microsoft.AspNetCore.Components.Endpoints.Tests (12)
EndpointHtmlRendererTest.cs (12)
85var match = Regex.Match(content, ComponentPattern); 219var match = Regex.Match(content, ComponentPattern); 257var match = Regex.Match(content, ComponentPattern); 402var match = Regex.Match(content, ComponentPattern); 499var secondMatch = Regex.Match(secondComponent, ComponentPattern); 553var match = Regex.Match(content, ComponentPattern); 592var match = Regex.Match(content, ComponentPattern); 1207var serverMarkerMatch = Regex.Match(lines[0], PrerenderedComponentPattern); 1208var serverNonPrerenderedMarkerMatch = Regex.Match(lines[1], ComponentPattern); 1210var webAssemblyMarkerMatch = Regex.Match(lines[2], PrerenderedComponentPattern); 1211var webAssemblyNonPrerenderedMarkerMatch = Regex.Match(lines[3], ComponentPattern); 1649var wasmOptionsMatch = Regex.Match(content, WebAssemblyOptionsPattern);
Microsoft.AspNetCore.Components.Server.Tests (2)
Circuits\ComponentHubTest.cs (2)
35mockClientProxy.Verify(m => m.SendCoreAsync("JS.Error", It.Is<object[]>(s => Regex.Match((string)s[0], errorMessage).Success), It.IsAny<CancellationToken>()), Times.Once()); 197mockClientProxy.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)
1402var confirmationMatch = Regex.Match(email.HtmlMessage, "href='(.*?)'"); 1414var 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.Build.CommandLine.UnitTests (2)
XMake_Tests.cs (2)
2819Match match = Regex.Match(arguments, pattern); 2846Match match = Regex.Match(arguments, pattern);
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)
2495Match m = Regex.Match(il, @"\.data cil I_([0-9A-F]*) = bytearray");
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\SemanticModelAPITests.cs (2)
4060for (var match = System.Text.RegularExpressions.Regex.Match(source, " => x"); match.Success; match = match.NextMatch()) 4088for (var match = System.Text.RegularExpressions.Regex.Match(source, " => x"); match.Success; match = match.NextMatch())
Microsoft.CodeAnalysis.EditorFeatures (2)
EditorConfigSettings\DataProvider\SettingsProviderBase.cs (1)
147var match = Regex.Match(key, diagnosticKey);
QuickInfo\OnTheFlyDocsView.xaml.cs (1)
135var quotaExceededMatch = Regex.Match(
Microsoft.CodeAnalysis.NetAnalyzers.UnitTests (1)
Microsoft.NetCore.Analyzers\Runtime\DoNotCallEnumerableCastOrOfTypeWithIncompatibleTypesAnalyzerTests.cs (1)
157Regex.Match(".", "abc").Groups
Microsoft.CodeAnalysis.Test.Utilities (2)
Diagnostics\DiagnosticDescription.cs (1)
559if (Regex.Match(message, @"{\d+}").Success)
Diagnostics\DiagnosticsHelper.cs (1)
20var match = Regex.Match(source, 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)
37var 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)
1375var parsedUri = Regex.Match(feedConfig.TargetURL, PublishingConstants.AzDoNuGetFeedPattern); 1793var parsedUri = Regex.Match(feedConfig.TargetURL, PublishingConstants.AzDoNuGetFeedPattern);
Microsoft.DotNet.Build.Tasks.Feed.Tests (1)
PublishArtifactsInManifestTests.cs (1)
256var matches = Regex.Match(uri, PublishingConstants.AzDoNuGetFeedPattern);
Microsoft.DotNet.Build.Tasks.Installers (1)
src\CreateWixBuildWixpack.cs (1)
954var eqMatch = Regex.Match(
Microsoft.DotNet.SignCheckLibrary (1)
Verification\JavaScriptVerifier.cs (1)
27Match match = Regex.Match(content, pattern);
Microsoft.NET.Build.Tasks.UnitTests (1)
GivenThatWeHaveErrorCodes.cs (1)
62var match = Regex.Match(message, "^NETSDK([0-9]{4}): ");
Microsoft.NET.Sdk.BlazorWebAssembly.Tests (4)
WasmPwaManifestTests.cs (4)
169var match = Regex.Match(version, "\\/\\* Manifest version: (.{8}) \\*\\/"); 185var updatedMatch = Regex.Match(updatedVersion, "\\/\\* Manifest version: (.{8}) \\*\\/"); 219var match = Regex.Match(version, "\\/\\* Manifest version: (.{8}) \\*\\/"); 231var updatedMatch = Regex.Match(updatedVersion, "\\/\\* Manifest version: (.{8}) \\*\\/");
Microsoft.NET.TestFramework (1)
Utilities\DotnetVersionHelper.cs (1)
13var match = Regex.Match(currentFramework, @"^net(\d+)\.(\d+)$");
Microsoft.Win32.Msi (2)
ActionStartEventArgs.cs (1)
48Match match = Regex.Match(message, @"Action\s(?<actionTime>\d+:\d+:\d+):\s+(?<actionName>.*)\.\s+(?<actionDescription>.*)");
ProgressEventArgs.cs (1)
31Match match = Regex.Match(message, @"(?<field>\d):\s+(?<value>\d+)");
SDDLTests (1)
Program.cs (1)
107Match m = Regex.Match(sddlDescriptor, s_SDDL_Pattern);
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);