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
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
messagestringThe message
Write(string, params object[])
Adds formatted text to the output.
void Write(string format, params object[] args)
Parameters
WriteLine(string)
Adds text to the output, followed by NewLine.
void WriteLine(string message)
Parameters
messagestringThe message
WriteLine(string, params object[])
Adds formatted text to the output, followed by NewLine.
void WriteLine(string format, params object[] args)