Base class for exceptions that have actual and expected values
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...
|
| |
Base class for exceptions that have actual and expected values
◆ AssertActualExpectedException() [1/2]
| Xunit.Sdk.AssertActualExpectedException.AssertActualExpectedException |
( |
object |
expected, |
|
|
object |
actual, |
|
|
string |
userMessage, |
|
|
string |
expectedTitle = null, |
|
|
string |
actualTitle = null |
|
) |
| |
|
inline |
Creates a new instance of the class.
- Parameters
-
| expected | The expected value |
| actual | The actual value |
| userMessage | The user message to be shown |
| expectedTitle | The title to use for the expected value (defaults to "Expected") |
| actualTitle | The title to use for the actual value (defaults to "Actual") |
◆ AssertActualExpectedException() [2/2]
| Xunit.Sdk.AssertActualExpectedException.AssertActualExpectedException |
( |
object |
expected, |
|
|
object |
actual, |
|
|
string |
userMessage, |
|
|
string |
expectedTitle, |
|
|
string |
actualTitle, |
|
|
Exception |
innerException |
|
) |
| |
|
inline |
Creates a new instance of the class.
- Parameters
-
| expected | The expected value |
| actual | The actual value |
| userMessage | The user message to be shown |
| expectedTitle | The title to use for the expected value (defaults to "Expected") |
| actualTitle | The title to use for the actual value (defaults to "Actual") |
| innerException | The inner exception. |
◆ Actual
| string Xunit.Sdk.AssertActualExpectedException.Actual |
|
get |
◆ ActualTitle
| string Xunit.Sdk.AssertActualExpectedException.ActualTitle |
|
get |
Gets the title used for the actual value.
◆ Expected
| string Xunit.Sdk.AssertActualExpectedException.Expected |
|
get |
◆ ExpectedTitle
| string Xunit.Sdk.AssertActualExpectedException.ExpectedTitle |
|
get |
Gets the title used for the expected value.
◆ Message
| override string???? Xunit.Sdk.AssertActualExpectedException.Message |
|
get |
Gets a message that describes the current exception. Includes the expected and actual values.
- Returns
- The error message that explains the reason for the exception, or an empty string("").
<filterpriority>1</filterpriority>
The documentation for this class was generated from the following file:
- xunit/src/xunit.assert/Asserts/Sdk/Exceptions/AssertActualExpectedException.cs