Class XunitException
The base assert exception class. It marks itself with IAssertionException which is how the framework differentiates between assertion fails and general exceptions.
public class XunitException : Exception, ISerializable, IAssertionException
- Inheritance
-
XunitException
- Implements
- Derived
- Inherited Members
Constructors
XunitException(string?)
Initializes a new instance of the XunitException class.
public XunitException(string? userMessage)
Parameters
userMessagestringThe user message to be displayed
XunitException(string?, Exception?)
Initializes a new instance of the XunitException class.
public XunitException(string? userMessage, Exception? innerException)
Parameters
Methods
ToString()
public override string ToString()