45 references to Single
IIS.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\CompressionTests.cs (1)
145
Assert.
Single
(contentTypes, "text/event-stream");
src\Servers\IIS\IIS\test\Common.FunctionalTests\LoggingTests.cs (1)
235
Assert.
Single
(Directory.GetFiles(LogFolderPath), Helpers.GetExpectedLogName(deploymentResult, LogFolderPath));
IISExpress.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\CompressionTests.cs (1)
145
Assert.
Single
(contentTypes, "text/event-stream");
src\Servers\IIS\IIS\test\Common.FunctionalTests\LoggingTests.cs (1)
235
Assert.
Single
(Directory.GetFiles(LogFolderPath), Helpers.GetExpectedLogName(deploymentResult, LogFolderPath));
Microsoft.AspNetCore.Components.Web.Tests (1)
Forms\InputBaseTest.cs (1)
152
Assert.
Single
(valueChangedCallLog, "new value");
Microsoft.AspNetCore.Http.Results.Tests (12)
AcceptedAtRouteOfTResultTests.cs (1)
136
Assert.
Single
(producesResponseTypeMetadata.ContentTypes, "application/json");
AcceptedOfTResultTests.cs (1)
77
Assert.
Single
(producesResponseTypeMetadata.ContentTypes, "application/json");
BadRequestOfTResultTests.cs (1)
120
Assert.
Single
(producesResponseTypeMetadata.ContentTypes, "application/json");
ConflictOfTResultTests.cs (1)
98
Assert.
Single
(producesResponseTypeMetadata.ContentTypes, "application/json");
CreatedAtRouteOfTResultTests.cs (1)
106
Assert.
Single
(producesResponseTypeMetadata.ContentTypes, "application/json");
CreatedOfTResultTests.cs (1)
112
Assert.
Single
(producesResponseTypeMetadata.ContentTypes, "application/json");
InternalServerErrorOfTResultTests.cs (1)
120
Assert.
Single
(producesResponseTypeMetadata.ContentTypes, "application/json");
NotFoundOfTResultTests.cs (1)
80
Assert.
Single
(producesResponseTypeMetadata.ContentTypes, "application/json");
OkOfTResultTests.cs (1)
97
Assert.
Single
(producesResponseTypeMetadata.ContentTypes, "application/json");
ResultsTests.cs (1)
1715
Assert.All(actualMethods, name => Assert.
Single
(testedMethods, name));
UnprocessableEntityOfTResultTests.cs (1)
97
Assert.
Single
(producesResponseTypeMetadata.ContentTypes, "application/json");
ValidationProblemResultTests.cs (1)
108
Assert.
Single
(producesResponseTypeMetadata.ContentTypes, "application/problem+json");
Microsoft.AspNetCore.Mvc.FunctionalTests (2)
RoutingTestsBase.cs (2)
364
Assert.
Single
(result.ExpectedUrls, expected);
973
Assert.
Single
(result.ExpectedUrls, expected);
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Infrastructure\PageActionDescriptorProviderTest.cs (1)
232
Assert.
Single
(descriptor.EndpointMetadata, expected);
Microsoft.AspNetCore.ResponseCompression.Tests (6)
ResponseCompressionMiddlewareTest.cs (6)
756
Assert.
Single
(response.Content.Headers.ContentEncoding, encoding);
809
Assert.
Single
(response.Content.Headers.ContentEncoding, encoding);
878
Assert.
Single
(response.Content.Headers.ContentEncoding, encoding);
942
Assert.
Single
(response.Content.Headers.ContentEncoding, encoding);
1218
Assert.
Single
(response.Content.Headers.ContentEncoding, encoding);
1302
Assert.
Single
(response.Content.Headers.ContentEncoding, expectedEncoding);
Microsoft.AspNetCore.Server.Kestrel.Tests (1)
HttpsConfigurationTests.cs (1)
42
Assert.
Single
(host.ServerFeatures.Get<IServerAddressesFeature>().Addresses, address);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (2)
WebHostTests.cs (2)
257
Assert.
Single
(altSvcValues1, @$"h3="":{host.GetPort()}""");
271
Assert.
Single
(altSvcValues2, @$"h3="":{host.GetPort()}""");
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
SourceGeneration\GeneratorDriverTests.cs (1)
3255
Assert.
Single
(referenceList, modifiedRef.Display);
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
UtilityTest\BKTreeTests.cs (2)
29
Assert.
Single
(results1, "what");
52
Assert.
Single
(Find(tree, value, threshold: 0), value.ToLower());
Microsoft.DotNet.XUnitAssert.Tests (6)
CollectionAssertsTests.cs (6)
2341
Assert.Throws<ArgumentNullException>("collection", () => Assert.
Single
(null!, null));
2349
Assert.
Single
(collection, "Hello");
2357
Assert.
Single
(collection, null);
2365
var ex = Record.Exception(() => Assert.
Single
(collection, "foo"));
2381
var ex = Record.Exception(() => Assert.
Single
(collection, "Hello"));
2398
var ex = Record.Exception(() => Assert.
Single
(collection, 4));
Microsoft.Gen.ContextualOptions.Generated.Tests (3)
ContextualOptionsTests.cs (3)
28
Assert.
Single
(receiver.Received, ("Foo", (object?)"FooValue"));
46
Assert.
Single
(receiver.Received, ("Foo", (object?)"PropertyValue"));
54
Assert.
Single
(receiver.Received, ("Foo", (object?)"FooValue"));
Microsoft.Gen.ContextualOptions.Unit.Tests (4)
ContextualOptionsTests.cs (3)
28
Assert.
Single
(receiver.Received, ("Foo", (object?)"FooValue"));
46
Assert.
Single
(receiver.Received, ("Foo", (object?)"PropertyValue"));
54
Assert.
Single
(receiver.Received, ("Foo", (object?)"FooValue"));
EmitterTests.cs (1)
99
Assert.
Single
(statements, "receiver.Receive(nameof(Foo), Foo);");