Class TestOutputHelper
Default implementation of ITestOutputHelper.
public class TestOutputHelper : ITestOutputHelper
- Inheritance
-
TestOutputHelper
- Implements
- Inherited Members
Properties
Output
Gets the output provided by the test.
public 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
Initialize(IMessageBus, ITest)
Initialize the test output helper with information about a test.
public void Initialize(IMessageBus messageBus, ITest test)
Parameters
messageBusIMessageBustestITest
Uninitialize()
Resets the test output helper to its uninitialized state.
public void Uninitialize()
Write(string)
Adds text to the output.
public void Write(string message)
Parameters
messagestringThe message
Write(string, params object[])
Adds formatted text to the output.
public void Write(string format, params object[] args)
Parameters
WriteLine(string)
Adds text to the output, followed by NewLine.
public void WriteLine(string message)
Parameters
messagestringThe message
WriteLine(string, params object[])
Adds formatted text to the output, followed by NewLine.
public void WriteLine(string format, params object[] args)