Class ThrowsAnyException
Exception thrown when Assert.ThrowsAny fails.
public class ThrowsAnyException : XunitException, ISerializable, IAssertionException
- Inheritance
-
ThrowsAnyException
- Implements
- Inherited Members
Methods
ForIncorrectExceptionType(Type, Exception)
Creates a new instance of the ThrowsAnyException class to be thrown when an exception of the wrong type was thrown by Assert.ThrowsAny.
public static ThrowsAnyException ForIncorrectExceptionType(Type expected, Exception actual)
Parameters
Returns
ForNoException(Type)
Creates a new instance of the ThrowsAnyException class to be thrown when an exception wasn't thrown by Assert.ThrowsAny.
public static ThrowsAnyException ForNoException(Type expected)
Parameters
expectedTypeThe expected exception type