C# Class NAnt.NUnit1.Types.XmlResultFormatter

Prints detailed information about running tests in XML format.
Inheritance: IResultFormatter
ファイルを表示 Open project: skolima/NAnt

Public Methods

Method Description
AddError ( ITest test, Exception t ) : void
AddFailure ( ITest test, AssertionFailedError t ) : void
EndTest ( ITest test ) : void
EndTestSuite ( NAnt.NUnit1.Types.TestResultExtra result ) : void

Called when the whole test suite has ended.

SetOutput ( TextWriter writer ) : void

Sets the TextWriter the formatter is supposed to write its results to.

StartTest ( ITest test ) : void
StartTestSuite ( NAnt.NUnit1.Types.NUnitTestData suite ) : void

Called when the whole test suite has started.

XmlResultFormatter ( ) : System

Initializes a new instance of the XmlResultFormatter class.

Private Methods

Method Description
FormatError ( string type, ITest test, Exception t ) : void

Method Details

AddError() public method

public AddError ( ITest test, Exception t ) : void
test ITest
t System.Exception
return void

AddFailure() public method

public AddFailure ( ITest test, AssertionFailedError t ) : void
test ITest
t AssertionFailedError
return void

EndTest() public method

public EndTest ( ITest test ) : void
test ITest
return void

EndTestSuite() public method

Called when the whole test suite has ended.
public EndTestSuite ( NAnt.NUnit1.Types.TestResultExtra result ) : void
result NAnt.NUnit1.Types.TestResultExtra
return void

SetOutput() public method

Sets the TextWriter the formatter is supposed to write its results to.
public SetOutput ( TextWriter writer ) : void
writer System.IO.TextWriter
return void

StartTest() public method

public StartTest ( ITest test ) : void
test ITest
return void

StartTestSuite() public method

Called when the whole test suite has started.
public StartTestSuite ( NAnt.NUnit1.Types.NUnitTestData suite ) : void
suite NAnt.NUnit1.Types.NUnitTestData
return void

XmlResultFormatter() public method

Initializes a new instance of the XmlResultFormatter class.
public XmlResultFormatter ( ) : System
return System