Table of Contents

Class TestStarting

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

Default implementation of ITestStarting.

[JsonTypeID("test-starting")]
public sealed class TestStarting : TestMessage, ITestStarting, ITestMessage, ITestCaseMessage, ITestMethodMessage, ITestClassMessage, ITestCollectionMessage, ITestAssemblyMessage, IMessageSinkMessage, IJsonSerializable, ITestMetadata
Inheritance
TestStarting
Implements
Inherited Members

Properties

Explicit

Gets a flag which indicates whether the test is marked as explicit or not.

StartTime

Gets the date and time when the test execution began.

TestDisplayName

Gets the display name of the test.

Timeout

Gets the timeout for the test, in milliseconds; if 0, there is no timeout.

Traits

Gets the trait values associated with this test case. If there are none, or the framework does not support traits, this should return an empty dictionary (not null).

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.