Class TestFinished
Default implementation of ITestFinished.
[JsonTypeID("test-finished")]
public sealed class TestFinished : TestResultMessage, ITestFinished, ITestResultMessage, ITestMessage, ITestCaseMessage, ITestMethodMessage, ITestClassMessage, ITestCollectionMessage, ITestAssemblyMessage, IMessageSinkMessage, IJsonSerializable, IExecutionMetadata
- Inheritance
-
TestFinished
- Implements
- Inherited Members
Properties
Attachments
Gets any attachments that were added to the test result via Xunit.TestContext.AddAttachment.
public required IReadOnlyDictionary<string, TestAttachment> Attachments { 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.
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)