xUnit.net
|
Exception thrown when code unexpectedly fails to raise an event. More...
Public Member Functions | |
RaisesException (Type expected) | |
Creates a new instance of the RaisesException class. Call this constructor when no event was raised. More... | |
RaisesException (Type expected, Type actual) | |
Creates a new instance of the RaisesException class. Call this constructor when an More... | |
Public Member Functions inherited from Xunit.Sdk.XunitException | |
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 () |
Properties | |
string | Actual [get] |
Gets the actual value. More... | |
string | Expected [get] |
Gets 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... | |
Properties inherited from Xunit.Sdk.XunitException | |
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... | |
Additional Inherited Members | |
Protected Member Functions inherited from Xunit.Sdk.XunitException | |
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... | |
Exception thrown when code unexpectedly fails to raise an event.
|
inline |
Creates a new instance of the RaisesException class. Call this constructor when no event was raised.
expected | The type of the event args that was expected |
|
inline |
Creates a new instance of the RaisesException class. Call this constructor when an
expected | |
actual |
|
get |
Gets the actual value.
|
get |
Gets the expected value.
|
get |
Gets a message that describes the current exception. Includes the expected and actual values.
<filterpriority>1</filterpriority>
|
get |
Gets a string representation of the frames on the call stack at the time the current exception was thrown.