Table of Contents

Interface ITestOutputHelper

Namespace
Xunit
Assembly
xunit.v3.core.dll

Represents a class which can be used to provide test output.

public interface ITestOutputHelper

Properties

Output

Gets the output provided by the test.

string Output { get; }

Property Value

string

Remarks

Note: This also ensures that any partial output that hasn't been reported yet gets reported. Calling in the middle of test execution is therefore not recommend.

Methods

Write(string)

Adds text to the output.

void Write(string message)

Parameters

message string

The message

Write(string, params object[])

Adds formatted text to the output.

void Write(string format, params object[] args)

Parameters

format string

The message format

args object[]

The format arguments

WriteLine(string)

Adds text to the output, followed by NewLine.

void WriteLine(string message)

Parameters

message string

The message

WriteLine(string, params object[])

Adds formatted text to the output, followed by NewLine.

void WriteLine(string format, params object[] args)

Parameters

format string

The message format

args object[]

The format arguments