Class TestMethodStarting
Default implementation of ITestMethodStarting.
[JsonTypeID("test-method-starting")]
public sealed class TestMethodStarting : TestMethodMessage, ITestMethodStarting, ITestMethodMessage, ITestClassMessage, ITestCollectionMessage, ITestAssemblyMessage, IMessageSinkMessage, IJsonSerializable, ITestMethodMetadata
- Inheritance
-
TestMethodStarting
- Implements
- Inherited Members
Properties
MethodName
Gets the name of the test method that is associated with this message.
public required string MethodName { get; set; }
Property Value
Traits
Gets the trait values associated with this test method (and the test class,
test collection, and test assembly). If there are none, or the framework does
not support traits, this returns an empty dictionary (not null).
public required IReadOnlyDictionary<string, IReadOnlyCollection<string>> Traits { get; set; }
Property Value
Methods
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()
Returns
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)