6 references to ThrowsAsync
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));