Table of Contents

Method SendDiagnosticMessage

Namespace
Xunit
Assembly
xunit.v3.core.dll

SendDiagnosticMessage(string)

Sends a diagnostic message. Will only be visible if the end user has enabled diagnostic messages. See https://xunit.net/docs/configuration-files for configuration information.

void SendDiagnosticMessage(string message)

Parameters

message string

The message to send

SendDiagnosticMessage(string, object?)

Sends a formatted diagnostic message. Will only be visible if the end user has enabled diagnostic messages. See https://xunit.net/docs/configuration-files for configuration information.

void SendDiagnosticMessage(string format, object? arg0)

Parameters

format string

A composite format string.

arg0 object

The value to replace {0} in the format string.

SendDiagnosticMessage(string, object?, object?)

Sends a formatted diagnostic message. Will only be visible if the end user has enabled diagnostic messages. See https://xunit.net/docs/configuration-files for configuration information.

void SendDiagnosticMessage(string format, object? arg0, object? arg1)

Parameters

format string

A composite format string.

arg0 object

The value to replace {0} in the format string.

arg1 object

The value to replace {1} in the format string.

SendDiagnosticMessage(string, object?, object?, object?)

Sends a formatted diagnostic message. Will only be visible if the end user has enabled diagnostic messages. See https://xunit.net/docs/configuration-files for configuration information.

void SendDiagnosticMessage(string format, object? arg0, object? arg1, object? arg2)

Parameters

format string

A composite format string.

arg0 object

The value to replace {0} in the format string.

arg1 object

The value to replace {1} in the format string.

arg2 object

The value to replace {2} in the format string.

SendDiagnosticMessage(string, params object?[])

Sends a formatted diagnostic message. Will only be visible if the end user has enabled diagnostic messages. See https://xunit.net/docs/configuration-files for configuration information.

void SendDiagnosticMessage(string format, params object?[] args)

Parameters

format string

A composite format string.

args object[]

An object array that contains zero or more objects to format.