C# Class NUnit.Framework.Internal.Execution.EventListenerTextWriter

EventListenerTextWriter is a TextWriter that channels output to the TestOutput method of an ITestListener.
Inheritance: System.IO.TextWriter
ファイルを表示 Open project: nunit/nunit Class Usage Examples

Public Methods

Method Description
EventListenerTextWriter ( string streamName, TextWriter defaultWriter ) : System

Construct an EventListenerTextWriter

Write ( char aChar ) : void

Write a single char

Write ( string aString ) : void

Write a string

WriteLine ( string aString ) : void

Write a string followed by a newline

Method Details

EventListenerTextWriter() public method

Construct an EventListenerTextWriter
public EventListenerTextWriter ( string streamName, TextWriter defaultWriter ) : System
streamName string The name of the stream to use for events
defaultWriter System.IO.TextWriter The default writer to use if no listener is available
return System

Write() public method

Write a single char
public Write ( char aChar ) : void
aChar char
return void

Write() public method

Write a string
public Write ( string aString ) : void
aString string
return void

WriteLine() public method

Write a string followed by a newline
public WriteLine ( string aString ) : void
aString string
return void