Class TestCaseMessage
Default implementation of ITestCaseMessage.
public abstract class TestCaseMessage : TestMethodMessage, ITestCaseMessage, ITestMethodMessage, ITestClassMessage, ITestCollectionMessage, ITestAssemblyMessage, IMessageSinkMessage, IJsonSerializable
- Inheritance
-
TestCaseMessage
- Implements
- Derived
- Inherited Members
Properties
TestCaseUniqueID
Gets the test case's unique ID. Can be used to correlate test messages with the appropriate test case that they're related to.
public required string TestCaseUniqueID { 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)