Class TestFinished
Default implementation of ITestFinished.
[JsonTypeID("test-finished")]
public sealed class TestFinished : TestResultMessage, IJsonDeserializable, ITestFinished, ITestResultMessage, ITestMessage, ITestCaseMessage, ITestMethodMessage, ITestClassMessage, ITestCollectionMessage, ITestAssemblyMessage, IMessageSinkMessage, IJsonSerializable, IExecutionMetadata
- Inheritance
-
TestFinished
- Implements
- Inherited Members
- Extension Methods
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
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.