Class TestProgressReporter
TestProgressReporter translates ITestListener events into the async callbacks that are used to inform the client software about the progress of a test run.
public sealed class TestProgressReporter : ITestListener
- Inheritance
-
TestProgressReporter
- Implements
- Inherited Members
Constructors
TestProgressReporter(ICallbackEventHandler)
Initializes a new instance of the TestProgressReporter class.
public TestProgressReporter(ICallbackEventHandler handler)
Parameters
handler
ICallbackEventHandlerThe callback handler to be used for reporting progress.
Methods
SendMessage(TestMessage)
Called when a test produces a message to be sent to listeners
public void SendMessage(TestMessage message)
Parameters
message
TestMessageA TestMessage object containing the text to send
TestFinished(ITestResult)
Called when a test has finished. Sends a result summary to the callback.
public void TestFinished(ITestResult result)
Parameters
result
ITestResultThe result of the test
TestOutput(TestOutput)
Called when a test produces output for immediate display
public void TestOutput(TestOutput output)
Parameters
output
TestOutputA TestOutput object containing the text to display
TestStarted(ITest)
Called when a test has just started
public void TestStarted(ITest test)
Parameters
test
ITestThe test that is starting