Implemented interface members:
51 references to Count
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)
99if (sectionMatches.Count > 0 && sectionMatches[0].Groups.Count > 0) 112if (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 (7)
EndToEndTests.cs (7)
61Regex.Matches(output, "BC0201: .* Property").Count.ShouldBe(2); 62Regex.Matches(output, "BC0202: .* Property").Count.ShouldBe(2); 63Regex.Matches(output, "BC0203 .* Property").Count.ShouldBe(2); 99Regex.Matches(output, "BC0202: .* Property").Count.ShouldBe(2); 100Regex.Matches(output, "BC0203: .* Property").Count.ShouldBe(38); 104Regex.Matches(output, "BC0202: .* Property").Count.ShouldBe(2); 105Regex.Matches(output, "BC0203: .* Property").Count.ShouldBe(42);
Microsoft.Build.Engine (3)
Shared\ProjectWriter.cs (3)
159if (itemVectorTransforms.Count > 0) 165ErrorUtilities.VerifyThrow(itemVectorTransforms.Count == (surroundingTextPieces.Length - 1), 169for (int i = 0; i < itemVectorTransforms.Count; i++)
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.VisualBasic.Workspaces (1)
LinkedFiles\BasicLinkedFileMergeConflictCommentAdditionService.vb (1)
67Debug.Assert(newlines.Count = lines.Length - 1)
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.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++)