Table of Contents

Class BeforeTestFinished

Namespace
Xunit.v3
Assembly
xunit.v3.core.dll

Default implementation of IBeforeTestFinished.

[JsonTypeID("before-test-finished")]
public sealed class BeforeTestFinished : TestMessage, IBeforeTestFinished, ITestMessage, ITestCaseMessage, ITestMethodMessage, ITestClassMessage, ITestCollectionMessage, ITestAssemblyMessage, IMessageSinkMessage, IJsonSerializable
Inheritance
BeforeTestFinished
Implements
Inherited Members

Properties

AttributeName

Gets the fully qualified type name of the IBeforeAfterTestAttribute.

Methods

Serialize(JsonObjectSerializer)

Override to serialize the values in the message into JSON.

ToString()
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.