Class TestStarting
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
Properties
Explicit
Gets a flag which indicates whether the test is marked as explicit or not.
public required bool Explicit { get; set; }
Property Value
Remarks
Note: Will be false if there was no value provided during deserialization.
StartTime
Gets the date and time when the test execution began.
public required DateTimeOffset StartTime { get; set; }
Property Value
Remarks
Note: Will be MinValue if there was no value provided during deserialization.
TestDisplayName
Gets the display name of the test.
public required string TestDisplayName { get; set; }
Property Value
Remarks
Note: Will be UnsetStringPropertyValue if there was no value provided during deserialization.
Timeout
Gets the timeout for the test, in milliseconds; if 0, there is no timeout.
public required int Timeout { get; set; }
Property Value
Remarks
Note: Will be 0 if there was no value provided during deserialization.
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).
public required IReadOnlyDictionary<string, IReadOnlyCollection<string>> Traits { get; set; }
Property Value
Remarks
Note: Will be an empty dictionary 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()