Class TestContext.ResultAdapter
ResultAdapter adapts a TestResult for consumption by the user test code.
public class TestContext.ResultAdapter
- Inheritance
-
TestContext.ResultAdapter
- Inherited Members
Constructors
ResultAdapter(TestResult)
Construct a ResultAdapter for a TestResult
public ResultAdapter(TestResult result)
Parameters
result
TestResultThe TestResult to be adapted
Properties
Assertions
Gets a list of the assertion results generated up to this point in the test.
public IEnumerable<AssertionResult> Assertions { get; }
Property Value
FailCount
Gets the number of test cases that failed when running the test and all its children.
public int FailCount { get; }
Property Value
InconclusiveCount
Gets the number of test cases that were inconclusive when running the test and all its children.
public int InconclusiveCount { get; }
Property Value
Message
Gets the message associated with a test failure or with not running the test
public string Message { get; }
Property Value
Outcome
Gets a ResultState representing the outcome of the test up to this point in its execution.
public ResultState Outcome { get; }
Property Value
PassCount
Gets the number of test cases that passed when running the test and all its children.
public int PassCount { get; }
Property Value
SkipCount
Gets the number of test cases that were skipped when running the test and all its children.
public int SkipCount { get; }
Property Value
StackTrace
Gets any stack trace associated with an error or failure.
public virtual string? StackTrace { get; }
Property Value
WarningCount
Gets the number of test cases that had warnings when running the test and all its children.
public int WarningCount { get; }