Table of Contents

Class TestClassMessage

Namespace
Xunit.Runner.Common
Assembly
xunit.v3.runner.common.dll

Default implementation of ITestClassMessage.

public abstract class TestClassMessage : TestCollectionMessage, IJsonDeserializable, ITestClassMessage, ITestCollectionMessage, ITestAssemblyMessage, IMessageSinkMessage, IJsonSerializable
Inheritance
TestClassMessage
Implements
Derived
Inherited Members
MessageSinkMessage.ToDisplayString<T>(T[])
Extension Methods
Xunit.Sdk.MessageSinkMessageExtensions.DispatchWhen``1(Xunit.Sdk.IMessageSinkMessage,Xunit.Runner.Common.MessageHandler{``0})

Properties

TestClassUniqueID

Gets the test class's unique ID. Can be used to correlate test messages with the appropriate test class that they're related to. Will be null if the test did not originate from a class.

Methods

Deserialize(IReadOnlyDictionary<string, object?>)

Override to deserialize the values in the dictionary into the message.

Serialize(JsonObjectSerializer)

Override to serialize the values in the message into JSON.

ToString()