Class TestCaseFinished
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.dll
Default implementation of ITestCaseFinished.
[JsonTypeID("test-case-finished")]
public sealed class TestCaseFinished : TestCaseMessage, ITestCaseFinished, ITestCaseMessage, ITestMethodMessage, ITestClassMessage, ITestCollectionMessage, ITestAssemblyMessage, IMessageSinkMessage, IJsonSerializable, IExecutionSummaryMetadata
- Inheritance
-
TestCaseFinished
- Implements
- Inherited Members
Properties
- ExecutionTime
Gets the execution time (in seconds) for this execution.
- TestsFailed
Gets the number of failing tests.
- TestsNotRun
Gets the number of tests that were not run. This includes explicit tests when explicit tests are not run, or non-expicit tests when non-explicit tests are not run.
- TestsSkipped
Gets the number of skipped tests.
- TestsTotal
Gets the total number of tests run and not run.
Methods
- Serialize(JsonObjectSerializer)
Override to serialize the values in the message into JSON.
- ValidateObjectState(HashSet<string>)
Called before serializing the message. Implementers are expected to call ValidatePropertyIsNotNull(object?, string, HashSet<string>) for each property that must have a value, to record invalid property values into the provided hash set.