18 references to ThrowsAsync
Microsoft.AspNetCore.Http.Results.Tests (5)
AcceptedAtRouteOfTResultTests.cs (1)
117await ExceptionAssert.ThrowsAsync<InvalidOperationException>(() =>
AcceptedAtRouteResultTests.cs (1)
70await ExceptionAssert.ThrowsAsync<InvalidOperationException>(() =>
CreatedAtRouteOfTResultTests.cs (1)
86await ExceptionAssert.ThrowsAsync<InvalidOperationException>(
CreatedAtRouteResultTests.cs (1)
68await ExceptionAssert.ThrowsAsync<InvalidOperationException>(
RedirectToRouteResultTests.cs (1)
24await ExceptionAssert.ThrowsAsync<InvalidOperationException>(
Microsoft.AspNetCore.Mvc.Core.Test (8)
AcceptedAtActionResultTests.cs (1)
192await ExceptionAssert.ThrowsAsync<InvalidOperationException>(() =>
AcceptedAtRouteResultTests.cs (1)
140await ExceptionAssert.ThrowsAsync<InvalidOperationException>(() =>
CreatedAtActionResultTests.cs (1)
61await ExceptionAssert.ThrowsAsync<InvalidOperationException>(
CreatedAtRouteResultTests.cs (1)
74await ExceptionAssert.ThrowsAsync<InvalidOperationException>(
Infrastructure\ControllerActionInvokerTest.cs (1)
520await ExceptionAssert.ThrowsAsync<InvalidOperationException>(
RedirectToActionResultTest.cs (1)
75await ExceptionAssert.ThrowsAsync<InvalidOperationException>(
RedirectToPageResultTest.cs (1)
37await ExceptionAssert.ThrowsAsync<InvalidOperationException>(
RedirectToRouteResultTest.cs (1)
75await ExceptionAssert.ThrowsAsync<InvalidOperationException>(
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
CommonResourceInvokerTest.cs (1)
947await ExceptionAssert.ThrowsAsync<InvalidOperationException>(
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Infrastructure\PageActionInvokerTest.cs (1)
1041await ExceptionAssert.ThrowsAsync<InvalidOperationException>(
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (1)
QuicConnectionContextTests.cs (1)
68var ex = await ExceptionAssert.ThrowsAsync<QuicException>(
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
HubProtocolVersionTests.cs (1)
181await ExceptionAssert.ThrowsAsync<HubException>(
Microsoft.AspNetCore.TestHost.Tests (1)
TestClientTests.cs (1)
543await ExceptionAssert.ThrowsAsync<OperationCanceledException>(