Table of Contents

Class ConsoleDiagnosticMessageSink

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

Logs diagnostic messages to the system console.

public class ConsoleDiagnosticMessageSink : IMessageSink
Inheritance
ConsoleDiagnosticMessageSink
Implements
Inherited Members

Methods

OnMessage(IMessageSinkMessage)

Reports the presence of a message on the message bus. This method should never throw exceptions.

TryCreate(ConsoleHelper, bool, bool, bool, string?, bool)

Tries to create a new instance of the ConsoleDiagnosticMessageSink which will display instances of IDiagnosticMessage and IInternalDiagnosticMessage to the Console. May return null if both showDiagnosticMessages and showInternalDiagnosticMessages are false.