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