8 references to ThrowsAsync
Microsoft.DotNet.XUnitAssert.Tests (8)
Asserts\ExceptionAssertsTests.cs (8)
1756
await Assert.ThrowsAsync<ArgumentNullException>("testCode", () => Assert.
ThrowsAsync
<ArgumentException>(default!, _ => null));
1764
var ex = await Record.ExceptionAsync(() => Assert.
ThrowsAsync
<ArgumentException>(testCode, _ => null));
1780
await Assert.
ThrowsAsync
<ArgumentException>(testCode, _ => null);
1788
var ex = await Record.ExceptionAsync(() => Assert.
ThrowsAsync
<ArgumentException>(testCode, _ => "I don't like this exception"));
1801
var ex = await Record.ExceptionAsync(() => Assert.
ThrowsAsync
<ArgumentException>(testCode, _ => throw thrownByInspector));
1814
var ex = await Record.ExceptionAsync(() => Assert.
ThrowsAsync
<ArgumentException>(testCode, _ => null));
1832
var ex = await Record.ExceptionAsync(() => Assert.
ThrowsAsync
<ArgumentException>(testCode, _ => null));
1851
await Assert.
ThrowsAsync
<Exception>(testCode, _ => null);