976 references to Single
aspire (1)
Certificates\CertificateGeneration\CertificateManager.cs (1)
233.Single()
aspire-tray (1)
Aspire.Cli.EndToEnd.Tests (1)
Aspire.Cli.Tests (30)
Aspire.Dashboard (5)
Aspire.Dashboard.Components.Tests (13)
Aspire.Dashboard.Tests (29)
Integration\OtlpCorsHttpServiceTests.cs (9)
63Assert.Equal("http://localhost:8000", responseMessage1.Headers.GetValues("Access-Control-Allow-Origin").Single());
64Assert.Equal("POST", responseMessage1.Headers.GetValues("Access-Control-Allow-Methods").Single());
65Assert.Equal("X-Requested-With", responseMessage1.Headers.GetValues("Access-Control-Allow-Headers").Single());
77Assert.Equal("http://localhost:8001", responseMessage2.Headers.GetValues("Access-Control-Allow-Origin").Single());
78Assert.Equal("POST", responseMessage2.Headers.GetValues("Access-Control-Allow-Methods").Single());
79Assert.Equal("X-Requested-With", responseMessage2.Headers.GetValues("Access-Control-Allow-Headers").Single());
132Assert.Equal("*", responseMessage.Headers.GetValues("Access-Control-Allow-Origin").Single());
133Assert.Equal("POST", responseMessage.Headers.GetValues("Access-Control-Allow-Methods").Single());
134Assert.Equal("x-requested-with,x-custom,Content-Type", responseMessage.Headers.GetValues("Access-Control-Allow-Headers").Single());
Aspire.EndToEnd.Tests (1)
Aspire.Hosting (3)
Aspire.Hosting.Azure (3)
Aspire.Hosting.Azure.AppContainers (3)
Aspire.Hosting.Azure.AppService (1)
Aspire.Hosting.Azure.ContainerRegistry (1)
Aspire.Hosting.Azure.EntraId.Tests (4)
Aspire.Hosting.Azure.Kubernetes.Tests (4)
AzureKubernetesEnvironmentExtensionsTests.cs (1)
54.Single();
Aspire.Hosting.Azure.Provisioning.Generators (2)
Aspire.Hosting.Azure.Sandboxes (1)
Aspire.Hosting.Azure.Tests (51)
Aspire.Hosting.Blazor.Tests (5)
Aspire.Hosting.Browsers.Tests (24)
Aspire.Hosting.CodeGeneration.Python (1)
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
Aspire.Hosting.Containers.Tests (13)
Aspire.Hosting.Dotnet (3)
Aspire.Hosting.Dotnet.Tests (5)
Aspire.Hosting.DotnetTool.Tests (6)
Aspire.Hosting.Foundry (1)
Aspire.Hosting.Foundry.Tests (2)
Aspire.Hosting.Garnet.Tests (2)
Aspire.Hosting.Java (1)
Aspire.Hosting.Java.Tests (1)
Aspire.Hosting.JavaScript.Tests (24)
Aspire.Hosting.Kafka.Tests (3)
Aspire.Hosting.Keycloak.Tests (4)
Aspire.Hosting.Kubernetes.Tests (24)
Aspire.Hosting.Maui.Tests (17)
Aspire.Hosting.MySql (1)
Aspire.Hosting.MySql.Tests (1)
Aspire.Hosting.Native.Core.Tests (13)
NativeProviderLifecycleTests.cs (12)
41Assert.Equal(1, integration.Resources.Single().DisposeCount);
46Assert.Equal(1, integration.Resources.Single().DisposeCount);
304Assert.Throws<InvalidOperationException>(() => integration.Context!.PublishResource(integration.Resources.Single(),
330Assert.Equal(0, integration.Resources.Single().DisposeCount);
347Assert.Equal(1, integration.Resources.Single().DisposeCount);
373var firstObject = integration.Resources.Single();
419Assert.Equal(1, integration.Resources.Single().DisposeCount);
442Assert.Equal(1, integration.Resources.Single().DisposeCount);
480Assert.Equal(1, integration.Resources.Single().DisposeCount);
500Assert.Equal(1, integration.Resources.Single().DisposeCount);
609Assert.Equal(1, integration.Resources.Single().DisposeCount);
624var resource = integration.Resources.Single();
Aspire.Hosting.Native.Server (1)
Aspire.Hosting.PostgreSQL.Tests (10)
Aspire.Hosting.Python.Tests (21)
Aspire.Hosting.Radius.Tests (32)
Aspire.Hosting.Redis.Tests (2)
Aspire.Hosting.Seq.Tests (2)
Aspire.Hosting.Tests (98)
Aspire.Hosting.Valkey.Tests (2)
Aspire.OpenAI.Tests (2)
Aspire.StackExchange.Redis.DistributedCaching.Tests (10)
Aspire.StackExchange.Redis.Tests (12)
Aspire.Templates.Tests (6)
Aspire.Tray.Tests (2)
AzureAppService.AppHost (1)
BicepSample.AppHost (1)
CdkSample.AppHost (4)
csc (1)
CSharpSyntaxGenerator (3)
dotnet-aot (4)
dotnet-dev-certs (1)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (1)
233.Single()
dotnet-openapi (1)
dotnet-sourcelink (2)
dotnet-watch (1)
FoundryAgents.AppHost (1)
GenerateDocumentationAndConfigFiles (4)
ilc (1)
ILCompiler.Compiler (2)
ILCompiler.ReadyToRun (4)
illink (2)
ILLink.RoslynAnalyzer (1)
Infrastructure.Tests (12)
Microsoft.Analyzers.Extra.Tests (2)
Microsoft.Analyzers.Local.Tests (2)
Microsoft.AspNetCore.Components.Endpoints (5)
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
Microsoft.AspNetCore.DataProtection (4)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (1)
233.Single()
Microsoft.AspNetCore.HeaderParsing.Tests (2)
Microsoft.AspNetCore.Http.Extensions (5)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
Microsoft.AspNetCore.Http.Results (1)
Microsoft.AspNetCore.Mvc.Core (2)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Microsoft.AspNetCore.OpenApi (3)
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (1)
156.Single();
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (1)
233.Single()
Microsoft.AspNetCore.SignalR.Core (2)
Microsoft.AspNetCore.StaticAssets (3)
Microsoft.AspNetCore.StaticFiles (1)
Microsoft.AspNetCore.Testing.Tests (2)
Microsoft.Build (2)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\TemporaryArrayExtensions.cs (1)
68=> new[] { 0, 0 }.Single();
Microsoft.Build.Tasks.CodeAnalysis (1)
Microsoft.CodeAnalysis (3)
Microsoft.CodeAnalysis.Analyzers (5)
Microsoft.CodeAnalysis.AnalyzerUtilities (12)
Microsoft.CodeAnalysis.BuildClient.Package (1)
Microsoft.CodeAnalysis.CodeStyle (3)
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
Microsoft.CodeAnalysis.CSharp (12)
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (14)
Microsoft.CodeAnalysis.CSharp.Features (35)
CodeRefactorings\InlineTemporary\InlineTemporaryCodeRefactoringProvider.cs (1)
325.Single()
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
Microsoft.CodeAnalysis.Extensions.Package (1)
Microsoft.CodeAnalysis.Features (21)
Microsoft.CodeAnalysis.NetAnalyzers (17)
Microsoft.CodeAnalysis.Razor.DotNetFormat (2)
Microsoft.CodeAnalysis.Rebuild (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (3)
Microsoft.CodeAnalysis.VisualBasic (3)
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Microsoft.CodeAnalysis.Workspaces (6)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Microsoft.Data.Analysis.Tests (1)
Microsoft.DotNet.Build.Tasks.Packaging (2)
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
Microsoft.DotNet.Cli.Definitions (14)
Microsoft.DotNet.HotReload.Watch (2)
Microsoft.DotNet.NuGetRepack.Tasks (1)
Microsoft.Extensions.AI.Abstractions.Tests (6)
Microsoft.Extensions.AI.Evaluation.Safety (2)
Microsoft.Extensions.AI.Integration.Tests (3)
Microsoft.Extensions.AI.OpenAI.Tests (60)
OpenAIChatClientTests.cs (27)
165Assert.Single(response.Messages.Single().Contents);
166Assert.Equal(ChatRole.Assistant, response.Messages.Single().Role);
167Assert.Equal("chatcmpl-ADx3PvAnCwJg0woha4pYsBTi3ZpOI", response.Messages.Single().MessageId);
259UsageContent usage = updates.SelectMany(u => u.Contents).OfType<UsageContent>().Single();
871Assert.Single(response.Messages.Single().Contents);
872Assert.Equal(ChatRole.Assistant, response.Messages.Single().Role);
873Assert.Equal("chatcmpl-ADyV17bXeSm5rzUx3n46O7m3M0o3P", response.Messages.Single().MessageId);
969Assert.Single(response.Messages.Single().Contents);
970Assert.Equal(ChatRole.Assistant, response.Messages.Single().Role);
1067Assert.Single(response.Messages.Single().Contents);
1068Assert.Equal(ChatRole.Assistant, response.Messages.Single().Role);
1181Assert.Equal(ChatRole.Assistant, response.Messages.Single().Role);
1199Assert.Single(response.Messages.Single().Contents);
1200FunctionCallContent fcc = Assert.IsType<FunctionCallContent>(response.Messages.Single().Contents[0]);
1266Assert.Equal(ChatRole.Assistant, response.Messages.Single().Role);
1284Assert.Single(response.Messages.Single().Contents);
1285TextContent fcc = Assert.IsType<TextContent>(response.Messages.Single().Contents[0]);
1385UsageContent usage = updates.SelectMany(u => u.Contents).OfType<UsageContent>().Single();
1521Assert.Single(response.Messages.Single().Contents);
1522Assert.Equal(ChatRole.Assistant, response.Messages.Single().Role);
1640Assert.Single(response.Messages.Single().Contents);
1641Assert.Equal(ChatRole.Assistant, response.Messages.Single().Role);
1642Assert.Equal("chatcmpl-BHaQ3nkeSDGhLzLya3mGbB1EXSqve", response.Messages.Single().MessageId);
1950var message = response.Messages.Single();
1951var reasoning = message.Contents.OfType<TextReasoningContent>().Single();
1954var text = message.Contents.OfType<TextContent>().Single();
2049UsageContent usage = updates.SelectMany(u => u.Contents).OfType<UsageContent>().Single();
Microsoft.Extensions.Caching.Abstractions (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (15)
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Microsoft.Extensions.Http.Resilience.Tests (4)
Microsoft.Extensions.Resilience.Tests (2)
Microsoft.Extensions.Telemetry.Tests (2)
Microsoft.Extensions.VectorData.Abstractions (2)
Microsoft.Gen.BuildMetadata.Unit.Tests (1)
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
Microsoft.Gen.ContextualOptions.Unit.Tests (23)
Microsoft.Gen.Logging.Unit.Tests (1)
Microsoft.Gen.MetadataExtractor.Unit.Tests (1)
Microsoft.Gen.Metrics.Unit.Tests (1)
Microsoft.Gen.MetricsReports.Unit.Tests (1)
Microsoft.Maui.Controls.Build.Tasks (4)
Microsoft.ML.PerformanceTests (1)
Microsoft.ML.Tests (4)
Microsoft.NET.Build.Tasks (2)
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (1)
Microsoft.NET.Sdk.Publish.Tasks (1)
Microsoft.TemplateEngine.Cli (11)
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (5)
Microsoft.TestPlatform.TestHostRuntimeProvider (2)
Microsoft.VisualStudio.TestPlatform.ObjectModel (3)
MSBuild (1)
NuGet.CommandLine.XPlat (2)
NuGet.Commands (3)
NuGet.Frameworks (2)
NuGet.PackageManagement (3)
NuGet.Packaging (2)
NuGet.Protocol (1)
RepoTasks (1)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (1)
233.Single()
Roslyn.Diagnostics.Analyzers (4)
Roslyn.Diagnostics.CSharp.Analyzers (4)
rzc (1)
Shared.Tests (2)
System.Collections.Immutable (4)
System.ComponentModel.Composition (1)
System.Linq.Queryable (1)
System.Private.Windows.Core.TestUtilities (1)
System.Reflection.DispatchProxy (1)
System.ServiceModel.Primitives.Tests (1)
vbc (1)
VBCSCompiler (1)