Implemented interface members:
55 references to Count
Aspire.EndToEnd.Tests (2)
tests\Shared\WorkloadTesting\AspireProject.cs (2)
115if (matches.Count == 0) 119if (matches.Count > 1)
Aspire.Workload.Tests (2)
tests\Shared\WorkloadTesting\AspireProject.cs (2)
115if (matches.Count == 0) 119if (matches.Count > 1)
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
EndpointHtmlRendererTest.cs (1)
1167var numMarkers = Regex.Matches(content, MarkerPrefix).Count;
Microsoft.Build (5)
BuildCheck\Infrastructure\EditorConfig\EditorConfigFile.cs (2)
94if (sectionMatches.Count > 0 && sectionMatches[0].Groups.Count > 0) 107if (propMatches.Count > 0 && propMatches[0].Groups.Count > 1)
ProjectWriter.cs (3)
136if (itemVectorTransforms.Count > 0) 142ErrorUtilities.VerifyThrow(itemVectorTransforms.Count == (surroundingTextPieces.Length - 1), 146for (int i = 0; i < itemVectorTransforms.Count; i++)
Microsoft.Build.BuildCheck.UnitTests (10)
EndToEndTests.cs (10)
63Regex.Matches(output, "BC0201: .* Property").Count.ShouldBe(2); 64Regex.Matches(output, "BC0202: .* Property").Count.ShouldBe(2); 65Regex.Matches(output, "BC0203 .* Property").Count.ShouldBe(2); 128Regex.Matches(output.LogOutput, expectedDiagnostic).Count.ShouldBe(2); 242Regex.Matches(output, expectedDiagnostic).Count.ShouldBe(2); 352Regex.Matches(output, "BC0202: .* Property").Count.ShouldBe(2); 353Regex.Matches(output, "BC0203: .* Property").Count.ShouldBe(38); 357Regex.Matches(output, "BC0202: .* Property").Count.ShouldBe(2); 358Regex.Matches(output, "BC0203: .* Property").Count.ShouldBe(42); 390Regex.Matches(output, expectedDiagnostic).Count.ShouldBe(2);
Microsoft.Build.Engine.OM.UnitTests (2)
Construction\WhiteSpacePreservation_Tests.cs (2)
506var crlfCount = Regex.Matches(projectResults, @"\r\n", RegexOptions.Multiline).Count; 507var nlCount = Regex.Matches(projectResults, @"\n").Count;
Microsoft.Build.Engine.UnitTests (6)
Evaluation\ExpressionShredder_Tests.cs (2)
603Assert.Equal(matches.Count, expressions.Count); 605for (int n = 0; n < matches.Count; n++)
Graph\ProjectGraph_Tests.cs (2)
1873Regex.Matches(dot, "->").Count.ShouldBe(edgeCount); 1876Regex.Matches(dot, "label").Count.ShouldBe(graph.ProjectNodes.Count);
ProjectCache\ProjectCacheTests.cs (2)
788Regex.Matches(mockLogger.FullLog, $"{AssemblyMockCache}: GetCacheResultAsync for").Count.ShouldBe(graph.ProjectNodes.Count); 1643Regex.Matches(aString, substring).Count.ShouldBe(expectedOccurrences);
Microsoft.Build.Tasks.UnitTests (3)
PortableTasks_Tests.cs (1)
80Regex.Matches(executionOutput, @"Microsoft\.Build\.(\w+\.)+dll").Count.ShouldBeGreaterThan(1);
ResourceHandling\GenerateResource_Tests.cs (1)
3770if (matches.Count > 0)
XslTransformation_Tests.cs (1)
380Assert.Equal(8, mc.Count); // "The file test doesn't match"
Microsoft.Build.UnitTests.Shared (1)
MockLogger.cs (1)
559matches.Count.ShouldBe(expectedCount);
Microsoft.Build.Utilities.UnitTests (1)
ToolTask_Tests.cs (1)
276regex.Matches(log).Count.ShouldBe(1, $"{log} doesn't contain the log matching the pattern: {pattern}");
Microsoft.CodeAnalysis (2)
CommandLine\AnalyzerConfig.cs (2)
222if (sectionMatches.Count > 0 && sectionMatches[0].Groups.Count > 0) 236if (propMatches.Count > 0 && propMatches[0].Groups.Count > 1)
Microsoft.CodeAnalysis.CodeStyle (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher.cs (4)
135if (matchCollection.Count == 1) 142if (fileExtensionMatches.Count == 2) 179if (matchCollection.Count == 1) 222if (matchCollection.Count == 1)
Microsoft.CodeAnalysis.Features.Test.Utilities (3)
EditAndContinue\SourceMarkers.cs (3)
91if (matches.Count == 0) 98for (var i = 0; i < matches.Count; i++) 119for (var i = 0; i < matches.Count; i++)
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\DiagnosticDescription.cs (1)
468if (Regex.Matches(messageFormat, @"\{\d+(:\d+)?\}") is { Count: > 0 } matches)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
CodeGen\CodeGenVBCore.vb (1)
3210Dim captures = matches(matches.Count - 1).Groups(1).Captures
Microsoft.CodeAnalysis.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher.cs (4)
135if (matchCollection.Count == 1) 142if (fileExtensionMatches.Count == 2) 179if (matchCollection.Count == 1) 222if (matchCollection.Count == 1)
Microsoft.DotNet.Arcade.Sdk (1)
src\GenerateResxSource.cs (1)
499UsingNamedArgs = match.Count > 0;
Microsoft.DotNet.Build.Tasks.Feed (1)
src\common\AzureConnectionStringBuildTask.cs (1)
42if (matches.Count > 0)
Microsoft.Maui.Controls (1)
WebView\WebView.cs (1)
303 for (var i = 0; i < singleQuotes.Count; i++)
Microsoft.ML.TestFramework (4)
BaseTestBaseline.cs (4)
579if (firstCollection.Count == secondCollection.Count) 597for (int i = 0; i < firstCollection.Count; i++) 610for (int i = 0; i < firstCollection.Count; i++)