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.

public required decimal ExecutionTime { get; set; }

Property Value

decimal

TestsFailed

Gets the number of failing tests.

public required int TestsFailed { get; set; }

Property Value

int

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

int

TestsSkipped

Gets the number of skipped tests.

public required int TestsSkipped { get; set; }

Property Value

int

TestsTotal

Gets the total number of tests run and not run.

public required int TestsTotal { get; set; }

Property Value

int

Methods

Serialize(JsonObjectSerializer)

Override to serialize the values in the message into JSON.

protected override void Serialize(JsonObjectSerializer serializer)

Parameters

serializer JsonObjectSerializer

The serializer to write values to.

ToString()

public override string ToString()

Returns

string

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)

Parameters

invalidProperties HashSet<string>

The hash set to record invalid properties into