Implemented interface members:
58 references to Count
Aspire.EndToEnd.Tests (2)
tests\Shared\TemplatesTesting\AspireProject.cs (2)
133if (matches.Count == 0) 137if (matches.Count > 1)
Aspire.Templates.Tests (2)
tests\Shared\TemplatesTesting\AspireProject.cs (2)
133if (matches.Count == 0) 137if (matches.Count > 1)
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
EndpointHtmlRendererTest.cs (1)
1246var numMarkers = Regex.Matches(content, MarkerPrefix).Count;
Microsoft.Build (3)
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 (11)
EndToEndTests.cs (11)
62Regex.Matches(output, "BC0201: .* Property").Count.ShouldBe(2); 63Regex.Matches(output, "BC0202: .* Property").Count.ShouldBe(2); 64Regex.Matches(output, "BC0203 .* Property").Count.ShouldBe(2); 127Regex.Matches(output.LogOutput, expectedDiagnostic).Count.ShouldBe(2); 241Regex.Matches(output, expectedDiagnostic).Count.ShouldBe(2); 351Regex.Matches(output, "BC0202: .* Property").Count.ShouldBe(2); 352Regex.Matches(output, "BC0203: .* Property").Count.ShouldBe(38); 356Regex.Matches(output, "BC0202: .* Property").Count.ShouldBe(2); 357Regex.Matches(output, "BC0203: .* Property").Count.ShouldBe(42); 393Regex.Matches(output, expectedDiagnostic).Count.ShouldBe(2); 471Regex.Matches(output, expectedDiagnostic).Count.ShouldBe(expectCheckTrigger ? 2 : 0);
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)
789Regex.Matches(mockLogger.FullLog, $"{AssemblyMockCache}: GetCacheResultAsync for").Count.ShouldBe(graph.ProjectNodes.Count); 1644Regex.Matches(aString, substring).Count.ShouldBe(expectedOccurrences);
Microsoft.Build.Tasks.UnitTests (3)
PortableTasks_Tests.cs (1)
79Regex.Matches(executionOutput, @"Microsoft\.Build\.(\w+\.)+dll").Count.ShouldBeGreaterThan(1);
ResourceHandling\GenerateResource_Tests.cs (1)
3768if (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.ResxSourceGenerator (1)
AbstractResxGenerator.cs (1)
843UsingNamedArgs = match.Count > 0;
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 (4)
ShadowTypeConverter.cs (3)
82 if (matches.Count == 3) // <color> | <float> | <float> e.g. #000000 4 4 94 else if (matches.Count == 4) // <float> | <float> | <float> | <color> e.g. 4 4 16 #000000 108 else if (matches.Count == 5) // <float> | <float> | <float> | <color> | <float> e.g. 4 4 16 #000000 0.5
WebView\WebView.cs (1)
306 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++)