Class DiagnosticMessage
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.dll
Default implementation of IDiagnosticMessage.
[JsonTypeID("diagnostic")]
public sealed class DiagnosticMessage : MessageSinkMessage, IDiagnosticMessage, IMessageSinkMessage, IJsonSerializable
- Inheritance
-
DiagnosticMessage
- Implements
- Inherited Members
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
- Serialize(JsonObjectSerializer)
Override to serialize the values in the message into JSON.
- 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.