1797 references to Count
AnalyzerRunner (2)
Aspire.Dashboard (1)
Aspire.Dashboard.Components.Tests (1)
Aspire.EndToEnd.Tests (1)
Aspire.Hosting (1)
Aspire.Hosting.Elasticsearch.Tests (2)
Aspire.Hosting.Kafka.Tests (1)
Aspire.Hosting.MongoDB.Tests (1)
Aspire.Hosting.MySql (1)
Aspire.Hosting.Nats.Tests (1)
Aspire.Hosting.Qdrant.Tests (1)
Aspire.Hosting.Tests (5)
Aspire.Playground.Tests (1)
Aspire.Workload.Tests (1)
CodeGenerator (2)
Contract.Service.IntegrationTests (4)
csc (1)
CSharpSyntaxGenerator (2)
dotnet-svcutil-lib (31)
IdeCoreBenchmarks (2)
IIS.FunctionalTests (1)
IISExpress.FunctionalTests (1)
illink (2)
ILLink.RoslynAnalyzer (1)
InMemory.FunctionalTests (4)
Interop.FunctionalTests (2)
IOperationGenerator (1)
LocalizationWebsite (1)
Microsoft.Arcade.Test.Common (2)
Microsoft.AspNetCore (1)
Microsoft.AspNetCore.App.Analyzers (5)
Microsoft.AspNetCore.Authentication (2)
Microsoft.AspNetCore.Authentication.Core.Test (4)
Microsoft.AspNetCore.Authentication.Test (9)
Microsoft.AspNetCore.Authorization.Test (12)
AuthorizationPolicyFacts.cs (10)
37Assert.Equal(2, combined.AuthenticationSchemes.Count());
40Assert.Equal(4, combined.Requirements.Count());
42Assert.Equal(2, combined.Requirements.OfType<ClaimsAuthorizationRequirement>().Count());
87Assert.Equal(2, combined.AuthenticationSchemes.Count());
90Assert.Equal(2, combined.Requirements.Count());
92Assert.Equal(2, combined.Requirements.OfType<ClaimsAuthorizationRequirement>().Count());
111Assert.Equal(2, rolesAuthorizationRequirement.AllowedRoles.Count());
131Assert.Equal(2, combined.AuthenticationSchemes.Count());
151Assert.Equal(2, combined.AuthenticationSchemes.Count());
172Assert.Equal(2, rolesAuthorizationRequirement.AllowedRoles.Count());
Microsoft.AspNetCore.BrowserTesting (1)
Microsoft.AspNetCore.Components.Analyzers.Tests (1)
Microsoft.AspNetCore.Components.Endpoints.Tests (2)
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (1)
Microsoft.AspNetCore.Components.Tests (5)
Microsoft.AspNetCore.Cors.Test (1)
Microsoft.AspNetCore.Http.Extensions.Tests (2)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
Microsoft.AspNetCore.Http.Tests (5)
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (1)
Microsoft.AspNetCore.Identity.Specification.Tests (5)
Microsoft.AspNetCore.Identity.Test (1)
Microsoft.AspNetCore.Mvc.Core.Test (30)
ApplicationModels\ControllerActionDescriptorProviderTests.cs (21)
259Assert.Equal(2, descriptors.Count());
454Assert.Equal(4, actions.Count());
479Assert.Equal(2, actions.Count());
531Assert.Equal(4, actions.Count());
542Assert.Equal(4, constrainedActions.Count());
547Assert.Equal(2, putActions.Count());
554Assert.Equal(2, routeActions.Count());
570Assert.Equal(6, actions.Count());
581Assert.Equal(4, constrainedActions.Count());
586Assert.Equal(2, postActions.Count());
593Assert.Equal(2, putActions.Count());
599Assert.Equal(2, unconstrainedActions.Count());
640Assert.Equal(5, actions.Count());
812Assert.Equal(2, getActions.Count());
840Assert.Equal(2, getActions.Count());
899Assert.Equal(4, actionDescriptors.Count());
968Assert.Equal(2, actions.Count());
1048Assert.Equal(2, actions.Count());
1188Assert.Equal(2, actions.Count());
1214Assert.Equal(2, actions.Count());
1241Assert.Equal(4, actions.Count());
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (1)
Microsoft.AspNetCore.Mvc.FunctionalTests (2)
Microsoft.AspNetCore.Mvc.IntegrationTests (1)
Microsoft.AspNetCore.Mvc.Razor (1)
Microsoft.AspNetCore.Mvc.Test (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (3)
Microsoft.AspNetCore.OpenApi (2)
Microsoft.AspNetCore.OpenApi.Tests (1)
Microsoft.AspNetCore.Razor.Test (1)
Microsoft.AspNetCore.Routing (6)
Microsoft.AspNetCore.Routing.Tests (4)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (15)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (13)
Microsoft.AspNetCore.Shared.Tests (4)
Microsoft.AspNetCore.SignalR.Tests (2)
Microsoft.Build (4)
Microsoft.Build.BuildCheck.UnitTests (3)
Microsoft.Build.Engine.OM.UnitTests (6)
Microsoft.Build.Engine.UnitTests (31)
Microsoft.Build.Framework (3)
Microsoft.Build.Tasks.CodeAnalysis (1)
Microsoft.Build.Tasks.UnitTests (4)
Microsoft.Build.UnitTests.Shared (2)
Microsoft.Build.Utilities.UnitTests (2)
Microsoft.Cci.Extensions (5)
Microsoft.CodeAnalysis (8)
Microsoft.CodeAnalysis.CodeStyle (5)
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
Microsoft.CodeAnalysis.CSharp (1)
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (14)
CommandLineTests.cs (14)
757Assert.Equal(1, errors.Count());
769Assert.Equal(1, errors.Count());
780Assert.Equal(1, errors.Count());
791Assert.Equal(1, errors.Count());
802Assert.Equal(1, errors.Count());
813Assert.Equal(1, errors.Count());
882Assert.Equal(1, errors.Count());
1902Assert.Equal(0, parsedArgs.ParseOptions.PreprocessorSymbolNames.Count());
1906Assert.Equal(1, parsedArgs.ParseOptions.PreprocessorSymbolNames.Count());
1911Assert.Equal(3, parsedArgs.ParseOptions.PreprocessorSymbolNames.Count());
1918Assert.Equal(1, parsedArgs.ParseOptions.PreprocessorSymbolNames.Count());
4499Assert.Equal(1, Directory.EnumerateFiles(dir.Path, exeName).Count());
7087Assert.Equal(1, Directory.EnumerateFiles(dir.Path, "*" + PathUtilities.GetExtension(expectedOutputName)).Count());
7088Assert.Equal(1, Directory.EnumerateFiles(dir.Path, expectedOutputName).Count());
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (35)
Workspaces\WorkspaceTests_EditorFeatures.cs (27)
87Assert.Equal(0, solution.Projects.Count());
94Assert.Equal(1, solution.Projects.Count());
109Assert.Equal(0, solution.Projects.Count());
125Assert.Equal(0, solution.Projects.Count());
328Assert.Equal(0, snapshot.GetProject(id1).ProjectReferences.Count());
766Assert.Equal(2, workspace.CurrentSolution.GetProject(project1.Id).Documents.Count());
787Assert.Equal(0, workspace.CurrentSolution.GetProject(project1.Id).Documents.Count());
1055Assert.Equal(1, project.Documents.Count());
1056Assert.Equal(1, project.AdditionalDocuments.Count());
1079Assert.Equal(1, project.Documents.Count());
1080Assert.Equal(1, project.AnalyzerConfigDocuments.Count());
1243Assert.Equal(1, workspace.CurrentSolution.GetProject(project1.Id).Documents.Count());
1244Assert.Equal(2, workspace.CurrentSolution.GetProject(project1.Id).AdditionalDocuments.Count());
1253Assert.Equal(1, workspace.CurrentSolution.GetProject(project1.Id).Documents.Count());
1254Assert.Equal(1, workspace.CurrentSolution.GetProject(project1.Id).AdditionalDocuments.Count());
1279Assert.Equal(1, workspace.CurrentSolution.GetProject(project1.Id).Documents.Count());
1280Assert.Equal(2, workspace.CurrentSolution.GetProject(project1.Id).AnalyzerConfigDocuments.Count());
1289Assert.Equal(1, workspace.CurrentSolution.GetProject(project1.Id).Documents.Count());
1290Assert.Equal(1, workspace.CurrentSolution.GetProject(project1.Id).AnalyzerConfigDocuments.Count());
1312Assert.Equal(1, workspace.CurrentSolution.GetProject(project1.Id).Documents.Count());
1313Assert.Equal(2, workspace.CurrentSolution.GetProject(project1.Id).AdditionalDocuments.Count());
1319Assert.Equal(1, workspace.CurrentSolution.GetProject(project1.Id).Documents.Count());
1320Assert.Equal(1, workspace.CurrentSolution.GetProject(project1.Id).AdditionalDocuments.Count());
1340Assert.Equal(1, workspace.CurrentSolution.GetProject(project1.Id).Documents.Count());
1341Assert.Equal(2, workspace.CurrentSolution.GetProject(project1.Id).AnalyzerConfigDocuments.Count());
1347Assert.Equal(1, workspace.CurrentSolution.GetProject(project1.Id).Documents.Count());
1348Assert.Equal(1, workspace.CurrentSolution.GetProject(project1.Id).AnalyzerConfigDocuments.Count());
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (9)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (213)
FlowAnalysis\FlowDiagnosticTests.cs (11)
119Assert.Equal(0, errs.Count());
134Assert.Equal(1, errs.Count());
232Assert.Equal(0, this.FlowDiagnostics(comp).Count());
256Assert.Equal(0, this.FlowDiagnostics(comp).Count());
272Assert.Equal(0, this.FlowDiagnostics(comp).Count());
290Assert.Equal(0, this.FlowDiagnostics(comp).Count());
305Assert.Equal(2, this.FlowDiagnostics(comp).Count());
325Assert.Equal(1, this.FlowDiagnostics(comp).Count());
432Assert.Equal(0, this.FlowDiagnostics(comp).Count());
455Assert.Equal(0, this.FlowDiagnostics(comp).Count());
479Assert.Equal(0, this.FlowDiagnostics(comp).Count());
FlowAnalysis\IterationJumpYieldStatementTests.cs (88)
42Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
43Assert.Equal(1, controlFlowAnalysisResults.ExitPoints.Count());
44Assert.Equal(0, controlFlowAnalysisResults.ReturnStatements.Count());
76Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
77Assert.Equal(1, controlFlowAnalysisResults.ExitPoints.Count());
78Assert.Equal(0, controlFlowAnalysisResults.ReturnStatements.Count());
106Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
107Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count());
108Assert.Equal(0, controlFlowAnalysisResults.ReturnStatements.Count());
136Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
137Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count());
138Assert.Equal(0, controlFlowAnalysisResults.ReturnStatements.Count());
166Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
167Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count());
168Assert.Equal(0, controlFlowAnalysisResults.ReturnStatements.Count());
195Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
196Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count());
197Assert.Equal(0, controlFlowAnalysisResults.ReturnStatements.Count());
225Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
226Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count());
227Assert.Equal(0, controlFlowAnalysisResults.ReturnStatements.Count());
254Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
255Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count());
256Assert.Equal(0, controlFlowAnalysisResults.ReturnStatements.Count());
300Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
301Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count());
302Assert.Equal(0, controlFlowAnalysisResults.ReturnStatements.Count());
329Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
330Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count());
331Assert.Equal(0, controlFlowAnalysisResults.ReturnStatements.Count());
358Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
359Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count());
360Assert.Equal(0, controlFlowAnalysisResults.ReturnStatements.Count());
387Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
388Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count());
389Assert.Equal(0, controlFlowAnalysisResults.ReturnStatements.Count());
416Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
417Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count());
418Assert.Equal(0, controlFlowAnalysisResults.ReturnStatements.Count());
445Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
446Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count());
447Assert.Equal(0, controlFlowAnalysisResults.ReturnStatements.Count());
471Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
472Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count());
473Assert.Equal(0, controlFlowAnalysisResults.ReturnStatements.Count());
490Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
491Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count());
492Assert.Equal(0, controlFlowAnalysisResults.ReturnStatements.Count());
509Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
510Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count());
511Assert.Equal(0, controlFlowAnalysisResults.ReturnStatements.Count());
528Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
529Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count());
530Assert.Equal(0, controlFlowAnalysisResults.ReturnStatements.Count());
547Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
548Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count());
549Assert.Equal(0, controlFlowAnalysisResults.ReturnStatements.Count());
569Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
570Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count());
571Assert.Equal(0, controlFlowAnalysisResults.ReturnStatements.Count());
688Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
689Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count());
690Assert.Equal(0, controlFlowAnalysisResults.ReturnStatements.Count());
722Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
723Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count());
724Assert.Equal(0, controlFlowAnalysisResults.ReturnStatements.Count());
884Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
885Assert.Equal(1, controlFlowAnalysisResults.ExitPoints.Count());
916Assert.Equal(2, flow.VariablesDeclared.Count());
938Assert.Equal(1, analysis.ExitPoints.Count());
955Assert.Equal(1, analysis.ExitPoints.Count());
975Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
976Assert.Equal(1, controlFlowAnalysisResults.ExitPoints.Count());
1003Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
1004Assert.Equal(1, controlFlowAnalysisResults.ExitPoints.Count());
1031Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
1032Assert.Equal(1, controlFlowAnalysisResults.ExitPoints.Count());
1059Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
1060Assert.Equal(1, controlFlowAnalysisResults.ExitPoints.Count());
1103Assert.Equal(1, controlFlowAnalysisResults.ExitPoints.Count());
1168Assert.Equal(bkcount[idx], ctrlFlow.ExitPoints.Count());
1233Assert.Equal(2, ctrlFlow.ExitPoints.Count());
1237Assert.Equal(2, ctrlFlow.ExitPoints.Count());
1241Assert.Equal(1, ctrlFlow.ExitPoints.Count());
1323Assert.Equal(2, ctrlFlow.ExitPoints.Count());
1327Assert.Equal(1, ctrlFlow.ExitPoints.Count());
1331Assert.Equal(2, ctrlFlow.ExitPoints.Count());
1335Assert.Equal(1, ctrlFlow.ExitPoints.Count());
FlowAnalysis\RegionAnalysisTests.cs (72)
2874Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
2875Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count());
2876Assert.Equal(0, controlFlowAnalysisResults.ReturnStatements.Count());
2907Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
2908Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count());
2909Assert.Equal(0, controlFlowAnalysisResults.ReturnStatements.Count());
3007Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
3008Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count());
3009Assert.Equal(0, controlFlowAnalysisResults.ReturnStatements.Count());
3036Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
3037Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count());
3038Assert.Equal(0, controlFlowAnalysisResults.ReturnStatements.Count());
3069Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
3070Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count());
3071Assert.Equal(0, controlFlowAnalysisResults.ReturnStatements.Count());
3163Assert.Equal(1, analysis.EntryPoints.Count());
3183Assert.Equal(2, analysis.ExitPoints.Count());
3231Assert.Equal(1, analysis.ExitPoints.Count());
3821Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
3822Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count());
3823Assert.Equal(0, controlFlowAnalysisResults.ReturnStatements.Count());
3853Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
3854Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count());
3855Assert.Equal(0, controlFlowAnalysisResults.ReturnStatements.Count());
3885Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
3886Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count());
3887Assert.Equal(0, controlFlowAnalysisResults.ReturnStatements.Count());
3917Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
3918Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count());
3919Assert.Equal(0, controlFlowAnalysisResults.ReturnStatements.Count());
3982Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
3983Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count());
3984Assert.Equal(0, controlFlowAnalysisResults.ReturnStatements.Count());
4015Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
4016Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count());
4017Assert.Equal(0, controlFlowAnalysisResults.ReturnStatements.Count());
4068Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
4069Assert.Equal(1, controlFlowAnalysisResults.ExitPoints.Count());
4095Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
4096Assert.Equal(1, controlFlowAnalysisResults.ExitPoints.Count());
4204Assert.Equal(2, controlFlowAnalysisResults.ExitPoints.Count());
4273Assert.Equal(1, controlFlowAnalysisResults.ExitPoints.Count());
4296Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
4297Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count());
4298Assert.Equal(0, controlFlowAnalysisResults.ReturnStatements.Count());
4889Assert.Equal(2, analysis.ExitPoints.Count());
4912Assert.Equal(1, analysis.ExitPoints.Count());
4961Assert.Equal(1, analysis.ExitPoints.Count());
4983Assert.Equal(1, analysis.ExitPoints.Count());
5079Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
5080Assert.Equal(1, controlFlowAnalysisResults.ExitPoints.Count());
5494Assert.Equal(4, flowAnalysis.ReadInside.Count());
5495Assert.Equal(5, flowAnalysis.WrittenInside.Count());
5496Assert.Equal(5, flowAnalysis.VariablesDeclared.Count());
5499Assert.Equal(2, flowAnalysis.ReadInside.Count());
5500Assert.Equal(2, flowAnalysis.WrittenInside.Count());
5501Assert.Equal(0, flowAnalysis.VariablesDeclared.Count());
5504Assert.Equal(2, flowAnalysis.ReadInside.Count());
5505Assert.Equal(2, flowAnalysis.WrittenInside.Count());
5506Assert.Equal(1, flowAnalysis.VariablesDeclared.Count());
7421Assert.Equal(0, analysis.EntryPoints.Count());
7443Assert.Equal(0, analysis.EntryPoints.Count());
8945Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
8946Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count());
8971Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
8972Assert.Equal(1, controlFlowAnalysisResults.ExitPoints.Count());
8996Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
8997Assert.Equal(1, controlFlowAnalysisResults.ExitPoints.Count());
9041Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
9042Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count());
9090Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
9091Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count());
FlowAnalysis\TryLockUsingStatementTests.cs (28)
86Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
87Assert.Equal(1, controlFlowAnalysisResults.ExitPoints.Count());
142Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
143Assert.Equal(3, controlFlowAnalysisResults.ExitPoints.Count());
144Assert.Equal(0, controlFlowAnalysisResults.ReturnStatements.Count());
200Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
201Assert.Equal(5, controlFlowAnalysisResults.ExitPoints.Count());
258Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
259Assert.Equal(2, controlFlowAnalysisResults.ExitPoints.Count());
260Assert.Equal(0, controlFlowAnalysisResults.ReturnStatements.Count());
296Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
297Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count());
298Assert.Equal(0, controlFlowAnalysisResults.ReturnStatements.Count());
341Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
342Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count());
343Assert.Equal(0, controlFlowAnalysisResults.ReturnStatements.Count());
402Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
403Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count());
404Assert.Equal(0, controlFlowAnalysisResults.ReturnStatements.Count());
447Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count());
448Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count());
449Assert.Equal(0, controlFlowAnalysisResults.ReturnStatements.Count());
1515Assert.Equal(0, analysisControlFlow.ReturnStatements.Count());
1701Assert.Equal(1, analysisControlFlow.ExitPoints.Count());
1702Assert.Equal(0, analysisControlFlow.EntryPoints.Count());
1740Assert.Equal(0, analysisControlFlow.ExitPoints.Count());
1741Assert.Equal(0, analysisControlFlow.EntryPoints.Count());
1742Assert.Equal(0, analysisControlFlow.ReturnStatements.Count());
Microsoft.CodeAnalysis.CSharp.Features (9)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (15)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (5)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (59)
Semantics\DeconstructionTests.cs (19)
4170Assert.Equal(2, designations.Count());
4238Assert.Equal(4, designations.Count());
4257Assert.Equal(3, declarations.Count());
4373Assert.Equal(4, designations.Count());
4392Assert.Equal(3, declarations.Count());
4516Assert.Equal(3, declarations.Count());
4666Assert.Equal(2, declarations.Count());
4760Assert.Equal(2, declarations.Count());
4838Assert.Equal(2, declarations.Count());
5187Assert.Equal(4, designations.Count());
5206Assert.Equal(3, declarations.Count());
5331Assert.Equal(4, designations.Count());
5350Assert.Equal(3, declarations.Count());
5487Assert.Equal(3, declarations.Count());
5655Assert.Equal(4, designations.Count());
5674Assert.Equal(2, declarations.Count());
5765Assert.Equal(4, designations.Count());
5784Assert.Equal(2, declarations.Count());
5887Assert.Equal(2, declarations.Count());
SourceGeneration\GeneratorDriverTests.cs (11)
137Assert.Equal(2, outputCompilation.SyntaxTrees.Count());
229Assert.Equal(2, outputCompilation1.SyntaxTrees.Count());
230Assert.Equal(2, outputCompilation2.SyntaxTrees.Count());
231Assert.Equal(2, outputCompilation3.SyntaxTrees.Count());
355Assert.Equal(2, outputCompilation.SyntaxTrees.Count());
473Assert.Equal(2, outputCompilation.SyntaxTrees.Count());
512Assert.Equal(1, outputCompilation.SyntaxTrees.Count());
533Assert.Equal(3, outputCompilation.SyntaxTrees.Count());
898Assert.Equal(2, outputCompilation.SyntaxTrees.Count());
1628Assert.Equal(2, outputCompilation.SyntaxTrees.Count());
4562Assert.Equal(2, result.HostOutputs.Keys.Count());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (111)
Compilation\CompilationAPITests.cs (12)
835Assert.InRange(comp.GetDiagnostics().Count(), 0, int.MaxValue);
836Assert.InRange(comp.GetDeclarationDiagnostics().Count(), 0, int.MaxValue);
889Assert.InRange(comp.GetDiagnostics().Count(), 0, int.MaxValue);
894Assert.Equal(0, comp.GetDiagnostics(cancellationToken: default(CancellationToken)).Count());
899Assert.InRange(comp.GetDiagnostics().Count(), 0, int.MaxValue);
902Assert.Equal(0, comp.GetDiagnostics().Count());
907Assert.InRange(error.Count(), 1, int.MaxValue);
910Assert.Equal(0, comp.GetDiagnostics().Count());
1903Assert.Equal(2, comp.References.Count());
2611Assert.Equal(1, type.GetMembers().OfType<IPropertySymbol>().Count());
2632Assert.Equal(2, type.GetMembers().OfType<IPropertySymbol>().Count());
2647Assert.Equal(2, type.GetMembers().OfType<IPropertySymbol>().Count());
Compilation\GetSemanticInfoTests.cs (12)
417Assert.Equal(4, errs.Count());
419Assert.Equal(1, errs.Count());
421Assert.Equal(2, errs.Count());
423Assert.Equal(1, errs.Count());
444Assert.Equal(0, errs.Count());
446Assert.Equal(0, errs.Count());
493Assert.Equal(3, errs.Count());
495Assert.Equal(0, errs.Count());
5784Assert.Equal(3, errs.Count());
5786Assert.Equal(0, errs.Count());
5788Assert.Equal(1, errs.Count());
5790Assert.Equal(2, errs.Count());
Compilation\SemanticModelAPITests.cs (10)
487Assert.Equal(1, errs.Count());
519Assert.Equal(1, errs.Count());
844Assert.Equal(1, typeA.Count());
846Assert.Equal(1, invalid.Count());
1042Assert.Equal(4, anonProps.Count());
1073Assert.Equal(5, anonProps.Count());
1114Assert.Equal(4, anonProps.Count());
1158Assert.Equal(9, anonProps.Count());
1196Assert.Equal(1, paras.Count());
1201Assert.Equal(2, args.Count());
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (3)
1387Assert.Equal(9, symbolsInC.Where(s => s.ContainingType == null || s.ContainingType.SpecialType != SpecialType.System_Object).Count());
1634Assert.Equal(9, symbols.Count()); // A.X, B.Y, C.Z, Object.ToString, Object.Equals, Object.Finalize, Object.GetHashCode, Object.GetType, Object.MemberwiseClone
1637Assert.Equal(9, symbols2.Count()); // A.X, B.Y, C.Z, Object.ToString, Object.Equals, Object.Finalize, Object.GetHashCode, Object.GetType, Object.MemberwiseClone
DocumentationComments\ParameterTests.cs (16)
36Assert.Equal(2, nameSyntaxes.Count());
59Assert.Equal(2, nameSyntaxes.Count());
83Assert.Equal(2, nameSyntaxes.Count());
107Assert.Equal(2, nameSyntaxes.Count());
136Assert.Equal(2, nameSyntaxes.Count());
161Assert.Equal(2, nameSyntaxes.Count());
186Assert.Equal(2, nameSyntaxes.Count());
207Assert.Equal(2, nameSyntaxes.Count());
228Assert.Equal(2, nameSyntaxes.Count());
249Assert.Equal(2, nameSyntaxes.Count());
274Assert.Equal(2, nameSyntaxes.Count());
300Assert.Equal(3, nameSyntaxes.Count());
375Assert.Equal(2, nameSyntaxes.Count());
628Assert.Equal(1, GetNameAttributeValues(compilation).Count());
669Assert.Equal(0, GetNameAttributeValues(compilation).Count());
714Assert.Equal(0, GetNameAttributeValues(compilation).Count());
Symbols\Source\MethodTests.cs (13)
509Assert.Equal(0, comp.GetDeclarationDiagnostics().Count());
585Assert.Equal(0, comp.GetDiagnostics().Count());
769Assert.Equal(0, comp1.GetDiagnostics().Count());
770Assert.Equal(0, comp2.GetDiagnostics().Count());
771Assert.Equal(0, comp.GetDiagnostics().Count());
1058Assert.Equal(0, comp1.GetDiagnostics().Count());
1059Assert.Equal(0, comp2.GetDiagnostics().Count());
1060Assert.Equal(0, comp.GetDiagnostics().Count());
1163Assert.Equal(0, comp.GetDiagnostics().Count());
1257Assert.Equal(0, comp.GetDiagnostics().Count());
1462Assert.Equal(0, comp.GetDeclarationDiagnostics().Count());
1500Assert.Equal(0, comp.GetDeclarationDiagnostics().Count());
1544Assert.Equal(0, comp.GetDeclarationDiagnostics().Count());
Symbols\TypeTests.cs (10)
200Assert.Equal(0, comp1.GetDiagnostics().Count());
201Assert.Equal(0, comp2.GetDiagnostics().Count());
202Assert.Equal(0, comp.GetDiagnostics().Count());
382Assert.Equal(0, comp.GetDiagnostics().Count());
401Assert.Equal(0, comp.GetDiagnostics().Count());
420Assert.Equal(0, comp.GetDiagnostics().Count());
443Assert.Equal(0, comp.GetDiagnostics().Count());
1140Assert.Equal(0, comp.GetDeclarationDiagnostics().Count());
1154Assert.Equal(0, comp.GetDeclarationDiagnostics().Count());
1236Assert.Equal(4, comp.GetDiagnostics().Count());
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (37)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (9)
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
Microsoft.CodeAnalysis.EditorFeatures (13)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (12)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (28)
Tagging\TagSpanIntervalTreeTests.cs (7)
87Assert.Equal(50, GetIntersectingSpans(tree, new SnapshotSpan(buffer.CurrentSnapshot, 150, 50)).Count());
90Assert.Equal(26, GetIntersectingSpans(tree, new SnapshotSpan(buffer.CurrentSnapshot, 175, 25)).Count());
101Assert.Equal(1, GetIntersectingSpans(tree, new SnapshotSpan(buffer.CurrentSnapshot, 0, 1)).Count());
102Assert.Equal(1, GetIntersectingSpans(tree, new SnapshotSpan(buffer.CurrentSnapshot, 50, 1)).Count());
105Assert.Equal(2, GetIntersectingSpans(tree, new SnapshotSpan(buffer.CurrentSnapshot, 100, 1)).Count());
119Assert.Equal(51, GetIntersectingSpans(tree, new SnapshotSpan(buffer.CurrentSnapshot, 0, 1)).Count());
133Assert.Equal(51, GetIntersectingSpans(tree, new SnapshotSpan(buffer.CurrentSnapshot, 99, 1)).Count());
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Microsoft.CodeAnalysis.Features (12)
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
Microsoft.CodeAnalysis.LanguageServer (1)
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Microsoft.CodeAnalysis.LanguageServer.UnitTests (1)
Microsoft.CodeAnalysis.Test.Utilities (13)
Microsoft.CodeAnalysis.UnitTests (42)
Microsoft.CodeAnalysis.VisualBasic (15)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (155)
FlowAnalysis\IterationJumpYieldStatementTests.vb (70)
41Assert.Equal(0, controlFlowAnalysis.ExitPoints.Count())
42Assert.Equal(0, controlFlowAnalysis.EntryPoints.Count())
63Assert.Equal(0, controlFlowAnalysis.ExitPoints.Count())
64Assert.Equal(0, controlFlowAnalysis.EntryPoints.Count())
91Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count())
92Assert.Equal(1, controlFlowAnalysisResults.ExitPoints.Count())
127Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count())
128Assert.Equal(1, controlFlowAnalysisResults.ExitPoints.Count())
158Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count())
159Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count())
188Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count())
189Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count())
219Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count())
220Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count())
251Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count())
252Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count())
283Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count())
284Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count())
334Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count())
335Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count())
365Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count())
366Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count())
396Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count())
397Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count())
429Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count())
430Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count())
460Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count())
461Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count())
483Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count())
484Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count())
506Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count())
507Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count())
529Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count())
530Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count())
550Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count())
551Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count())
574Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count())
575Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count())
613Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count())
614Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count())
655Assert.Equal(1, controlFlowAnalysisResults.EntryPoints.Count())
656Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count())
786Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count)
787Assert.Equal(3, controlFlowAnalysisResults.ExitPoints.Count)
794Assert.Equal(1, dataFlowAnalysisResults.DataFlowsIn.Count)
797Assert.Equal(1, dataFlowAnalysisResults.ReadInside.Count)
799Assert.Equal(1, dataFlowAnalysisResults.ReadOutside.Count)
803Assert.Equal(1, dataFlowAnalysisResults.WrittenOutside.Count)
836Assert.Equal(2, dataFlowAnalysisResults.ReadInside.Count)
839Assert.Equal(2, dataFlowAnalysisResults.WrittenInside.Count)
874Assert.Equal(0, dataFlowAnalysisResults.WrittenInside.Count)
1347Assert.Equal(2, flow.VariablesDeclared.Count)
1405Assert.Equal(2, controlFlowAnalysis.ExitPoints.Count())
1406Assert.Equal(1, controlFlowAnalysis.EntryPoints.Count())
1443Assert.Equal(1, controlFlowAnalysis.ExitPoints.Count())
1444Assert.Equal(1, controlFlowAnalysis.EntryPoints.Count())
1492Assert.Equal(1, analysis.ExitPoints.Count())
1511Assert.Equal(1, analysis.ExitPoints.Count())
1531Assert.Equal(1, analysis.ExitPoints.Count())
1532Assert.Equal(0, analysis.EntryPoints.Count())
1554Assert.Equal(1, analysis.ExitPoints.Count())
1555Assert.Equal(0, analysis.EntryPoints.Count())
1577Assert.Equal(1, analysis.ExitPoints.Count())
1578Assert.Equal(0, analysis.EntryPoints.Count())
1600Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count())
1601Assert.Equal(1, controlFlowAnalysisResults.ExitPoints.Count())
1630Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count())
1631Assert.Equal(1, controlFlowAnalysisResults.ExitPoints.Count())
1661Assert.Equal(0, controlFlowAnalysisResults.EntryPoints.Count())
1662Assert.Equal(1, controlFlowAnalysisResults.ExitPoints.Count())
FlowAnalysis\TryLockUsingStatementTests.vb (81)
55Assert.Equal(0, controlFlowAnalysis.EntryPoints.Count())
56Assert.Equal(2, controlFlowAnalysis.ExitPoints.Count())
105Assert.Equal(1, analysis.EntryPoints.Count())
106Assert.Equal(0, analysis.ExitPoints.Count())
142Assert.Equal(1, controlFlowAnalysis.EntryPoints.Count())
143Assert.Equal(1, controlFlowAnalysis.ExitPoints.Count())
193Assert.Equal(2, controlFlowAnalysis.ExitPoints.Count())
240Assert.Equal(2, controlFlowAnalysis.ExitPoints.Count())
297Assert.Equal(2, controlFlowAnalysis.ExitPoints.Count())
356Assert.Equal(1, controlFlowAnalysis.ExitPoints.Count())
413Assert.Equal(0, controlFlowAnalysis.ExitPoints.Count())
469Assert.Equal(3, controlFlowAnalysis.ExitPoints.Count())
525Assert.Equal(2, controlFlowAnalysis.ExitPoints.Count())
1031Assert.Equal(1, controlFlowAnalysis.ExitPoints.Count)
1739Assert.Equal(0, dataFlowAnalysisResults.AlwaysAssigned.Count)
1740Assert.Equal(0, dataFlowAnalysisResults.Captured.Count)
1742Assert.Equal(2, dataFlowAnalysisResults.DataFlowsIn.Count)
1746Assert.Equal(0, dataFlowAnalysisResults.DataFlowsOut.Count)
1748Assert.Equal(2, dataFlowAnalysisResults.ReadInside.Count)
1752Assert.Equal(0, dataFlowAnalysisResults.ReadOutside.Count)
1753Assert.Equal(0, dataFlowAnalysisResults.VariablesDeclared.Count)
1754Assert.Equal(0, dataFlowAnalysisResults.WrittenInside.Count)
1756Assert.Equal(2, dataFlowAnalysisResults.WrittenOutside.Count)
1788Assert.Equal(0, dataFlowAnalysisResults.AlwaysAssigned.Count)
1789Assert.Equal(0, dataFlowAnalysisResults.Captured.Count)
1791Assert.Equal(1, dataFlowAnalysisResults.DataFlowsIn.Count)
1794Assert.Equal(0, dataFlowAnalysisResults.DataFlowsOut.Count)
1796Assert.Equal(1, dataFlowAnalysisResults.ReadInside.Count)
1799Assert.Equal(1, dataFlowAnalysisResults.ReadOutside.Count)
1802Assert.Equal(0, dataFlowAnalysisResults.VariablesDeclared.Count)
1803Assert.Equal(0, dataFlowAnalysisResults.WrittenInside.Count)
1805Assert.Equal(2, dataFlowAnalysisResults.WrittenOutside.Count)
1839Assert.Equal(0, dataFlowAnalysisResults.AlwaysAssigned.Count)
1840Assert.Equal(0, dataFlowAnalysisResults.Captured.Count)
1842Assert.Equal(2, dataFlowAnalysisResults.DataFlowsIn.Count)
1846Assert.Equal(0, dataFlowAnalysisResults.DataFlowsOut.Count)
1848Assert.Equal(2, dataFlowAnalysisResults.ReadInside.Count)
1852Assert.Equal(0, dataFlowAnalysisResults.ReadOutside.Count)
1853Assert.Equal(0, dataFlowAnalysisResults.VariablesDeclared.Count)
1854Assert.Equal(0, dataFlowAnalysisResults.WrittenInside.Count)
1856Assert.Equal(2, dataFlowAnalysisResults.WrittenOutside.Count)
2120Assert.Equal(0, controlflowAnalysis.EntryPoints.Count)
2121Assert.Equal(1, controlflowAnalysis.ExitPoints.Count)
2164Assert.Equal(0, controlflowAnalysis.EntryPoints.Count)
2165Assert.Equal(1, controlflowAnalysis.ExitPoints.Count)
2203Assert.Equal(2, dataFlowAnalysisResults.AlwaysAssigned.Count)
2207Assert.Equal(0, dataFlowAnalysisResults.Captured.Count)
2209Assert.Equal(1, dataFlowAnalysisResults.DataFlowsIn.Count)
2212Assert.Equal(0, dataFlowAnalysisResults.DataFlowsOut.Count)
2214Assert.Equal(3, dataFlowAnalysisResults.ReadInside.Count)
2219Assert.Equal(0, dataFlowAnalysisResults.ReadOutside.Count)
2221Assert.Equal(2, dataFlowAnalysisResults.VariablesDeclared.Count)
2225Assert.Equal(2, dataFlowAnalysisResults.WrittenInside.Count)
2229Assert.Equal(1, dataFlowAnalysisResults.WrittenOutside.Count)
2270Assert.Equal(0, dataFlowAnalysisResults.AlwaysAssigned.Count)
2271Assert.Equal(0, dataFlowAnalysisResults.Captured.Count)
2273Assert.Equal(1, dataFlowAnalysisResults.DataFlowsIn.Count)
2276Assert.Equal(0, dataFlowAnalysisResults.DataFlowsOut.Count)
2278Assert.Equal(1, dataFlowAnalysisResults.ReadInside.Count)
2281Assert.Equal(0, dataFlowAnalysisResults.ReadOutside.Count)
2283Assert.Equal(0, dataFlowAnalysisResults.VariablesDeclared.Count)
2285Assert.Equal(0, dataFlowAnalysisResults.WrittenInside.Count)
2287Assert.Equal(1, dataFlowAnalysisResults.WrittenOutside.Count)
2328Assert.Equal(0, dataFlowAnalysisResults.AlwaysAssigned.Count)
2329Assert.Equal(0, dataFlowAnalysisResults.Captured.Count)
2331Assert.Equal(1, dataFlowAnalysisResults.DataFlowsIn.Count)
2334Assert.Equal(0, dataFlowAnalysisResults.DataFlowsOut.Count)
2336Assert.Equal(1, dataFlowAnalysisResults.ReadInside.Count)
2339Assert.Equal(2, dataFlowAnalysisResults.ReadOutside.Count)
2343Assert.Equal(0, dataFlowAnalysisResults.VariablesDeclared.Count)
2345Assert.Equal(0, dataFlowAnalysisResults.WrittenInside.Count)
2347Assert.Equal(2, dataFlowAnalysisResults.WrittenOutside.Count)
2386Assert.Equal(0, dataFlowAnalysisResults.AlwaysAssigned.Count)
2387Assert.Equal(0, dataFlowAnalysisResults.Captured.Count)
2389Assert.Equal(1, dataFlowAnalysisResults.DataFlowsIn.Count)
2392Assert.Equal(0, dataFlowAnalysisResults.DataFlowsOut.Count)
2394Assert.Equal(3, dataFlowAnalysisResults.ReadInside.Count)
2399Assert.Equal(0, dataFlowAnalysisResults.ReadOutside.Count)
2401Assert.Equal(2, dataFlowAnalysisResults.VariablesDeclared.Count)
2405Assert.Equal(2, dataFlowAnalysisResults.WrittenInside.Count)
2409Assert.Equal(1, dataFlowAnalysisResults.WrittenOutside.Count)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (13)
Microsoft.CodeAnalysis.Workspaces (19)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (3)
Microsoft.CodeAnalysis.Workspaces.UnitTests (43)
FindReferencesTests.cs (16)
108Assert.Equal(3, result[0].Locations.Count()); // 3 locations found
135Assert.Equal(1, typeSymbol.Locations.Count());
189Assert.Equal(expected: 2, actual: references.ElementAt(0).Locations.Count());
194Assert.Equal(expected: 2, actual: references.ElementAt(0).Locations.Count());
226Assert.Equal(expected: 0, actual: references.ElementAt(0).Locations.Count());
293Assert.Equal(2, references.ElementAt(0).Locations.Count());
298Assert.Equal(2, references.ElementAt(0).Locations.Count());
447Assert.Equal(5, references.Count());
489Assert.Equal(2, refsFromVirtual.Count());
493Assert.Equal(2, refsFromOverride.Count());
551Assert.Equal(1, typeResult.Locations.Count());
552Assert.Equal(1, constructorResult.Locations.Count());
584Assert.Equal(1, typeResult.Locations.Count());
585Assert.Equal(1, constructorResult.Locations.Count());
626Assert.Equal(2, typeResult.Locations.Count());
627Assert.Equal(1, constructorResult.Locations.Count());
SolutionTests\SolutionTests.cs (11)
2559Assert.Equal(2, solution.GetProjectsByName("name").Count());
3084Assert.Equal(2, sol.Projects.Count());
3092Assert.Equal(1, sol2.Projects.Count());
3110Assert.Equal(2, sol.Projects.Count());
3117Assert.Equal(1, sol2.Projects.Count());
3124Assert.Equal(2, sol3.Projects.Count());
3485Assert.Equal(1, compilation.SyntaxTrees.Count());
4297Assert.Equal(2, frozenDocument.Project.Documents.Count());
4325Assert.Equal(2, frozenDocument.Project.Documents.Count());
4614Assert.Equal(documentIds.Count(), syntaxTrees.Count());
Microsoft.Data.Analysis.Tests (218)
DataFrameColumn.BinaryOperationTests.cs (209)
33Assert.Equal(columnResult.Length, verify.Count());
46Assert.Equal(columnResult.Length, verify.Count());
59Assert.Equal(columnResult.Length, verify.Count());
72Assert.Equal(columnResult.Length, verify.Count());
85Assert.Equal(columnResult.Length, verify.Count());
98Assert.Equal(columnResult.Length, verify.Count());
111Assert.Equal(columnResult.Length, verify.Count());
124Assert.Equal(columnResult.Length, verify.Count());
137Assert.Equal(columnResult.Length, verify.Count());
150Assert.Equal(columnResult.Length, verify.Count());
163Assert.Equal(columnResult.Length, verify.Count());
175Assert.Equal(columnResult.Length, verify.Count());
187Assert.Equal(columnResult.Length, verify.Count());
199Assert.Equal(columnResult.Length, verify.Count());
211Assert.Equal(columnResult.Length, verify.Count());
223Assert.Equal(columnResult.Length, verify.Count());
235Assert.Equal(columnResult.Length, verify.Count());
247Assert.Equal(columnResult.Length, verify.Count());
259Assert.Equal(columnResult.Length, verify.Count());
271Assert.Equal(columnResult.Length, verify.Count());
283Assert.Equal(columnResult.Length, verify.Count());
295Assert.Equal(columnResult.Length, verify.Count());
307Assert.Equal(columnResult.Length, verify.Count());
319Assert.Equal(columnResult.Length, verify.Count());
331Assert.Equal(columnResult.Length, verify.Count());
343Assert.Equal(columnResult.Length, verify.Count());
355Assert.Equal(columnResult.Length, verify.Count());
367Assert.Equal(columnResult.Length, verify.Count());
379Assert.Equal(columnResult.Length, verify.Count());
391Assert.Equal(columnResult.Length, verify.Count());
403Assert.Equal(columnResult.Length, verify.Count());
415Assert.Equal(columnResult.Length, verify.Count());
427Assert.Equal(columnResult.Length, verify.Count());
440Assert.Equal(columnResult.Length, verify.Count());
453Assert.Equal(columnResult.Length, verify.Count());
466Assert.Equal(columnResult.Length, verify.Count());
479Assert.Equal(columnResult.Length, verify.Count());
492Assert.Equal(columnResult.Length, verify.Count());
505Assert.Equal(columnResult.Length, verify.Count());
518Assert.Equal(columnResult.Length, verify.Count());
531Assert.Equal(columnResult.Length, verify.Count());
544Assert.Equal(columnResult.Length, verify.Count());
557Assert.Equal(columnResult.Length, verify.Count());
570Assert.Equal(columnResult.Length, verify.Count());
582Assert.Equal(columnResult.Length, verify.Count());
594Assert.Equal(columnResult.Length, verify.Count());
606Assert.Equal(columnResult.Length, verify.Count());
618Assert.Equal(columnResult.Length, verify.Count());
630Assert.Equal(columnResult.Length, verify.Count());
642Assert.Equal(columnResult.Length, verify.Count());
654Assert.Equal(columnResult.Length, verify.Count());
666Assert.Equal(columnResult.Length, verify.Count());
678Assert.Equal(columnResult.Length, verify.Count());
690Assert.Equal(columnResult.Length, verify.Count());
702Assert.Equal(columnResult.Length, verify.Count());
714Assert.Equal(columnResult.Length, verify.Count());
726Assert.Equal(columnResult.Length, verify.Count());
738Assert.Equal(columnResult.Length, verify.Count());
750Assert.Equal(columnResult.Length, verify.Count());
762Assert.Equal(columnResult.Length, verify.Count());
774Assert.Equal(columnResult.Length, verify.Count());
786Assert.Equal(columnResult.Length, verify.Count());
798Assert.Equal(columnResult.Length, verify.Count());
810Assert.Equal(columnResult.Length, verify.Count());
822Assert.Equal(columnResult.Length, verify.Count());
834Assert.Equal(columnResult.Length, verify.Count());
847Assert.Equal(columnResult.Length, verify.Count());
860Assert.Equal(columnResult.Length, verify.Count());
873Assert.Equal(columnResult.Length, verify.Count());
886Assert.Equal(columnResult.Length, verify.Count());
899Assert.Equal(columnResult.Length, verify.Count());
912Assert.Equal(columnResult.Length, verify.Count());
925Assert.Equal(columnResult.Length, verify.Count());
938Assert.Equal(columnResult.Length, verify.Count());
951Assert.Equal(columnResult.Length, verify.Count());
964Assert.Equal(columnResult.Length, verify.Count());
977Assert.Equal(columnResult.Length, verify.Count());
989Assert.Equal(columnResult.Length, verify.Count());
1001Assert.Equal(columnResult.Length, verify.Count());
1013Assert.Equal(columnResult.Length, verify.Count());
1025Assert.Equal(columnResult.Length, verify.Count());
1037Assert.Equal(columnResult.Length, verify.Count());
1049Assert.Equal(columnResult.Length, verify.Count());
1061Assert.Equal(columnResult.Length, verify.Count());
1073Assert.Equal(columnResult.Length, verify.Count());
1085Assert.Equal(columnResult.Length, verify.Count());
1097Assert.Equal(columnResult.Length, verify.Count());
1109Assert.Equal(columnResult.Length, verify.Count());
1121Assert.Equal(columnResult.Length, verify.Count());
1133Assert.Equal(columnResult.Length, verify.Count());
1145Assert.Equal(columnResult.Length, verify.Count());
1157Assert.Equal(columnResult.Length, verify.Count());
1169Assert.Equal(columnResult.Length, verify.Count());
1181Assert.Equal(columnResult.Length, verify.Count());
1193Assert.Equal(columnResult.Length, verify.Count());
1205Assert.Equal(columnResult.Length, verify.Count());
1217Assert.Equal(columnResult.Length, verify.Count());
1229Assert.Equal(columnResult.Length, verify.Count());
1241Assert.Equal(columnResult.Length, verify.Count());
1254Assert.Equal(columnResult.Length, verify.Count());
1267Assert.Equal(columnResult.Length, verify.Count());
1280Assert.Equal(columnResult.Length, verify.Count());
1293Assert.Equal(columnResult.Length, verify.Count());
1306Assert.Equal(columnResult.Length, verify.Count());
1319Assert.Equal(columnResult.Length, verify.Count());
1332Assert.Equal(columnResult.Length, verify.Count());
1345Assert.Equal(columnResult.Length, verify.Count());
1358Assert.Equal(columnResult.Length, verify.Count());
1371Assert.Equal(columnResult.Length, verify.Count());
1384Assert.Equal(columnResult.Length, verify.Count());
1396Assert.Equal(columnResult.Length, verify.Count());
1408Assert.Equal(columnResult.Length, verify.Count());
1420Assert.Equal(columnResult.Length, verify.Count());
1432Assert.Equal(columnResult.Length, verify.Count());
1444Assert.Equal(columnResult.Length, verify.Count());
1456Assert.Equal(columnResult.Length, verify.Count());
1468Assert.Equal(columnResult.Length, verify.Count());
1480Assert.Equal(columnResult.Length, verify.Count());
1492Assert.Equal(columnResult.Length, verify.Count());
1504Assert.Equal(columnResult.Length, verify.Count());
1516Assert.Equal(columnResult.Length, verify.Count());
1528Assert.Equal(columnResult.Length, verify.Count());
1540Assert.Equal(columnResult.Length, verify.Count());
1552Assert.Equal(columnResult.Length, verify.Count());
1564Assert.Equal(columnResult.Length, verify.Count());
1576Assert.Equal(columnResult.Length, verify.Count());
1588Assert.Equal(columnResult.Length, verify.Count());
1600Assert.Equal(columnResult.Length, verify.Count());
1612Assert.Equal(columnResult.Length, verify.Count());
1624Assert.Equal(columnResult.Length, verify.Count());
1636Assert.Equal(columnResult.Length, verify.Count());
1648Assert.Equal(columnResult.Length, verify.Count());
1661Assert.Equal(columnResult.Length, verify.Count());
1674Assert.Equal(columnResult.Length, verify.Count());
1687Assert.Equal(columnResult.Length, verify.Count());
1700Assert.Equal(columnResult.Length, verify.Count());
1713Assert.Equal(columnResult.Length, verify.Count());
1726Assert.Equal(columnResult.Length, verify.Count());
1739Assert.Equal(columnResult.Length, verify.Count());
1752Assert.Equal(columnResult.Length, verify.Count());
1765Assert.Equal(columnResult.Length, verify.Count());
1778Assert.Equal(columnResult.Length, verify.Count());
1791Assert.Equal(columnResult.Length, verify.Count());
1803Assert.Equal(columnResult.Length, verify.Count());
1815Assert.Equal(columnResult.Length, verify.Count());
1827Assert.Equal(columnResult.Length, verify.Count());
1839Assert.Equal(columnResult.Length, verify.Count());
1851Assert.Equal(columnResult.Length, verify.Count());
1863Assert.Equal(columnResult.Length, verify.Count());
1875Assert.Equal(columnResult.Length, verify.Count());
1887Assert.Equal(columnResult.Length, verify.Count());
1899Assert.Equal(columnResult.Length, verify.Count());
1911Assert.Equal(columnResult.Length, verify.Count());
1923Assert.Equal(columnResult.Length, verify.Count());
1935Assert.Equal(columnResult.Length, verify.Count());
1947Assert.Equal(columnResult.Length, verify.Count());
1959Assert.Equal(columnResult.Length, verify.Count());
1971Assert.Equal(columnResult.Length, verify.Count());
1983Assert.Equal(columnResult.Length, verify.Count());
1995Assert.Equal(columnResult.Length, verify.Count());
2007Assert.Equal(columnResult.Length, verify.Count());
2019Assert.Equal(columnResult.Length, verify.Count());
2031Assert.Equal(columnResult.Length, verify.Count());
2043Assert.Equal(columnResult.Length, verify.Count());
2055Assert.Equal(columnResult.Length, verify.Count());
2068Assert.Equal(columnResult.Length, verify.Count());
2083Assert.Equal(columnResult.Length, verify.Count());
2098Assert.Equal(columnResult.Length, verify.Count());
2113Assert.Equal(columnResult.Length, verify.Count());
2128Assert.Equal(columnResult.Length, verify.Count());
2143Assert.Equal(columnResult.Length, verify.Count());
2158Assert.Equal(columnResult.Length, verify.Count());
2173Assert.Equal(columnResult.Length, verify.Count());
2188Assert.Equal(columnResult.Length, verify.Count());
2203Assert.Equal(columnResult.Length, verify.Count());
2218Assert.Equal(columnResult.Length, verify.Count());
2232Assert.Equal(columnResult.Length, verify.Count());
2244Assert.Equal(columnResult.Length, verify.Count());
2256Assert.Equal(columnResult.Length, verify.Count());
2268Assert.Equal(columnResult.Length, verify.Count());
2280Assert.Equal(columnResult.Length, verify.Count());
2292Assert.Equal(columnResult.Length, verify.Count());
2304Assert.Equal(columnResult.Length, verify.Count());
2316Assert.Equal(columnResult.Length, verify.Count());
2328Assert.Equal(columnResult.Length, verify.Count());
2340Assert.Equal(columnResult.Length, verify.Count());
2352Assert.Equal(columnResult.Length, verify.Count());
2365Assert.Equal(columnResult.Length, verify.Count());
2380Assert.Equal(columnResult.Length, verify.Count());
2395Assert.Equal(columnResult.Length, verify.Count());
2410Assert.Equal(columnResult.Length, verify.Count());
2425Assert.Equal(columnResult.Length, verify.Count());
2440Assert.Equal(columnResult.Length, verify.Count());
2455Assert.Equal(columnResult.Length, verify.Count());
2470Assert.Equal(columnResult.Length, verify.Count());
2485Assert.Equal(columnResult.Length, verify.Count());
2500Assert.Equal(columnResult.Length, verify.Count());
2515Assert.Equal(columnResult.Length, verify.Count());
2529Assert.Equal(columnResult.Length, verify.Count());
2541Assert.Equal(columnResult.Length, verify.Count());
2553Assert.Equal(columnResult.Length, verify.Count());
2565Assert.Equal(columnResult.Length, verify.Count());
2577Assert.Equal(columnResult.Length, verify.Count());
2589Assert.Equal(columnResult.Length, verify.Count());
2601Assert.Equal(columnResult.Length, verify.Count());
2613Assert.Equal(columnResult.Length, verify.Count());
2625Assert.Equal(columnResult.Length, verify.Count());
2637Assert.Equal(columnResult.Length, verify.Count());
2649Assert.Equal(columnResult.Length, verify.Count());
Microsoft.DotNet.Arcade.Sdk (1)
Microsoft.DotNet.Build.Tasks.Feed.Tests (7)
Microsoft.DotNet.Build.Tasks.Installers (3)
Microsoft.DotNet.Build.Tasks.Packaging (2)
Microsoft.DotNet.Deployment.Tasks.Links (6)
Microsoft.DotNet.GenFacades (3)
Microsoft.DotNet.Helix.Sdk (3)
Microsoft.DotNet.Helix.Sdk.Tests (2)
Microsoft.DotNet.NuGetRepack.Tests (2)
Microsoft.DotNet.SignCheck (3)
Microsoft.DotNet.SignCheckLibrary (7)
Microsoft.DotNet.SignTool (3)
Microsoft.DotNet.SignTool.Tests (3)
Microsoft.DotNet.SourceBuild.Tasks (1)
Microsoft.DotNet.VersionTools (17)
Microsoft.DotNet.XUnitExtensions (5)
Microsoft.Extensions.Diagnostics.Probes.Tests (3)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
Microsoft.Extensions.Features (1)
Microsoft.Extensions.FileProviders.Embedded (1)
Microsoft.Extensions.FileSystemGlobbing (1)
Microsoft.Extensions.Http.Resilience.Tests (2)
Microsoft.Extensions.Identity.Core (1)
Microsoft.Interop.ComInterfaceGenerator (1)
Microsoft.Maui.Controls (2)
Microsoft.Maui.Resizetizer (1)
Microsoft.ML.AutoML (45)
Microsoft.ML.AutoML.Samples (5)
Microsoft.ML.AutoML.Tests (29)
Microsoft.ML.CodeGenerator (23)
Microsoft.ML.CodeGenerator.Tests (1)
Microsoft.ML.Core (4)
Microsoft.ML.Data (19)
Microsoft.ML.Ensemble (1)
Microsoft.ML.Fairlearn (7)
Microsoft.ML.FastTree (2)
Microsoft.ML.GenAI.Core (9)
Microsoft.ML.GenAI.Core.Tests (1)
Microsoft.ML.GenAI.Mistral (3)
Microsoft.ML.GenAI.Phi.Tests (2)
Microsoft.ML.IntegrationTests (4)
Microsoft.ML.OnnxConverter (13)
OnnxContextImpl.cs (7)
347_host.Check(dims.Aggregate((x, y) => x * y) == values.Count(), "Number of elements doesn't match tensor size");
358_host.Check(dims.Aggregate((x, y) => x * y) == values.Count(), "Number of elements doesn't match tensor size");
369_host.Check(dims.Aggregate((x, y) => x * y) == values.Count(), "Number of elements doesn't match tensor size");
380_host.Check(dims.Aggregate((x, y) => x * y) == values.Count(), "Number of elements doesn't match tensor size");
391_host.Check(dims.Aggregate((x, y) => x * y) == values.Count(), "Number of elements doesn't match tensor size");
402_host.Check(dims.Aggregate((x, y) => x * y) == values.Count(), "Number of elements doesn't match tensor size");
413_host.Check(dims.Aggregate((x, y) => x * y) == values.Count(), "Number of elements doesn't match tensor size");
Microsoft.ML.OnnxTransformer (8)
Microsoft.ML.OnnxTransformerTest (9)
Microsoft.ML.Parquet (8)
Microsoft.ML.Recommender (1)
Microsoft.ML.SearchSpace (6)
Microsoft.ML.StandardTrainers (1)
Microsoft.ML.Sweeper (3)
Microsoft.ML.TensorFlow.Tests (1)
Microsoft.ML.Tests (21)
Microsoft.ML.TimeSeries (2)
Microsoft.ML.Tokenizers (4)
Microsoft.ML.TorchSharp (7)
Microsoft.ML.TorchSharp.Tests (4)
Microsoft.ML.Transforms (4)
Microsoft.ML.Vision (2)
Microsoft.VisualStudio.LanguageServices (7)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
Replay (1)
Roslyn.VisualStudio.Next.UnitTests (2)
RunTests (3)
Sample (1)
System.ComponentModel.Composition (2)
System.Composition.TypedParts (1)
System.Linq (10)
System.Private.Windows.Core.TestUtilities (2)
System.ServiceModel.Primitives.Tests (2)
System.Windows.Forms (4)
System.Windows.Forms.Design (1)
vbc (1)
VBCSCompiler (1)