Table of Contents

Class TestClassFinished

Namespace
Xunit.v3
Assembly
xunit.v3.core.dll

Default implementation of ITestClassFinished

[JsonTypeID("test-class-finished")]
public sealed class TestClassFinished : TestClassMessage, ITestClassFinished, ITestClassMessage, ITestCollectionMessage, ITestAssemblyMessage, IMessageSinkMessage, IJsonSerializable, IExecutionSummaryMetadata
Inheritance
TestClassFinished
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.

ToString()
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.