Exception thrown when two values are unexpectedly not equal. More...
Public Member Functions | |
EqualException (object expected, object actual) | |
Creates a new instance of the EqualException class. More... | |
EqualException (string expected, string actual, int expectedIndex, int actualIndex) | |
Creates a new instance of the EqualException class for string comparisons. 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 () |
Properties | |
int | ActualIndex [get] |
Gets the index into the actual value where the values first differed. Returns -1 if the difference index points were not provided. More... | |
int | ExpectedIndex [get] |
Gets the index into the expected value where the values first differed. Returns -1 if the difference index points were not provided. More... | |
override string | Message [get] |
![]() | |
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... | |
Additional Inherited Members | |
![]() | |
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 two values are unexpectedly not equal.
|
inline |
Creates a new instance of the EqualException class.
expected | The expected object value |
actual | The actual object value |
|
inline |
Creates a new instance of the EqualException class for string comparisons.
expected | The expected string value |
actual | The actual string value |
expectedIndex | The first index in the expected string where the strings differ |
actualIndex | The first index in the actual string where the strings differ |
|
get |
Gets the index into the actual value where the values first differed. Returns -1 if the difference index points were not provided.
|
get |
Gets the index into the expected value where the values first differed. Returns -1 if the difference index points were not provided.