IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
NUnitLite.NUnit2XmlOutputWriter Class Reference

NUnit2XmlOutputWriter is able to create an xml file representing the result of a test run in NUnit 2.x format. More...

+ Inheritance diagram for NUnitLite.NUnit2XmlOutputWriter:
+ Collaboration diagram for NUnitLite.NUnit2XmlOutputWriter:

Public Member Functions

override void WriteTestFile (ITest test, TextWriter writer)
 Write info about a test More...
 
override void WriteResultFile (ITestResult result, TextWriter writer, IDictionary runSettings, TestFilter filter)
 Writes the result of a test run to a specified TextWriter. More...
 
- Public Member Functions inherited from NUnitLite.OutputWriter
void WriteResultFile (ITestResult result, string outputPath, IDictionary runSettings, TestFilter filter)
 Writes a test result to a file More...
 
void WriteTestFile (ITest test, string outputPath)
 Writes test info to a file More...
 

Private Member Functions

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

Private Attributes

XmlWriter xmlWriter
 

Detailed Description

NUnit2XmlOutputWriter is able to create an xml file representing the result of a test run in NUnit 2.x format.

Member Function Documentation

override void NUnitLite.NUnit2XmlOutputWriter.WriteTestFile ( ITest  test,
TextWriter  writer 
)
inlinevirtual

Write info about a test

Parameters
testThe test
writerA TextWriter

Implements NUnitLite.OutputWriter.

override void NUnitLite.NUnit2XmlOutputWriter.WriteResultFile ( ITestResult  result,
TextWriter  writer,
IDictionary  runSettings,
TestFilter  filter 
)
inlinevirtual

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

Parameters
resultThe test result for the run
writerThe TextWriter to which the xml will be written

Implements NUnitLite.OutputWriter.

References NUnitLite.NUnit2XmlOutputWriter.WriteXmlOutput().

Referenced by NUnitLite.Tests.NUnit2XmlOutputWriterTests.RunMockAssemblyTests().

void NUnitLite.NUnit2XmlOutputWriter.WriteCultureInfo ( )
inlineprivate
void NUnitLite.NUnit2XmlOutputWriter.WriteEnvironment ( )
inlineprivate
void NUnitLite.NUnit2XmlOutputWriter.TerminateXmlFile ( )
inlineprivate
string NUnitLite.NUnit2XmlOutputWriter.TranslateResult ( ResultState  resultState)
inlineprivate
void NUnitLite.NUnit2XmlOutputWriter.WriteReasonElement ( string  message)
inlineprivate
void NUnitLite.NUnit2XmlOutputWriter.WriteFailureElement ( string  message,
string  stackTrace 
)
inlineprivate
void NUnitLite.NUnit2XmlOutputWriter.WriteChildResults ( ITestResult  result)
inlineprivate
void NUnitLite.NUnit2XmlOutputWriter.WriteCData ( string  text)
inlineprivate

Member Data Documentation

XmlWriter NUnitLite.NUnit2XmlOutputWriter.xmlWriter
private

The documentation for this class was generated from the following file: