Exception thrown when code unexpectedly fails to throw an exception. More...
Public Member Functions | |
ThrowsException (Type expectedType) | |
Creates a new instance of the ThrowsException class. Call this constructor when no exception was thrown. More... | |
ThrowsException (Type expectedType, Exception actual) | |
Creates a new instance of the ThrowsException class. Call this constructor when an exception of the wrong type was thrown. More... | |
![]() | |
AssertActualExpectedException (object expected, object actual, string userMessage, string expectedTitle=null, string actualTitle=null) | |
Creates a new instance of the class. More... | |
AssertActualExpectedException (object expected, object actual, string userMessage, string expectedTitle, string actualTitle, Exception innerException) | |
Creates a new instance of the class. More... | |
![]() | |
XunitException () | |
Initializes a new instance of the XunitException class. More... | |
XunitException (string userMessage) | |
Initializes a new instance of the XunitException class. More... | |
override string | ToString () |
Protected Member Functions | |
ThrowsException? (Type expected, string actual, string actualMessage, string stackTrace, Exception innerException) | |
THIS CONSTRUCTOR IS FOR UNIT TESTING PURPOSES ONLY. More... | |
![]() | |
XunitException (string userMessage, Exception innerException) | |
Initializes a new instance of the XunitException class. More... | |
XunitException (string userMessage, string stackTrace) | |
Initializes a new instance of the XunitException class. More... | |
Properties | |
override string?? | StackTrace [get] |
Gets a string representation of the frames on the call stack at the time the current exception was thrown. More... | |
![]() | |
string | Actual [get] |
Gets the actual value. More... | |
string | ActualTitle [get] |
Gets the title used for the actual value. More... | |
string | Expected [get] |
Gets the expected value. More... | |
string | ExpectedTitle [get] |
Gets the title used for the expected value. More... | |
override string???? | Message [get] |
Gets a message that describes the current exception. Includes the expected and actual values. More... | |
![]() | |
override string?? | StackTrace [get] |
Gets a string representation of the frames on the call stack at the time the current exception was thrown. More... | |
string | UserMessage [get, protected set] |
Gets the user message More... | |
Exception thrown when code unexpectedly fails to throw an exception.
|
inline |
Creates a new instance of the ThrowsException class. Call this constructor when no exception was thrown.
expectedType | The type of the exception that was expected |
|
inline |
Creates a new instance of the ThrowsException class. Call this constructor when an exception of the wrong type was thrown.
expectedType | The type of the exception that was expected |
actual | The actual exception that was thrown |
|
inlineprotected |
THIS CONSTRUCTOR IS FOR UNIT TESTING PURPOSES ONLY.
|
get |
Gets a string representation of the frames on the call stack at the time the current exception was thrown.