10 references to ThrowsAnyAsync
Microsoft.DotNet.XUnitAssert.Tests (10)
Asserts\ExceptionAssertsTests.cs (10)
1543 await Assert.ThrowsAsync<ArgumentNullException>("testCode", () => Assert.ThrowsAnyAsync<ArgumentException>(default!, _ => null)); 1551 var ex = await Record.ExceptionAsync(() => Assert.ThrowsAnyAsync<ArgumentException>(testCode, _ => null)); 1567 await Assert.ThrowsAnyAsync<ArgumentException>(testCode, _ => null); 1575 var ex = await Record.ExceptionAsync(() => Assert.ThrowsAnyAsync<ArgumentException>(testCode, _ => "I don't like this exception")); 1588 var ex = await Record.ExceptionAsync(() => Assert.ThrowsAnyAsync<ArgumentException>(testCode, _ => throw thrownByInspector)); 1601 var ex = await Record.ExceptionAsync(() => Assert.ThrowsAnyAsync<ArgumentException>(testCode, _ => null)); 1618 await Assert.ThrowsAnyAsync<ArgumentException>(testCode, _ => null); 1626 var ex = await Record.ExceptionAsync(() => Assert.ThrowsAnyAsync<ArgumentException>(testCode, _ => "I don't like this exception")); 1639 var ex = await Record.ExceptionAsync(() => Assert.ThrowsAnyAsync<ArgumentException>(testCode, _ => throw thrownByInspector)); 1653 await Assert.ThrowsAnyAsync<Exception>(testCode, _ => null);