Table of Contents

Class InternalDiagnosticMessage

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

Default implementation of IInternalDiagnosticMessage.

[JsonTypeID("internal-diagnostic")]
public sealed class InternalDiagnosticMessage : MessageSinkMessage, IInternalDiagnosticMessage, IMessageSinkMessage, IJsonSerializable
Inheritance
InternalDiagnosticMessage
Implements
Inherited Members

Constructors

InternalDiagnosticMessage()

Creates a new instance of the InternalDiagnosticMessage class.

InternalDiagnosticMessage(string)

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

InternalDiagnosticMessage(string, object?)

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

InternalDiagnosticMessage(string, object?, object?)

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

InternalDiagnosticMessage(string, object?, object?, object?)

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

InternalDiagnosticMessage(string, params object?[])

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

Properties

Message

Gets the internal diagnostic message.

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.