Summary
The ITestResult interface represents the result of a test.
- Namespace
- TCLite
.Interfaces - Interfaces
graph BT
Type-.->Interface0["IXmlNodeBuilder"]
click Interface0 "/tc-lite/api/TCLite.Interfaces/IXmlNodeBuilder"
Type["ITestResult"]
class Type type-node
Syntax
public interface ITestResult : IXmlNodeBuilder
Properties
| Name | Value | Summary |
|---|---|---|
| AssertCount | int |
Gets the number of asserts executed
when running the test and all its children.
|
| Children | IList |
Gets the the collection of child results.
|
| Duration | TimeSpan |
Gets the elapsed time for running the test
|
| FailCount | int |
Gets the number of test cases that failed
when running the test and all its children.
|
| FullName | string |
Gets the full name of the test result
|
| HasChildren | bool |
Indicates whether this result has any child results.
Accessing HasChildren should not force creation of the
Children collection in classes implementing this interface.
|
| InconclusiveCount | int |
Gets the number of test cases that were inconclusive
when running the test and all its children.
|
| Message | string |
Gets the message associated with a test
failure or with not running the test
|
| Name | string |
Gets the display name of the test result
|
| PassCount | int |
Gets the number of test cases that passed
when running the test and all its children.
|
| ResultState | ResultState |
Gets the ResultState of the test result, which
indicates the success or failure of the test.
|
| SkipCount | int |
Gets the number of test cases that were skipped
when running the test and all its children.
|
| StackTrace | string |
Gets any stacktrace associated with an
error or failure. Not available in
the Compact Framework 1.0.
|
| Test | ITest |
Gets the Test to which this result applies.
|
| WarningCount | int |
Gets the number of test cases that resulted in warnings.
|
