8 references to ThrowsAsync
Aspire.Hosting.Tests (2)
ExpressionResolverTests.cs (1)
18
await Assert.
ThrowsAsync
(exceptionType, ResolveAsync);
WaitForTests.cs (1)
298
var ex = await Assert.
ThrowsAsync
(exceptionType, async () => {
Microsoft.AspNetCore.Mvc.Core.TestCommon (2)
CommonResourceInvokerTest.cs (2)
485
await Assert.
ThrowsAsync
(Exception.GetType(), invoker.InvokeAsync);
975
await Assert.
ThrowsAsync
(exception.GetType(), invoker.InvokeAsync);
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (4)
XmlDataContractSerializerInputFormatterTest.cs (2)
494
var ex = await Assert.
ThrowsAsync
(expectedException, () => formatter.ReadAsync(context));
523
var ex = await Assert.
ThrowsAsync
(expectedException, () => formatter.ReadAsync(context));
XmlSerializerInputFormatterTest.cs (2)
514
var ex = await Assert.
ThrowsAsync
(expectedException, () => formatter.ReadAsync(context));
544
var ex = await Assert.
ThrowsAsync
(expectedException, () => formatter.ReadAsync(context));