4574 references to Single
Aspire.Azure.Messaging.EventHubs.Tests (1)
Aspire.Dashboard.Components.Tests (1)
Aspire.Dashboard.Tests (45)
Aspire.Elastic.Clients.Elasticsearch.Tests (1)
Aspire.Hosting.Azure.Tests (34)
Aspire.Hosting.Containers.Tests (21)
Aspire.Hosting.Elasticsearch.Tests (5)
Aspire.Hosting.Garnet.Tests (7)
Aspire.Hosting.Kafka.Tests (4)
Aspire.Hosting.Keycloak.Tests (4)
Aspire.Hosting.Milvus.Tests (6)
Aspire.Hosting.MongoDB.Tests (13)
Aspire.Hosting.MySql.Tests (11)
Aspire.Hosting.Nats.Tests (9)
Aspire.Hosting.Oracle.Tests (15)
Aspire.Hosting.PostgreSQL.Tests (16)
Aspire.Hosting.Python.Tests (3)
Aspire.Hosting.Qdrant.Tests (7)
Aspire.Hosting.RabbitMQ.Tests (7)
Aspire.Hosting.Redis.Tests (24)
Aspire.Hosting.SqlServer.Tests (6)
Aspire.Hosting.Tests (70)
Aspire.Hosting.Valkey.Tests (7)
Aspire.NATS.Net.Tests (1)
Aspire.StackExchange.Redis.Tests (4)
AuthSamples.FunctionalTests (6)
Contract.Data.IntegrationTests (1)
InMemory.FunctionalTests (31)
Interop.FunctionalTests (6)
Microsoft.Analyzers.Extra.Tests (4)
Microsoft.Analyzers.Local.Tests (2)
Microsoft.AspNetCore.Analyzer.Testing (1)
Microsoft.AspNetCore.Analyzers.Test (12)
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 (36)
Microsoft.AspNetCore.Components.Forms.Tests (1)
Microsoft.AspNetCore.Components.Server.Tests (5)
Microsoft.AspNetCore.Components.Tests (58)
Microsoft.AspNetCore.Components.Web.Tests (2)
Microsoft.AspNetCore.Components.WebAssembly.Tests (1)
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 (17)
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 (4)
Microsoft.AspNetCore.Html.Abstractions.Tests (2)
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
Microsoft.AspNetCore.Http.Connections.Tests (14)
Microsoft.AspNetCore.Http.Extensions.Tests (51)
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.Tests (10)
Microsoft.AspNetCore.Localization.Tests (2)
Microsoft.AspNetCore.MiddlewareAnalysis.Tests (2)
Microsoft.AspNetCore.Mvc.Abstractions.Test (47)
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (161)
Microsoft.AspNetCore.Mvc.Core.Test (412)
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 (6)
Microsoft.AspNetCore.Mvc.Razor.Test (26)
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 (76)
Microsoft.AspNetCore.OpenApi.Tests (204)
Microsoft.AspNetCore.OutputCaching.Tests (3)
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 (3)
Microsoft.AspNetCore.Routing.Tests (299)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (13)
Microsoft.AspNetCore.Server.IISIntegration.Tests (1)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (35)
Microsoft.AspNetCore.Server.Kestrel.Tests (19)
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 (1)
Microsoft.AspNetCore.SignalR.Specification.Tests (7)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (2)
Microsoft.AspNetCore.SignalR.Tests (58)
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 (236)
Construction\SolutionProjectGenerator_Tests.cs (18)
319Assert.Single(logger.Warnings);
328Assert.Single(logger.Errors);
1529Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Build", StringComparison.OrdinalIgnoreCase)));
1530Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Clean", StringComparison.OrdinalIgnoreCase)));
1531Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Rebuild", StringComparison.OrdinalIgnoreCase)));
1532Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Publish", StringComparison.OrdinalIgnoreCase)));
2045Assert.Single(logger.Warnings);
2355Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "One", StringComparison.OrdinalIgnoreCase)));
2359Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Two", StringComparison.OrdinalIgnoreCase)));
2360Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Three", StringComparison.OrdinalIgnoreCase)));
2361Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Four", StringComparison.OrdinalIgnoreCase)));
2365Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Build", StringComparison.OrdinalIgnoreCase)));
2369Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Five", StringComparison.OrdinalIgnoreCase)));
2370Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Rebuild", StringComparison.OrdinalIgnoreCase)));
2374Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Six", StringComparison.OrdinalIgnoreCase)));
2490Assert.Single(instances);
2497Assert.Single(instances);
2549Assert.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 (13)
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.UnitTests (23)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
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 (44)
Microsoft.CodeAnalysis.Workspaces.UnitTests (38)
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 (22)
Microsoft.Extensions.AI.AzureAIInference.Tests (3)
Microsoft.Extensions.AI.Integration.Tests (4)
Microsoft.Extensions.AI.Ollama.Tests (1)
Microsoft.Extensions.AI.OpenAI.Tests (23)
Microsoft.Extensions.AI.Tests (11)
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 (5)
Microsoft.Extensions.TimeProvider.Testing.Tests (1)
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.Metrics.Generated.Tests (36)
Microsoft.Gen.Metrics.Unit.Tests (30)
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.VisualBasic.Tests (2)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
Mvc.Api.Analyzers.Test (14)
ServerComparison.FunctionalTests (1)
Shared.Tests (22)
Sockets.BindTests (6)
Sockets.FunctionalTests (4)
System.Drawing.Common.Tests (36)
System.ServiceModel.Primitives.Tests (1)
System.Windows.Forms.Design.Tests (88)
System.Windows.Forms.Primitives.Tests (4)
System.Windows.Forms.Tests (42)
System.Xaml.Tests (7)
WindowsBase.Tests (46)
xunit.assert (2)