1785 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 (34)
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 (110)
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 (13)
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.Test.Utilities (13)
Microsoft.CodeAnalysis.UnitTests (38)
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 (20)
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)
28Assert.Equal(columnResult.Length, verify.Count());
41Assert.Equal(columnResult.Length, verify.Count());
54Assert.Equal(columnResult.Length, verify.Count());
67Assert.Equal(columnResult.Length, verify.Count());
80Assert.Equal(columnResult.Length, verify.Count());
93Assert.Equal(columnResult.Length, verify.Count());
106Assert.Equal(columnResult.Length, verify.Count());
119Assert.Equal(columnResult.Length, verify.Count());
132Assert.Equal(columnResult.Length, verify.Count());
145Assert.Equal(columnResult.Length, verify.Count());
158Assert.Equal(columnResult.Length, verify.Count());
170Assert.Equal(columnResult.Length, verify.Count());
182Assert.Equal(columnResult.Length, verify.Count());
194Assert.Equal(columnResult.Length, verify.Count());
206Assert.Equal(columnResult.Length, verify.Count());
218Assert.Equal(columnResult.Length, verify.Count());
230Assert.Equal(columnResult.Length, verify.Count());
242Assert.Equal(columnResult.Length, verify.Count());
254Assert.Equal(columnResult.Length, verify.Count());
266Assert.Equal(columnResult.Length, verify.Count());
278Assert.Equal(columnResult.Length, verify.Count());
290Assert.Equal(columnResult.Length, verify.Count());
302Assert.Equal(columnResult.Length, verify.Count());
314Assert.Equal(columnResult.Length, verify.Count());
326Assert.Equal(columnResult.Length, verify.Count());
338Assert.Equal(columnResult.Length, verify.Count());
350Assert.Equal(columnResult.Length, verify.Count());
362Assert.Equal(columnResult.Length, verify.Count());
374Assert.Equal(columnResult.Length, verify.Count());
386Assert.Equal(columnResult.Length, verify.Count());
398Assert.Equal(columnResult.Length, verify.Count());
410Assert.Equal(columnResult.Length, verify.Count());
422Assert.Equal(columnResult.Length, verify.Count());
435Assert.Equal(columnResult.Length, verify.Count());
448Assert.Equal(columnResult.Length, verify.Count());
461Assert.Equal(columnResult.Length, verify.Count());
474Assert.Equal(columnResult.Length, verify.Count());
487Assert.Equal(columnResult.Length, verify.Count());
500Assert.Equal(columnResult.Length, verify.Count());
513Assert.Equal(columnResult.Length, verify.Count());
526Assert.Equal(columnResult.Length, verify.Count());
539Assert.Equal(columnResult.Length, verify.Count());
552Assert.Equal(columnResult.Length, verify.Count());
565Assert.Equal(columnResult.Length, verify.Count());
577Assert.Equal(columnResult.Length, verify.Count());
589Assert.Equal(columnResult.Length, verify.Count());
601Assert.Equal(columnResult.Length, verify.Count());
613Assert.Equal(columnResult.Length, verify.Count());
625Assert.Equal(columnResult.Length, verify.Count());
637Assert.Equal(columnResult.Length, verify.Count());
649Assert.Equal(columnResult.Length, verify.Count());
661Assert.Equal(columnResult.Length, verify.Count());
673Assert.Equal(columnResult.Length, verify.Count());
685Assert.Equal(columnResult.Length, verify.Count());
697Assert.Equal(columnResult.Length, verify.Count());
709Assert.Equal(columnResult.Length, verify.Count());
721Assert.Equal(columnResult.Length, verify.Count());
733Assert.Equal(columnResult.Length, verify.Count());
745Assert.Equal(columnResult.Length, verify.Count());
757Assert.Equal(columnResult.Length, verify.Count());
769Assert.Equal(columnResult.Length, verify.Count());
781Assert.Equal(columnResult.Length, verify.Count());
793Assert.Equal(columnResult.Length, verify.Count());
805Assert.Equal(columnResult.Length, verify.Count());
817Assert.Equal(columnResult.Length, verify.Count());
829Assert.Equal(columnResult.Length, verify.Count());
842Assert.Equal(columnResult.Length, verify.Count());
855Assert.Equal(columnResult.Length, verify.Count());
868Assert.Equal(columnResult.Length, verify.Count());
881Assert.Equal(columnResult.Length, verify.Count());
894Assert.Equal(columnResult.Length, verify.Count());
907Assert.Equal(columnResult.Length, verify.Count());
920Assert.Equal(columnResult.Length, verify.Count());
933Assert.Equal(columnResult.Length, verify.Count());
946Assert.Equal(columnResult.Length, verify.Count());
959Assert.Equal(columnResult.Length, verify.Count());
972Assert.Equal(columnResult.Length, verify.Count());
984Assert.Equal(columnResult.Length, verify.Count());
996Assert.Equal(columnResult.Length, verify.Count());
1008Assert.Equal(columnResult.Length, verify.Count());
1020Assert.Equal(columnResult.Length, verify.Count());
1032Assert.Equal(columnResult.Length, verify.Count());
1044Assert.Equal(columnResult.Length, verify.Count());
1056Assert.Equal(columnResult.Length, verify.Count());
1068Assert.Equal(columnResult.Length, verify.Count());
1080Assert.Equal(columnResult.Length, verify.Count());
1092Assert.Equal(columnResult.Length, verify.Count());
1104Assert.Equal(columnResult.Length, verify.Count());
1116Assert.Equal(columnResult.Length, verify.Count());
1128Assert.Equal(columnResult.Length, verify.Count());
1140Assert.Equal(columnResult.Length, verify.Count());
1152Assert.Equal(columnResult.Length, verify.Count());
1164Assert.Equal(columnResult.Length, verify.Count());
1176Assert.Equal(columnResult.Length, verify.Count());
1188Assert.Equal(columnResult.Length, verify.Count());
1200Assert.Equal(columnResult.Length, verify.Count());
1212Assert.Equal(columnResult.Length, verify.Count());
1224Assert.Equal(columnResult.Length, verify.Count());
1236Assert.Equal(columnResult.Length, verify.Count());
1249Assert.Equal(columnResult.Length, verify.Count());
1262Assert.Equal(columnResult.Length, verify.Count());
1275Assert.Equal(columnResult.Length, verify.Count());
1288Assert.Equal(columnResult.Length, verify.Count());
1301Assert.Equal(columnResult.Length, verify.Count());
1314Assert.Equal(columnResult.Length, verify.Count());
1327Assert.Equal(columnResult.Length, verify.Count());
1340Assert.Equal(columnResult.Length, verify.Count());
1353Assert.Equal(columnResult.Length, verify.Count());
1366Assert.Equal(columnResult.Length, verify.Count());
1379Assert.Equal(columnResult.Length, verify.Count());
1391Assert.Equal(columnResult.Length, verify.Count());
1403Assert.Equal(columnResult.Length, verify.Count());
1415Assert.Equal(columnResult.Length, verify.Count());
1427Assert.Equal(columnResult.Length, verify.Count());
1439Assert.Equal(columnResult.Length, verify.Count());
1451Assert.Equal(columnResult.Length, verify.Count());
1463Assert.Equal(columnResult.Length, verify.Count());
1475Assert.Equal(columnResult.Length, verify.Count());
1487Assert.Equal(columnResult.Length, verify.Count());
1499Assert.Equal(columnResult.Length, verify.Count());
1511Assert.Equal(columnResult.Length, verify.Count());
1523Assert.Equal(columnResult.Length, verify.Count());
1535Assert.Equal(columnResult.Length, verify.Count());
1547Assert.Equal(columnResult.Length, verify.Count());
1559Assert.Equal(columnResult.Length, verify.Count());
1571Assert.Equal(columnResult.Length, verify.Count());
1583Assert.Equal(columnResult.Length, verify.Count());
1595Assert.Equal(columnResult.Length, verify.Count());
1607Assert.Equal(columnResult.Length, verify.Count());
1619Assert.Equal(columnResult.Length, verify.Count());
1631Assert.Equal(columnResult.Length, verify.Count());
1643Assert.Equal(columnResult.Length, verify.Count());
1656Assert.Equal(columnResult.Length, verify.Count());
1669Assert.Equal(columnResult.Length, verify.Count());
1682Assert.Equal(columnResult.Length, verify.Count());
1695Assert.Equal(columnResult.Length, verify.Count());
1708Assert.Equal(columnResult.Length, verify.Count());
1721Assert.Equal(columnResult.Length, verify.Count());
1734Assert.Equal(columnResult.Length, verify.Count());
1747Assert.Equal(columnResult.Length, verify.Count());
1760Assert.Equal(columnResult.Length, verify.Count());
1773Assert.Equal(columnResult.Length, verify.Count());
1786Assert.Equal(columnResult.Length, verify.Count());
1798Assert.Equal(columnResult.Length, verify.Count());
1810Assert.Equal(columnResult.Length, verify.Count());
1822Assert.Equal(columnResult.Length, verify.Count());
1834Assert.Equal(columnResult.Length, verify.Count());
1846Assert.Equal(columnResult.Length, verify.Count());
1858Assert.Equal(columnResult.Length, verify.Count());
1870Assert.Equal(columnResult.Length, verify.Count());
1882Assert.Equal(columnResult.Length, verify.Count());
1894Assert.Equal(columnResult.Length, verify.Count());
1906Assert.Equal(columnResult.Length, verify.Count());
1918Assert.Equal(columnResult.Length, verify.Count());
1930Assert.Equal(columnResult.Length, verify.Count());
1942Assert.Equal(columnResult.Length, verify.Count());
1954Assert.Equal(columnResult.Length, verify.Count());
1966Assert.Equal(columnResult.Length, verify.Count());
1978Assert.Equal(columnResult.Length, verify.Count());
1990Assert.Equal(columnResult.Length, verify.Count());
2002Assert.Equal(columnResult.Length, verify.Count());
2014Assert.Equal(columnResult.Length, verify.Count());
2026Assert.Equal(columnResult.Length, verify.Count());
2038Assert.Equal(columnResult.Length, verify.Count());
2050Assert.Equal(columnResult.Length, verify.Count());
2063Assert.Equal(columnResult.Length, verify.Count());
2078Assert.Equal(columnResult.Length, verify.Count());
2093Assert.Equal(columnResult.Length, verify.Count());
2108Assert.Equal(columnResult.Length, verify.Count());
2123Assert.Equal(columnResult.Length, verify.Count());
2138Assert.Equal(columnResult.Length, verify.Count());
2153Assert.Equal(columnResult.Length, verify.Count());
2168Assert.Equal(columnResult.Length, verify.Count());
2183Assert.Equal(columnResult.Length, verify.Count());
2198Assert.Equal(columnResult.Length, verify.Count());
2213Assert.Equal(columnResult.Length, verify.Count());
2227Assert.Equal(columnResult.Length, verify.Count());
2239Assert.Equal(columnResult.Length, verify.Count());
2251Assert.Equal(columnResult.Length, verify.Count());
2263Assert.Equal(columnResult.Length, verify.Count());
2275Assert.Equal(columnResult.Length, verify.Count());
2287Assert.Equal(columnResult.Length, verify.Count());
2299Assert.Equal(columnResult.Length, verify.Count());
2311Assert.Equal(columnResult.Length, verify.Count());
2323Assert.Equal(columnResult.Length, verify.Count());
2335Assert.Equal(columnResult.Length, verify.Count());
2347Assert.Equal(columnResult.Length, verify.Count());
2360Assert.Equal(columnResult.Length, verify.Count());
2375Assert.Equal(columnResult.Length, verify.Count());
2390Assert.Equal(columnResult.Length, verify.Count());
2405Assert.Equal(columnResult.Length, verify.Count());
2420Assert.Equal(columnResult.Length, verify.Count());
2435Assert.Equal(columnResult.Length, verify.Count());
2450Assert.Equal(columnResult.Length, verify.Count());
2465Assert.Equal(columnResult.Length, verify.Count());
2480Assert.Equal(columnResult.Length, verify.Count());
2495Assert.Equal(columnResult.Length, verify.Count());
2510Assert.Equal(columnResult.Length, verify.Count());
2524Assert.Equal(columnResult.Length, verify.Count());
2536Assert.Equal(columnResult.Length, verify.Count());
2548Assert.Equal(columnResult.Length, verify.Count());
2560Assert.Equal(columnResult.Length, verify.Count());
2572Assert.Equal(columnResult.Length, verify.Count());
2584Assert.Equal(columnResult.Length, verify.Count());
2596Assert.Equal(columnResult.Length, verify.Count());
2608Assert.Equal(columnResult.Length, verify.Count());
2620Assert.Equal(columnResult.Length, verify.Count());
2632Assert.Equal(columnResult.Length, verify.Count());
2644Assert.Equal(columnResult.Length, verify.Count());
Microsoft.DotNet.Arcade.Sdk (1)
Microsoft.DotNet.Build.Tasks.Feed (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 (1)
Microsoft.Extensions.Identity.Core (1)
Microsoft.Interop.ComInterfaceGenerator (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 (2)
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)