Class TestStarting
- Namespace
- Xunit.Runner.Common
- Assembly
- xunit.v3.runner.common.dll
Default implementation of ITestStarting.
[JsonTypeID("test-starting")]
public sealed class TestStarting : TestMessage, IJsonDeserializable, ITestStarting, ITestMessage, ITestCaseMessage, ITestMethodMessage, ITestClassMessage, ITestCollectionMessage, ITestAssemblyMessage, IMessageSinkMessage, IJsonSerializable, ITestMetadata
- Inheritance
-
TestStarting
- Implements
- Inherited Members
- Extension Methods
-
Xunit.Sdk.MessageSinkMessageExtensions.DispatchWhen``1(Xunit.Sdk.IMessageSinkMessage,Xunit.Runner.Common.MessageHandler{``0})
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
- Deserialize(IReadOnlyDictionary<string, object?>)
Override to deserialize the values in the dictionary into the message.
- Serialize(JsonObjectSerializer)
Override to serialize the values in the message into JSON.