Table of Contents

Class DiagnosticMessage

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

Default implementation of IDiagnosticMessage.

[JsonTypeID("diagnostic")]
public sealed class DiagnosticMessage : MessageSinkMessage, IJsonDeserializable, IDiagnosticMessage, IMessageSinkMessage, IJsonSerializable
Inheritance
DiagnosticMessage
Implements
Inherited Members
Extension Methods
Xunit.Sdk.MessageSinkMessageExtensions.DispatchWhen``1(Xunit.Sdk.IMessageSinkMessage,Xunit.Runner.Common.MessageHandler{``0})

Constructors

DiagnosticMessage()

Creates a new instance of the DiagnosticMessage class.

DiagnosticMessage(string)

Creates a new instance of the DiagnosticMessage class with the provided message.

DiagnosticMessage(string, object?)

Creates a new instance of the DiagnosticMessage class with the provided message format and single argument.

DiagnosticMessage(string, object?, object?)

Creates a new instance of the DiagnosticMessage class with the provided message format and two arguments.

DiagnosticMessage(string, object?, object?, object?)

Creates a new instance of the DiagnosticMessage class with the provided message format and three arguments.

DiagnosticMessage(string, params object?[])

Creates a new instance of the DiagnosticMessage class with the provided message format and multiple arguments.

Properties

Message

Gets the diagnostic message.

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