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