Class TestCaseFinished
Default implementation of ITestCaseFinished.
[JsonTypeID("test-case-finished")]
public sealed class TestCaseFinished : TestCaseMessage, IJsonDeserializable, ITestCaseFinished, ITestCaseMessage, ITestMethodMessage, ITestClassMessage, ITestCollectionMessage, ITestAssemblyMessage, IMessageSinkMessage, IJsonSerializable, IExecutionSummaryMetadata
- Inheritance
-
TestCaseFinished
- Implements
- Inherited Members
- Extension Methods
Properties
ExecutionTime
Gets the execution time (in seconds) for this execution.
public required decimal ExecutionTime { get; set; }
Property Value
Remarks
Note: Will be 0 if there was no value provided during deserialization.
TestsFailed
Gets the number of failing tests.
public required int TestsFailed { get; set; }
Property Value
Remarks
Note: Will be 0 if there was no value provided during deserialization.
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
Remarks
Note: Will be 0 if there was no value provided during deserialization.
TestsSkipped
Gets the number of skipped tests.
public required int TestsSkipped { get; set; }
Property Value
Remarks
Note: Will be 0 if there was no value provided during deserialization.
TestsTotal
Gets the total number of tests run and not run.
public required int TestsTotal { get; set; }
Property Value
Remarks
Note: Will be 0 if there was no value provided during deserialization.
Methods
Deserialize(IReadOnlyDictionary<string, object?>)
Override to deserialize the values in the dictionary into the message.
protected override void Deserialize(IReadOnlyDictionary<string, object?> root)
Parameters
rootIReadOnlyDictionary<string, object>The root of the JSON object
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()