Class TestResultMessage
Default implementation of ITestResultMessage.
public abstract class TestResultMessage : TestMessage, IJsonDeserializable, ITestResultMessage, ITestMessage, ITestCaseMessage, ITestMethodMessage, ITestClassMessage, ITestCollectionMessage, ITestAssemblyMessage, IMessageSinkMessage, IJsonSerializable, IExecutionMetadata
- Inheritance
-
TestResultMessage
- Implements
- Derived
- Inherited Members
- Extension Methods
Properties
ExecutionTime
The time spent executing the test, in seconds. Will be 0 if the test was not executed.
public required decimal ExecutionTime { get; set; }
Property Value
Remarks
Note: Will be 0 if there was no value provided during deserialization.
FinishTime
Gets the date and time when the test execution finished.
public required DateTimeOffset FinishTime { get; set; }
Property Value
Remarks
Note: Will be MinValue if there was no value provided during deserialization.
Output
The captured output of the test. Will be Empty if there was no output.
public required string Output { get; set; }
Property Value
Remarks
Note: Will be UnsetStringPropertyValue if there was no value provided during deserialization.
Warnings
Gets a list of the warning messages that were recorded during execution. Will be null
if there were no warnings.
public required string[]? Warnings { get; set; }
Property Value
- string[]
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()