4583 references to Single
Analyzer.Utilities.UnitTests (5)
AuthSamples.FunctionalTests (6)
Contract.Data.IntegrationTests (1)
InMemory.FunctionalTests (32)
Interop.FunctionalTests (6)
Microsoft.Analyzers.Extra.Tests (4)
Microsoft.Analyzers.Local.Tests (2)
Microsoft.AspNetCore.Analyzer.Testing (1)
Microsoft.AspNetCore.Analyzers.Test (19)
Microsoft.AspNetCore.App.Analyzers.Test (43)
Microsoft.AspNetCore.App.UnitTests (2)
Microsoft.AspNetCore.Authentication.Core.Test (11)
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (5)
Microsoft.AspNetCore.Authentication.Test (55)
Microsoft.AspNetCore.Authorization.Test (28)
Microsoft.AspNetCore.Components.Authorization.Tests (5)
Microsoft.AspNetCore.Components.Endpoints.Tests (44)
Microsoft.AspNetCore.Components.Forms.Tests (1)
Microsoft.AspNetCore.Components.Server.Tests (30)
Microsoft.AspNetCore.Components.Tests (78)
Microsoft.AspNetCore.Components.Web.Tests (4)
Microsoft.AspNetCore.CookiePolicy.Test (13)
Microsoft.AspNetCore.Cors.Test (12)
Microsoft.AspNetCore.DataProtection.Extensions.Tests (6)
Microsoft.AspNetCore.DataProtection.Tests (10)
Microsoft.AspNetCore.DeveloperCertificates.XPlat.Tests (1)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (18)
Microsoft.AspNetCore.Diagnostics.Tests (13)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (5)
Microsoft.AspNetCore.Grpc.Swagger.Tests (11)
Microsoft.AspNetCore.HeaderParsing.Tests (5)
Microsoft.AspNetCore.HeaderPropagation.Tests (2)
Microsoft.AspNetCore.Hosting.Tests (7)
Microsoft.AspNetCore.Html.Abstractions.Tests (2)
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
Microsoft.AspNetCore.Http.Connections.Tests (14)
Microsoft.AspNetCore.Http.Extensions.Tests (65)
Microsoft.AspNetCore.Http.Microbenchmarks (4)
Microsoft.AspNetCore.Http.Results.Tests (4)
Microsoft.AspNetCore.Http.Tests (26)
Microsoft.AspNetCore.HttpLogging.Tests (4)
Microsoft.AspNetCore.HttpOverrides.Tests (2)
Microsoft.AspNetCore.HttpsPolicy.Tests (11)
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (14)
Microsoft.AspNetCore.Identity.FunctionalTests (20)
Microsoft.AspNetCore.Identity.Specification.Tests (15)
Microsoft.AspNetCore.Identity.Test (1)
Microsoft.AspNetCore.InternalTesting.Tests (11)
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (10)
Microsoft.AspNetCore.JsonPatch.Tests (10)
Microsoft.AspNetCore.Localization.Tests (2)
Microsoft.AspNetCore.MiddlewareAnalysis.Tests (2)
Microsoft.AspNetCore.Mvc.Abstractions.Test (47)
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (167)
Microsoft.AspNetCore.Mvc.Core.Test (475)
Microsoft.AspNetCore.Mvc.Cors.Test (30)
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (15)
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (9)
Microsoft.AspNetCore.Mvc.FunctionalTests (124)
Microsoft.AspNetCore.Mvc.IntegrationTests (354)
Microsoft.AspNetCore.Mvc.Localization.Test (2)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (16)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (9)
Microsoft.AspNetCore.Mvc.Razor.Test (27)
Microsoft.AspNetCore.Mvc.RazorPages.Test (74)
Microsoft.AspNetCore.Mvc.Routing.Abstractions.Tests (1)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (22)
Microsoft.AspNetCore.Mvc.Test (1)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (82)
Microsoft.AspNetCore.OpenApi.Tests (247)
Microsoft.AspNetCore.OutputCaching.Tests (4)
Microsoft.AspNetCore.RateLimiting.Tests (5)
Microsoft.AspNetCore.Razor.Runtime.Test (11)
Microsoft.AspNetCore.Razor.Test (3)
Microsoft.AspNetCore.RequestDecompression.Tests (4)
Microsoft.AspNetCore.ResponseCaching.Tests (2)
Microsoft.AspNetCore.Rewrite.Tests (8)
Microsoft.AspNetCore.Routing.Tests (492)
Matching\DfaMatcherBuilderTest.cs (173)
30Assert.Same(endpoint, Assert.Single(root.Matches));
51var next = Assert.Single(root.Literals);
58next = Assert.Single(a.Literals);
65next = Assert.Single(b.Literals);
69Assert.Same(endpoint, Assert.Single(c.Matches));
99Assert.Same(endpoint, Assert.Single(c.Matches));
123Assert.Same(endpoint, Assert.Single(a.Matches));
130Assert.Same(endpoint, Assert.Single(catchAll.Matches));
149Assert.Same(endpoint, Assert.Single(root.Matches));
155Assert.Same(endpoint, Assert.Single(catchAll.Matches));
179var next = Assert.Single(root.Literals);
191next = Assert.Single(b1.Literals);
195Assert.Same(endpoint1, Assert.Single(c1.Matches));
203next = Assert.Single(b2.Literals);
207Assert.Same(endpoint2, Assert.Single(c2.Matches));
231var next = Assert.Single(root.Literals);
243next = Assert.Single(b1.Literals);
247Assert.Same(endpoint1, Assert.Single(c1.Matches));
255next = Assert.Single(b2.Literals);
259Assert.Same(endpoint2, Assert.Single(c2.Matches));
283var next = Assert.Single(root.Literals);
289next = Assert.Single(a.Literals);
296next = Assert.Single(b.Literals);
311next = Assert.Single(b2.Literals);
315Assert.Same(endpoint2, Assert.Single(c2.Matches));
339var next = Assert.Single(root.Literals);
350next = Assert.Single(b.Literals);
381var next = Assert.Single(root.Literals);
385Assert.Same(endpoint2, Assert.Single(a.Matches));
387next = Assert.Single(a.Literals);
391Assert.Same(endpoint2, Assert.Single(a.Matches));
394next = Assert.Single(b1.Literals);
406Assert.Same(endpoint2, Assert.Single(catchAll.Matches));
430var next = Assert.Single(root.Literals);
434Assert.Same(endpoint2, Assert.Single(a.Matches));
438Assert.Same(endpoint2, Assert.Single(a.Matches));
441next = Assert.Single(b1.Literals);
453Assert.Same(endpoint2, Assert.Single(catchAll.Matches));
477var aNodeKvp = Assert.Single(root.Literals);
481var cNodeKvp = Assert.Single(aNodeValue.Literals);
485Assert.Same(endpoint1, Assert.Single(cNode.Matches));
489var bNodeKvp = Assert.Single(root.Parameters.Literals);
494var paramCNodeKvp = Assert.Single(bNode.Literals);
498Assert.Same(endpoint2, Assert.Single(paramCNode.Matches));
524var aNodeKvp = Assert.Single(root.Literals);
528var cNodeKvp = Assert.Single(aNodeValue.Literals);
532Assert.Same(endpoint1, Assert.Single(cNode.Matches));
536var bNodeKvp = Assert.Single(root.Parameters.Literals);
541var paramCNodeKvp = Assert.Single(bNode.Literals);
545Assert.Same(endpoint2, Assert.Single(paramCNode.Matches));
571var aNodeKvp = Assert.Single(root.Literals);
577Assert.Same(endpoint1, Assert.Single(cNode.Matches));
586var paramBCNodeKvp = Assert.Single(bNode.Literals);
590Assert.Same(endpoint2, Assert.Single(paramBCNode.Matches));
596var bParamNodeKvp = Assert.Single(root.Parameters.Literals);
601var paramCNodeKvp = Assert.Single(bParamNode.Literals);
605Assert.Same(endpoint2, Assert.Single(paramCNode.Matches));
634var aNodeKvp = Assert.Single(root.Literals);
640Assert.Same(endpoint3, Assert.Single(cNode.Matches));
649var paramBCNodeKvp = Assert.Single(bNode.Literals);
659var bParamNodeKvp = Assert.Single(root.Parameters.Literals);
664var paramCNodeKvp = Assert.Single(bParamNode.Literals);
668Assert.Same(endpoint2, Assert.Single(paramCNode.Matches));
692var aNodeKvp = Assert.Single(root.Literals);
696var cNodeKvp = Assert.Single(aNodeValue.Literals);
700Assert.Same(endpoint1, Assert.Single(cNode.Matches));
704var bNodeKvp = Assert.Single(root.Parameters.Literals);
709var paramCNodeKvp = Assert.Single(bNode.Literals);
713Assert.Same(endpoint2, Assert.Single(paramCNode.Matches));
739var aNodeKvp = Assert.Single(root.Literals);
745Assert.Same(endpoint1, Assert.Single(cNode.Matches));
754var paramBCNodeKvp = Assert.Single(bNode.Literals);
758Assert.Same(endpoint2, Assert.Single(paramBCNode.Matches));
764var bParamNodeKvp = Assert.Single(root.Parameters.Literals);
769var paramCNodeKvp = Assert.Single(bParamNode.Literals);
773Assert.Same(endpoint2, Assert.Single(paramCNode.Matches));
797var aNodeKvp = Assert.Single(root.Literals);
801var cNodeKvp = Assert.Single(aNodeValue.Literals);
805Assert.Same(endpoint1, Assert.Single(cNode.Matches));
809var bNodeKvp = Assert.Single(root.Parameters.Literals);
814var paramCNodeKvp = Assert.Single(bNode.Literals);
818Assert.Same(endpoint2, Assert.Single(paramCNode.Matches));
844var aNodeKvp = Assert.Single(root.Literals);
850Assert.Same(endpoint1, Assert.Single(cNode.Matches));
859var paramBCNodeKvp = Assert.Single(bNode.Literals);
863Assert.Same(endpoint2, Assert.Single(paramBCNode.Matches));
869var bParamNodeKvp = Assert.Single(root.Parameters.Literals);
874var paramCNodeKvp = Assert.Single(bParamNode.Literals);
878Assert.Same(endpoint2, Assert.Single(paramCNode.Matches));
904var aNodeKvp = Assert.Single(root.Literals);
910Assert.Same(endpoint1, Assert.Single(cNode.Matches));
919var paramBCNodeKvp = Assert.Single(bNode.Literals);
923Assert.Same(endpoint2, Assert.Single(paramBCNode.Matches));
929var bParamNodeKvp = Assert.Single(root.Parameters.Literals);
934var paramCNodeKvp = Assert.Single(bParamNode.Literals);
938Assert.Same(endpoint2, Assert.Single(paramCNode.Matches));
967var aNodeKvp = Assert.Single(root.Literals);
975Assert.Same(endpoint1, Assert.Single(cNode.Matches));
981var bParamNodeKvp = Assert.Single(root.Parameters.Literals);
986var paramCNodeKvp = Assert.Single(bParamNode.Literals);
990Assert.Same(endpoint2, Assert.Single(paramCNode.Matches));
1019var aNodeKvp = Assert.Single(root.Literals);
1025Assert.Same(endpoint3, Assert.Single(cNode.Matches));
1034var paramBCNodeKvp = Assert.Single(bNode.Literals);
1044var bParamNodeKvp = Assert.Single(root.Parameters.Literals);
1049var paramCNodeKvp = Assert.Single(bParamNode.Literals);
1053Assert.Same(endpoint2, Assert.Single(paramCNode.Matches));
2412var next = Assert.Single(root.Literals);
2416Assert.Same(endpoint2, Assert.Single(a.Matches));
2429Assert.Same(endpoint2, Assert.Single(catchAll.Matches));
2455var next = Assert.Single(root.Literals);
2459Assert.Same(endpoint1, Assert.Single(a.Matches));
2472Assert.Same(endpoint1, Assert.Single(catchAll.Matches));
2497var next = Assert.Single(root.Literals);
2501Assert.Same(endpoint2, Assert.Single(a1.Matches));
2514Assert.Same(endpoint2, Assert.Single(catchAll1.Matches));
2551var next = Assert.Single(root.Literals);
2555Assert.Same(endpoint1, Assert.Single(a1.Matches));
2568Assert.Same(endpoint1, Assert.Single(catchAll1.Matches));
2601var next = Assert.Single(root.Literals);
2605Assert.Same(endpoint1, Assert.Single(a1.Matches));
2609Assert.Same(endpoint2, Assert.Single(b1.Matches));
2643var next = Assert.Single(root.Literals);
2661Assert.Same(endpoint1, Assert.Single(test2_true.Matches));
2688var next = Assert.Single(root.Literals);
2707Assert.Same(endpoint1, Assert.Single(test2_true.Matches));
2720Assert.Same(endpoint2, Assert.Single(test2_true.Matches));
2725Assert.Same(endpoint3, Assert.Single(test2_false.Matches));
2752var next = Assert.Single(root.Literals);
2796var next = Assert.Single(root.Literals);
2840var next = Assert.Single(root.Literals);
2863Assert.Equal("MaxValueEndpoint", Assert.Single(nonRouteEndpoint.Matches).DisplayName);
2888var next = Assert.Single(root.Literals);
2957var next = Assert.Single(root.Literals);
2964next = Assert.Single(home.Literals);
2968Assert.Same(endpoint, Assert.Single(index.Matches));
2988Assert.Same(endpoint, Assert.Single(root.Matches));
2991var next = Assert.Single(root.Literals);
2995Assert.Same(endpoint, Assert.Single(home.Matches));
2998next = Assert.Single(home.Literals);
3002Assert.Same(endpoint, Assert.Single(index.Matches));
3025var next = Assert.Single(root.Literals);
3029Assert.Same(endpoint, Assert.Single(login.Matches));
3032next = Assert.Single(login.Literals);
3036Assert.Same(endpoint, Assert.Single(index.Matches));
3068Assert.Same(endpoint1, Assert.Single(root.Matches));
3075Assert.Same(endpoint1, Assert.Single(home.Matches));
3078var next = Assert.Single(home.Literals);
3082Assert.Same(endpoint1, Assert.Single(homeIndex.Matches));
3086Assert.Same(endpoint1, Assert.Single(homeIndex.Parameters.Matches));
3090Assert.Same(endpoint2, Assert.Single(login.Matches));
3097Assert.Same(endpoint2, Assert.Single(loginIndex.Matches));
3101Assert.Same(endpoint2, Assert.Single(loginIndex.Parameters.Matches));
3105Assert.Same(endpoint3, Assert.Single(loginChangePassword.Matches));
3109Assert.Same(endpoint3, Assert.Single(loginChangePassword.Parameters.Matches));
3128Assert.Same(endpoint, Assert.Single(root.Matches));
3131var next = Assert.Single(root.Literals);
3135Assert.Same(endpoint, Assert.Single(home.Matches));
3138next = Assert.Single(home.Literals);
3142Assert.Same(endpoint, Assert.Single(index.Matches));
3164var next = Assert.Single(root.Literals);
3171next = Assert.Single(conventionalTransformerRoute.Literals);
3175Assert.Same(endpoint, Assert.Single(conventionalTransformer.Matches));
3177next = Assert.Single(conventionalTransformer.Literals);
3181Assert.Same(endpoint, Assert.Single(index.Matches));
3185Assert.Same(endpoint, Assert.Single(index.Parameters.Matches));
3373Assert.Single(candidate.Constraints);
3391var constraint1 = Assert.Single(candidate1.Constraints);
3394var constraint2 = Assert.Single(candidate2.Constraints);
3414var constraint1 = Assert.Single(candidate1.Constraints);
3417var constraint2 = Assert.Single(candidate2.Constraints);
3437var constraint1 = Assert.Single(candidate1.Constraints);
3440var constraint2 = Assert.Single(candidate2.Constraints);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (13)
Microsoft.AspNetCore.Server.IISIntegration.Tests (1)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (41)
Microsoft.AspNetCore.Server.Kestrel.Tests (21)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (2)
Microsoft.AspNetCore.Session.Tests (4)
Microsoft.AspNetCore.Shared.Tests (49)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (5)
Microsoft.AspNetCore.SignalR.Client.Tests (15)
Microsoft.AspNetCore.SignalR.Common.Tests (2)
Microsoft.AspNetCore.SignalR.Specification.Tests (7)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (2)
Microsoft.AspNetCore.SignalR.Tests (60)
Microsoft.AspNetCore.Tests (18)
Microsoft.AspNetCore.WebSockets.Tests (1)
Microsoft.AspNetCore.WebUtilities.Tests (21)
Microsoft.Build.CommandLine.UnitTests (5)
Microsoft.Build.Engine.OM.UnitTests (79)
Microsoft.Build.Engine.UnitTests (235)
Construction\SolutionProjectGenerator_Tests.cs (18)
348Assert.Single(logger.Warnings);
357Assert.Single(logger.Errors);
1591Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Build", StringComparison.OrdinalIgnoreCase)));
1592Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Clean", StringComparison.OrdinalIgnoreCase)));
1593Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Rebuild", StringComparison.OrdinalIgnoreCase)));
1594Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Publish", StringComparison.OrdinalIgnoreCase)));
2120Assert.Single(logger.Warnings);
2436Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "One", StringComparison.OrdinalIgnoreCase)));
2440Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Two", StringComparison.OrdinalIgnoreCase)));
2441Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Three", StringComparison.OrdinalIgnoreCase)));
2442Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Four", StringComparison.OrdinalIgnoreCase)));
2446Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Build", StringComparison.OrdinalIgnoreCase)));
2450Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Five", StringComparison.OrdinalIgnoreCase)));
2451Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Rebuild", StringComparison.OrdinalIgnoreCase)));
2455Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Six", StringComparison.OrdinalIgnoreCase)));
2579Assert.Single(instances);
2586Assert.Single(instances);
2639Assert.Single(projectInstance.Targets["MyTarget"].Children);
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (11)
Microsoft.Build.Tasks.UnitTests (124)
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (14)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (10)
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (243)
SourceGeneration\GeneratorDriverTests.cs (113)
38Assert.Single(compilation.SyntaxTrees);
44Assert.Single(outputCompilation.SyntaxTrees);
58Assert.Single(compilation.SyntaxTrees);
80Assert.Single(compilation.SyntaxTrees);
101Assert.Single(compilation.SyntaxTrees);
130Assert.Single(compilation.SyntaxTrees);
220Assert.Single(compilation.SyntaxTrees);
256Assert.Single(compilation.SyntaxTrees);
277Assert.Single(compilation.SyntaxTrees);
300Assert.Single(compilation.SyntaxTrees);
308Assert.Single(outputCompilation.SyntaxTrees);
321Assert.Single(compilation.SyntaxTrees);
344Assert.Single(compilation.SyntaxTrees);
378Assert.Single(compilation.SyntaxTrees);
405Assert.Single(compilation.SyntaxTrees);
430Assert.Single(compilation.SyntaxTrees);
456Assert.Single(compilation.SyntaxTrees);
485Assert.Single(compilation.SyntaxTrees);
524Assert.Single(compilation.SyntaxTrees);
564var result = Assert.Single(results.Results);
584Assert.Single(compilation.SyntaxTrees);
593Assert.Single(results.GeneratedTrees);
594Assert.Single(results.Results);
601Assert.Single(result.GeneratedSources);
614Assert.Single(compilation.SyntaxTrees);
641Assert.Single(result2.GeneratedSources);
646Assert.Single(result3.GeneratedSources);
659Assert.Single(compilation.SyntaxTrees);
692Assert.Single(result2.Diagnostics);
706Assert.Single(compilation.SyntaxTrees);
742Assert.Single(compilation.SyntaxTrees);
778Assert.Single(compilation.SyntaxTrees);
785Assert.Single(outputDiagnostics);
800Assert.Single(compilation.SyntaxTrees);
825Assert.Single(compilation.SyntaxTrees);
853Assert.Single(compilation.SyntaxTrees);
885Assert.Single(compilation.SyntaxTrees);
911Assert.Single(compilation.SyntaxTrees);
938Assert.Single(compilation.SyntaxTrees);
966Assert.Single(compilation.SyntaxTrees);
998Assert.Single(compilation.SyntaxTrees);
1012Assert.Single(compilation.SyntaxTrees);
1027Assert.Single(compilation.SyntaxTrees);
1047Assert.Single(compilation.SyntaxTrees);
1061Assert.Single(compilation.SyntaxTrees);
1070Assert.Single(results.Results);
1088Assert.Single(compilation.SyntaxTrees);
1115Assert.Single(result2.GeneratedSources);
1120Assert.Single(result3.GeneratedSources);
1133Assert.Single(compilation.SyntaxTrees);
1142var tree = Assert.Single(results.GeneratedTrees);
1161Assert.Single(compilation.SyntaxTrees);
1259Assert.Single(compilation.SyntaxTrees);
1388Assert.Single(compilation.SyntaxTrees);
1423Assert.Single(compilation.SyntaxTrees);
1445Assert.Single(compilation.SyntaxTrees);
1454Assert.Single(runResults.Diagnostics);
1455Assert.Single(runResults.Results);
1470Assert.Single(compilation.SyntaxTrees);
1479Assert.Single(runResults.Diagnostics);
1480Assert.Single(runResults.Results);
1586Assert.Single(compilation.SyntaxTrees);
1599Assert.Single(runResults.Diagnostics);
1600Assert.Single(runResults.Results);
1615Assert.Single(compilation.SyntaxTrees);
1632Assert.Single(runResults.Diagnostics);
1634Assert.Single(runResults.GeneratedTrees);
1648Assert.Single(compilation.SyntaxTrees);
1669Assert.Single(compilation.SyntaxTrees);
1731Assert.Single(compilation.SyntaxTrees);
1775Assert.Single(compilation.SyntaxTrees);
1994Assert.Single(compilation.SyntaxTrees);
2030Assert.Single(compilation.SyntaxTrees);
2292Assert.Single(compilation.SyntaxTrees);
2435Assert.Single(compilation.SyntaxTrees);
2507Assert.Single(compilation.SyntaxTrees);
2521Assert.Single(runResult.GeneratedSources);
2549Assert.Single(compilation.SyntaxTrees);
2564Assert.Single(runResult.GeneratedSources);
2589Assert.Single(compilation.SyntaxTrees);
2617Assert.Single(compilation.SyntaxTrees);
2632Assert.Single(runResult.TrackedSteps["ParseOptions"]);
2652Assert.Single(runResult.TrackedSteps["ParseOptions"]);
2680Assert.Single(compilation.SyntaxTrees);
2746Assert.Single(compilation.SyntaxTrees);
2829Assert.Single(compilation.SyntaxTrees);
3016Assert.Single(compilation.SyntaxTrees);
3211Assert.Single(compilation.SyntaxTrees);
3229Assert.Single(result.Results);
3277Assert.Single(compilation.SyntaxTrees);
3323Assert.Single(compilation.SyntaxTrees);
3359Assert.Single(compilation.SyntaxTrees);
3411Assert.Single(compilation.SyntaxTrees);
3496var diag = Assert.Single(result.Diagnostics);
3505Assert.Single(result.GeneratedTrees);
3531var generatorTiming = Assert.Single(timing.GeneratorTimes);
3561var generatorTiming = Assert.Single(timing.GeneratorTimes);
3641var generatorTiming = Assert.Single(timing.GeneratorTimes);
3653var generatorTiming2 = Assert.Single(timing2.GeneratorTimes);
3682var result = Assert.Single(runResult.Results);
4138Assert.Single(compilation.SyntaxTrees);
4582Assert.Single(results.GeneratedTrees);
4604Assert.Single(result.GeneratedTrees);
4655var result = Assert.Single(runResult.Results);
4656var (key, value) = Assert.Single(result.HostOutputs);
4675var result = Assert.Single(runResult.Results);
4690var result = Assert.Single(runResult.Results);
4710var result = Assert.Single(runResult.Results);
4729(r) => { var result = Assert.Single(r.HostOutputs); Assert.Equal("gen1", result.Key); Assert.Equal("value1", result.Value); },
4730(r) => { var result = Assert.Single(r.HostOutputs); Assert.Equal("gen2", result.Key); Assert.Equal("value2", result.Value); }
4747(r) => { var result = Assert.Single(r.HostOutputs); Assert.Equal("gen", result.Key); Assert.Equal("value1", result.Value); },
4748(r) => { var result = Assert.Single(r.HostOutputs); Assert.Equal("gen", result.Key); Assert.Equal("value2", result.Value); }
4763var result = Assert.Single(runResult.Results);
SourceGeneration\StateTableTests.cs (12)
443var step = Assert.Single(table.Steps);
490var step = Assert.Single(table.Steps);
794Assert.Equal((1, IncrementalStepRunReason.Cached), Assert.Single(step.Outputs));
799Assert.Equal((2, IncrementalStepRunReason.Removed), Assert.Single(step.Outputs));
804Assert.Equal((3, IncrementalStepRunReason.Removed), Assert.Single(step.Outputs));
809Assert.Equal((4, IncrementalStepRunReason.New), Assert.Single(step.Outputs));
814Assert.Equal((5, IncrementalStepRunReason.New), Assert.Single(step.Outputs));
819Assert.Equal((6, IncrementalStepRunReason.New), Assert.Single(step.Outputs));
984var step = Assert.Single(table.Steps);
986var input = Assert.Single(step.Inputs);
1013var step = Assert.Single(table.Steps);
1015var input = Assert.Single(step.Inputs);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (58)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (24)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (4)
Microsoft.CodeAnalysis.LanguageServer.UnitTests (1)
Microsoft.CodeAnalysis.Test.Utilities (2)
Microsoft.CodeAnalysis.UnitTests (5)
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (3)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (45)
Microsoft.CodeAnalysis.Workspaces.UnitTests (50)
Microsoft.Data.Analysis.Tests (3)
Microsoft.DotNet.Open.Api.Tools.Tests (4)
Microsoft.DotNet.XUnitAssert.Tests (7)
Microsoft.DotNet.XUnitExtensions.Tests (2)
Microsoft.Extensions.AI.Abstractions.Tests (32)
Microsoft.Extensions.AI.AzureAIInference.Tests (6)
Microsoft.Extensions.AI.Evaluation.Integration.Tests (2)
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (1)
Microsoft.Extensions.AI.Evaluation.Tests (6)
Microsoft.Extensions.AI.Integration.Tests (5)
Microsoft.Extensions.AI.Ollama.Tests (5)
Microsoft.Extensions.AI.OpenAI.Tests (10)
Microsoft.Extensions.AI.Tests (24)
Microsoft.Extensions.ApiDescription.Client.Tests (7)
Microsoft.Extensions.ApiDescription.Tool.Tests (1)
Microsoft.Extensions.Caching.Hybrid.Tests (1)
Microsoft.Extensions.Caching.SqlServer.Tests (1)
Microsoft.Extensions.Compliance.Testing.Tests (1)
Microsoft.Extensions.Configuration.KeyPerFile.Tests (2)
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (5)
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (13)
Microsoft.Extensions.Diagnostics.Probes.Tests (9)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (4)
Microsoft.Extensions.Diagnostics.Testing.Tests (4)
Microsoft.Extensions.Http.Diagnostics.Tests (8)
Microsoft.Extensions.Http.Resilience.Tests (4)
Microsoft.Extensions.Localization.Tests (2)
Microsoft.Extensions.Telemetry.Tests (6)
Microsoft.Extensions.TimeProvider.Testing.Tests (1)
Microsoft.Extensions.Validation.GeneratorTests (2)
Microsoft.Extensions.Validation.Tests (16)
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
Microsoft.Gen.ContextualOptions.Unit.Tests (7)
Microsoft.Gen.Logging.Generated.Tests (7)
Microsoft.Gen.Logging.Unit.Tests (12)
Microsoft.Gen.MetadataExtractor.Unit.Tests (1)
Microsoft.Gen.Metrics.Generated.Tests (36)
Microsoft.Gen.Metrics.Unit.Tests (30)
Microsoft.Gen.MetricsReports.Unit.Tests (1)
Microsoft.JSInterop.Tests (1)
Microsoft.ML.AutoML.Tests (7)
Microsoft.ML.CodeGenerator.Tests (1)
Microsoft.ML.Core.Tests (2)
Microsoft.ML.IntegrationTests (2)
Microsoft.ML.OnnxTransformerTest (4)
Microsoft.ML.Tests (4)
Microsoft.ML.TimeSeries.Tests (4)
Microsoft.Net.Http.Headers.Tests (33)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
Mvc.Api.Analyzers.Test (15)
Roslyn.VisualStudio.Next.UnitTests (7)
ServerComparison.FunctionalTests (1)
Shared.Tests (22)
Sockets.BindTests (6)
Sockets.FunctionalTests (4)
System.ServiceModel.Primitives.Tests (1)
System.Xaml.Tests (7)
WindowsBase.Tests (46)
xunit.assert (2)