Class ThrowsException
- Namespace
- Xunit.Sdk
- Assembly
- xunit.v3.assert.dll
Exception thrown when Assert.Throws fails.
public class ThrowsException : XunitException, ISerializable, IAssertionException
- Inheritance
-
ThrowsException
- Implements
- Inherited Members
Methods
- ForIncorrectExceptionType(Type, Exception)
Creates a new instance of the ThrowsException class to be thrown when an exception of the wrong type was thrown by Assert.Throws.
- ForIncorrectParameterName(Type, string?, string?)
Creates a new instance of the ThrowsException class to be thrown when an ArgumentException is thrown with the wrong parameter name.
- ForInspectorFailure(string, Exception?)
Creates a new instance of the ThrowsException class to be thrown when an inspector rejected the exception.
- ForNoException(Type)
Creates a new instance of the ThrowsException class to be thrown when an exception wasn't thrown by Assert.Throws.