2 instantiations of ThrowsAnyException
xunit.assert (2)
Sdk\Exceptions\ThrowsAnyException.cs (2)
47
new
ThrowsAnyException
(
65
new
ThrowsAnyException
(
12 references to ThrowsAnyException
Microsoft.DotNet.XUnitAssert.Tests (6)
ExceptionAssertsTests.cs (6)
512
Assert.IsType<
ThrowsAnyException
>(ex);
537
Assert.IsType<
ThrowsAnyException
>(ex);
582
Assert.IsType<
ThrowsAnyException
>(ex);
607
Assert.IsType<
ThrowsAnyException
>(ex);
642
Assert.IsType<
ThrowsAnyException
>(ex);
667
Assert.IsType<
ThrowsAnyException
>(ex);
xunit.assert (6)
ExceptionAsserts.cs (2)
200
throw
ThrowsAnyException
.ForNoException(exceptionType);
203
throw
ThrowsAnyException
.ForIncorrectExceptionType(exceptionType, exception);
Sdk\Exceptions\ThrowsAnyException.cs (4)
39
/// Creates a new instance of the <see cref="
ThrowsAnyException
"/> class to be thrown when
44
public static
ThrowsAnyException
ForIncorrectExceptionType(
60
/// Creates a new instance of the <see cref="
ThrowsAnyException
"/> class to be thrown when
64
public static
ThrowsAnyException
ForNoException(Type expected) =>