Implemented interface members:
118 references to Count
Aspire.Dashboard.Tests (1)
Markdown\MarkdownProcessorTests.cs (1)
51var count = Regex.Matches(html, Regex.Escape("code-block")).Count;
Aspire.EndToEnd.Tests (2)
tests\Shared\TemplatesTesting\AspireProject.cs (2)
135if (matches.Count == 0) 139if (matches.Count > 1)
Aspire.Templates.Tests (2)
tests\Shared\TemplatesTesting\AspireProject.cs (2)
135if (matches.Count == 0) 139if (matches.Count > 1)
GenerateDocumentationAndConfigFiles (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)
Metrics (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)
Metrics.Legacy (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.AspNetCore.Components.Endpoints.Tests (1)
EndpointHtmlRendererTest.cs (1)
1448var numMarkers = Regex.Matches(content, MarkerPrefix).Count;
Microsoft.Build (7)
Logging\TerminalLogger\TerminalLogger.cs (4)
299if (tlArgMatches.Count > 0) 306if (verbosityArgMatches.Count > 0) 313if (tlpMatches.Count > 0) 320if (clpMatches.Count > 0)
Utilities\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)
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); 401Regex.Matches(output, expectedDiagnostic).Count.ShouldBe(2); 484Regex.Matches(output, expectedDiagnostic).Count.ShouldBe(expectCheckTrigger ? 2 : 0);
Microsoft.Build.Engine.OM.UnitTests (2)
Construction\WhiteSpacePreservation_Tests.cs (2)
507var crlfCount = Regex.Matches(projectResults, @"\r\n", RegexOptions.Multiline).Count; 508var nlCount = Regex.Matches(projectResults, @"\n").Count;
Microsoft.Build.Engine.UnitTests (5)
Evaluation\ExpressionShredder_Tests.cs (1)
633Assert.Equal(matches.Count, expressionCount);
Graph\ProjectGraph_Tests.cs (2)
1873Regex.Matches(dot, "->").Count.ShouldBe(edgeCount); 1876Regex.Matches(dot, "label").Count.ShouldBe(graph.ProjectNodes.Count);
ProjectCache\ProjectCacheTests.cs (2)
805Regex.Matches(mockLogger.FullLog, $"{AssemblyMockCache}: GetCacheResultAsync for").Count.ShouldBe(graph.ProjectNodes.Count); 1660Regex.Matches(aString, substring).Count.ShouldBe(expectedOccurrences);
Microsoft.Build.Tasks.UnitTests (3)
PortableTasks_Tests.cs (1)
78Regex.Matches(executionOutput, @"Microsoft\.Build\.(\w+\.)+dll").Count.ShouldBeGreaterThan(1);
ResourceHandling\GenerateResource_Tests.cs (1)
4037if (matches.Count > 0)
XslTransformation_Tests.cs (1)
381Assert.Equal(8, mc.Count); // "The file test doesn't match"
Microsoft.Build.UnitTests.Shared (1)
MockLogger.cs (1)
558matches.Count.ShouldBe(expectedCount);
Microsoft.Build.Utilities.UnitTests (1)
ToolTask_Tests.cs (1)
278regex.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.Analyzers (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.AnalyzerUtilities (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.BannedApiAnalyzers (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.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)
95if (matches.Count == 0) 102for (var i = 0; i < matches.Count; i++) 123for (var i = 0; i < matches.Count; i++)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (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.PublicApiAnalyzers (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.ResxSourceGenerator (5)
AbstractResxGenerator.cs (1)
874UsingNamedArgs = match.Count > 0;
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.Test.Utilities (1)
Diagnostics\DiagnosticDescription.cs (1)
468if (Regex.Matches(messageFormat, @"\{\d+(:\d+)?\}") is { Count: > 0 } matches)
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.Extensions.AI.OpenAI.Tests (1)
OpenAIAssistantChatClientIntegrationTests.cs (1)
126if (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++)
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;
Roslyn.Diagnostics.Analyzers (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)
Test.Utilities (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)
Text.Analyzers (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)