C# Class NUnitLite.NUnit2XmlOutputWriter

NUnit2XmlOutputWriter is able to create an xml file representing the result of a test run in NUnit 2.x format.
Inheritance: OutputWriter
Exibir arquivo Open project: nunit/nunit Class Usage Examples

Public Methods

Method Description
WriteResultFile ( ITestResult result, TextWriter writer, object>.IDictionary runSettings, TestFilter filter ) : void

Writes the result of a test run to a specified TextWriter.

WriteTestFile ( ITest test, TextWriter writer ) : void

Write info about a test

Private Methods

Method Description
InitializeXmlFile ( ITestResult result ) : void
StartTestElement ( ITestResult result ) : void
TerminateXmlFile ( ) : void
TranslateResult ( ResultState resultState ) : string
WriteCData ( string text ) : void
WriteCategories ( ITestResult result ) : void
WriteChildResults ( ITestResult result ) : void
WriteCultureInfo ( ) : void
WriteEnvironment ( ) : void
WriteFailureElement ( string message, string stackTrace ) : void
WriteProperties ( ITestResult result ) : void
WriteReasonElement ( string message ) : void
WriteResultElement ( ITestResult result ) : void
WriteXmlOutput ( ITestResult result, XmlWriter xmlWriter ) : void

Method Details

WriteResultFile() public method

Writes the result of a test run to a specified TextWriter.
public WriteResultFile ( ITestResult result, TextWriter writer, object>.IDictionary runSettings, TestFilter filter ) : void
result ITestResult The test result for the run
writer System.IO.TextWriter The TextWriter to which the xml will be written
runSettings object>.IDictionary
filter NUnit.Framework.Internal.TestFilter
return void

WriteTestFile() public method

Write info about a test
public WriteTestFile ( ITest test, TextWriter writer ) : void
test ITest The test
writer System.IO.TextWriter A TextWriter
return void