ResultState
The ResultState class represents the outcome of running a test.
It contains two pieces of information. The Status of the test
is an enum indicating whether the test passed, failed, was
skipped or was inconclusive. The Label provides a more
detailed breakdown for use by client runners.
The test was cancelled by the user
A suite failed because one or more child tests failed or had errors
A suite is marked ignored because one or more child tests were ignored
A suite failed because one or more child tests had warnings
The test encountered an unexpected exception
The test was skipped because it is explicit
The test failed
The test has been ignored.
The result is inconclusive
The test was not runnable.
A suite had an unexpected exception in its OneTimeSetUp
A suite failed in its OneTimeSetUp
The test has been skipped.
The test succeeded
A suite had an unexpected exception in its OneTimeDown
The test issued a warning
Gets the label under which this test result is
categorized, or Empty if none.
Gets the stage of test execution in which
the failure or other result took place.
Gets the TestStatus for the test.
Initializes a new instance of the ResultState class.
Initializes a new instance of the ResultState class.
Initializes a new instance of the ResultState class.
Initializes a new instance of the ResultState class.
Overload == operator for ResultStates
Overload != operator for ResultStates
Indicates whether the current object is equal to another object of the same type.
Test whether this ResultState has the same Status and Label
as another one. In other words, the whether two are equal
ignoring the Site.
Get a new ResultState, which is the same as the current
one but with the FailureSite set to the specified value.