54 references to Matches
Aspire.Dashboard.Tests (1)
Markdown\MarkdownProcessorTests.cs (1)
51var count = Regex.Matches(html, Regex.Escape("code-block")).Count;
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (11)
UserJwtsTests.cs (11)
167var matches = Regex.Matches(_console.GetOutput(), "New JWT saved with ID '(.*?)'"); 201var matches = Regex.Matches(_console.GetOutput(), "New JWT saved with ID '(.*?)'"); 219var matches = Regex.Matches(_console.GetOutput(), "New JWT saved with ID '(.*?)'"); 382var matches = Regex.Matches(_console.GetOutput(), "New JWT saved with ID '(.*?)'"); 401var matches = Regex.Matches(_console.GetOutput(), "New JWT saved with ID '(.*?)'"); 421var matches = Regex.Matches(_console.GetOutput(), "New JWT saved with ID '(.*?)'"); 442var matches = Regex.Matches(_console.GetOutput(), "New JWT saved with ID '(.*?)'"); 564var matches = Regex.Matches(_console.GetOutput(), "New JWT saved with ID '(.*?)'"); 657var printMatches = Regex.Matches(_console.GetOutput(), "Signing Key: '(.*?)'"); 662var resetMatches = Regex.Matches(_console.GetOutput(), "New signing key created: '(.*?)'"); 683var printMatches = Regex.Matches(_console.GetOutput(), "Signing Key: '(.*?)'");
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
EndpointHtmlRendererTest.cs (1)
1438var numMarkers = Regex.Matches(content, MarkerPrefix).Count;
Microsoft.Build.BuildCheck.UnitTests (11)
EndToEndTests.cs (11)
64Regex.Matches(output, "BC0201: .* Property").Count.ShouldBe(2); 65Regex.Matches(output, "BC0202: .* Property").Count.ShouldBe(2); 66Regex.Matches(output, "BC0203 .* Property").Count.ShouldBe(2); 129Regex.Matches(output.LogOutput, expectedDiagnostic).Count.ShouldBe(2); 243Regex.Matches(output, expectedDiagnostic).Count.ShouldBe(2); 353Regex.Matches(output, "BC0202: .* Property").Count.ShouldBe(2); 354Regex.Matches(output, "BC0203: .* Property").Count.ShouldBe(38); 358Regex.Matches(output, "BC0202: .* Property").Count.ShouldBe(2); 359Regex.Matches(output, "BC0203: .* Property").Count.ShouldBe(42); 402Regex.Matches(output, expectedDiagnostic).Count.ShouldBe(2); 485Regex.Matches(output, expectedDiagnostic).Count.ShouldBe(expectCheckTrigger ? 2 : 0);
Microsoft.Build.Engine.OM.UnitTests (1)
Construction\WhiteSpacePreservation_Tests.cs (1)
508var nlCount = Regex.Matches(projectResults, @"\n").Count;
Microsoft.Build.Engine.UnitTests (4)
Graph\ProjectGraph_Tests.cs (2)
1874Regex.Matches(dot, "->").Count.ShouldBe(edgeCount); 1877Regex.Matches(dot, "label").Count.ShouldBe(graph.ProjectNodes.Count);
ProjectCache\ProjectCacheTests.cs (2)
806Regex.Matches(mockLogger.FullLog, $"{AssemblyMockCache}: GetCacheResultAsync for").Count.ShouldBe(graph.ProjectNodes.Count); 1661Regex.Matches(aString, substring).Count.ShouldBe(expectedOccurrences);
Microsoft.Build.Tasks.UnitTests (2)
PortableTasks_Tests.cs (1)
79Regex.Matches(executionOutput, @"Microsoft\.Build\.(\w+\.)+dll").Count.ShouldBeGreaterThan(1);
ResourceHandling\GenerateResource_Tests.cs (1)
4037var matches = Regex.Matches(unformattedMessage, @"\{\d+.*?\}");
Microsoft.Build.UnitTests.Shared (1)
MockLogger.cs (1)
558var matches = Regex.Matches(FullLog, regexSearch ? message : Regex.Escape(message));
Microsoft.CodeAnalysis (1)
Diagnostic\DiagnosticInfo.cs (1)
134var matches = Regex.Matches(message, @"\{\d+[}:]");
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenReadOnlySpanConstructionTest.cs (1)
2612string[] actual = Regex.Matches(il, @"\.class nested assembly explicit ansi sealed '([^']*?)'").Cast<Match>().Select(m => m.Groups[1].Value).ToArray();
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\DiagnosticDescription.cs (1)
468if (Regex.Matches(messageFormat, @"\{\d+(:\d+)?\}") is { Count: > 0 } matches)
Microsoft.DotNet.Open.Api.Tools.Tests (4)
OpenApiAddFileTests.cs (2)
208Assert.Single(Regex.Matches(content, escapedPkgRef)); 210Assert.Single(Regex.Matches(content, escapedApiRef));
OpenApiAddURLTests.cs (2)
413Assert.Single(Regex.Matches(content, escapedPkgRef)); 415Assert.Single(Regex.Matches(content, escapedApiRef));
Microsoft.Extensions.AI.OpenAI.Tests (1)
OpenAIAssistantChatClientIntegrationTests.cs (1)
125var matches = Regex.Matches(listing, @"thread_\w+");
Microsoft.Maui.Controls (1)
WebView\WebView.cs (1)
302 var singleQuotes = Regex.Matches(js, @"(\\*?)'");
QuarantineTools.Tests (8)
ActiveIssueTests.cs (6)
66var count = Regex.Matches(updated, "ActiveIssue").Count; 123var count = Regex.Matches(norm, "using Xunit;").Count; 160var count = Regex.Matches(norm, "using Xunit;").Count; 165var activeIssueCount = Regex.Matches(norm, @"\[ActiveIssue\(").Count; 217var countWithSuffix = Regex.Matches(updatedWithSuffix, @"ActiveIssue").Count; 218var countWithoutSuffix = Regex.Matches(updatedWithoutSuffix, @"ActiveIssue").Count;
QuarantineScriptTests.cs (2)
67var count = Regex.Matches(updated, "QuarantinedTest").Count; 193var count = Regex.Matches(norm, "using Aspire.TestUtilities;").Count;
Templates.Blazor.Tests (1)
src\ProjectTemplates\Shared\Project.cs (1)
435var matches = System.Text.RegularExpressions.Regex.Matches(urls, hostnamePattern);
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\ProjectTemplates\Shared\Project.cs (1)
435var matches = System.Text.RegularExpressions.Regex.Matches(urls, hostnamePattern);
Templates.Blazor.WebAssembly.Tests (1)
src\ProjectTemplates\Shared\Project.cs (1)
435var matches = System.Text.RegularExpressions.Regex.Matches(urls, hostnamePattern);
Templates.Mvc.Tests (1)
src\ProjectTemplates\Shared\Project.cs (1)
435var matches = System.Text.RegularExpressions.Regex.Matches(urls, hostnamePattern);
Templates.Tests (1)
src\ProjectTemplates\Shared\Project.cs (1)
435var matches = System.Text.RegularExpressions.Regex.Matches(urls, hostnamePattern);