Summary
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.
- Namespace
- TCLite
.Interfaces - Base Types
-
- object
graph BT
Type-->Base0["object"]
Type["ResultState"]
class Type type-node
Syntax
public class ResultState
Constructors
| Name | Summary |
|---|---|
| ResultState |
Initializes a new instance of the ResultState class.
|
| ResultState |
Initializes a new instance of the ResultState class.
|
Fields
| Name | Constant Value | Summary |
|---|---|---|
| Cancelled |
The test was cancelled by the user
static
|
|
| Error |
The test encountered an unexpected exception
static
|
|
| Explicit |
The test was skipped because it is explicit
static
|
|
| Failure |
The test failed
static
|
|
| Ignored |
The test has been ignored.
static
|
|
| Inconclusive |
The result is inconclusive
static
|
|
| NotRunnable |
The test was not runnable.
static
|
|
| Skipped |
The test has been skipped.
static
|
|
| Success |
The test succeeded
static
|
|
| Warning |
The test issued a warning
static
|
Properties
| Name | Value | Summary |
|---|---|---|
| Label | string |
Gets the label under which this test resullt is
categorized, if any.
|
| Status | TestStatus |
Gets the TestStatus for the test.
|
Methods
| Name | Value | Summary |
|---|---|---|
| Equals |
bool |
Determines whether the specified
object, is equal to this instance.
|
| GetHashCode |
int |
Returns a hash code for this instance.
|
| ToString |
string |
Returns a
string that represents this instance.
|
