C# Class NUnit.Framework.Interfaces.TestOutput

The TestOutput class holds a unit of output from a test to a specific output stream
Show file Open project: nunit/nunit Class Usage Examples

Public Methods

Method Description
TestOutput ( string text, string stream, string testName ) : System

Construct with text, output destination type and the name of the test that produced the output.

ToString ( ) : string

Return string representation of the object for debugging

ToXml ( ) : string

Convert the TestOutput object to an XML string

Method Details

TestOutput() public method

Construct with text, output destination type and the name of the test that produced the output.
public TestOutput ( string text, string stream, string testName ) : System
text string Text to be output
stream string Name of the stream or channel to which the text should be written
testName string FullName of test that produced the output
return System

ToString() public method

Return string representation of the object for debugging
public ToString ( ) : string
return string

ToXml() public method

Convert the TestOutput object to an XML string
public ToXml ( ) : string
return string