Class TestCaseFinished
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.
public required decimal ExecutionTime { get; set; }
Property Value
TestsFailed
Gets the number of failing tests.
public required int TestsFailed { get; set; }
Property Value
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.
public required int TestsNotRun { get; set; }
Property Value
TestsSkipped
Gets the number of skipped tests.
public required int TestsSkipped { get; set; }
Property Value
TestsTotal
Gets the total number of tests run and not run.
public required int TestsTotal { get; set; }
Property Value
Methods
Serialize(JsonObjectSerializer)
Override to serialize the values in the message into JSON.
protected override void Serialize(JsonObjectSerializer serializer)
Parameters
serializerJsonObjectSerializerThe serializer to write values to.
ToString()
public override string ToString()
Returns
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.
protected override void ValidateObjectState(HashSet<string> invalidProperties)