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
NUnit.Engine.TestEngineResult Class Reference

Wrapper class for the xml-formatted results produced by the test engine for most operations. The XML is stored as a string in order to allow serialization and actual XmlNodes are created on demand. More...

+ Collaboration diagram for NUnit.Engine.TestEngineResult:

Public Member Functions

 TestEngineResult (XmlNode xml)
 Construct a TestResult from an XmlNode More...
 
 TestEngineResult (string xml)
 Construct a test from a string holding xml More...
 
 TestEngineResult ()
 Default constructor used when adding multiple results More...
 
void Add (string xml)
 
void Add (XmlNode xml)
 

Properties

bool IsSingle [get]
 Gets a flag indicating whether this is a single result having only one XmlNode associated with it. More...
 
IList< XmlNode > XmlNodes [get]
 Gets the xml representing a test result as an XmlNode More...
 
XmlNode Xml [get]
 Gets the XML representing a single test result. More...
 

Private Attributes

List< string > _xmlText = new List<string>()
 
List< XmlNode > _xmlNodes = new List<XmlNode>()
 

Detailed Description

Wrapper class for the xml-formatted results produced by the test engine for most operations. The XML is stored as a string in order to allow serialization and actual XmlNodes are created on demand.

In principal, there should only be one XmlNode in a result. However, as work progresses, there may temporarily be multiple nodes, which have not yet been aggregated under a higher level suite. For that reason, TestEngineResult maintains a list of XmlNodes and another of the corresponding text.

Static methods are provided for aggregating the internal XmlNodes into a single node as well as for combining multiple TestEngineResults into one.

Constructor & Destructor Documentation

NUnit.Engine.TestEngineResult.TestEngineResult ( XmlNode  xml)
inline

Construct a TestResult from an XmlNode

Parameters
xmlAn XmlNode representing the result
NUnit.Engine.TestEngineResult.TestEngineResult ( string  xml)
inline

Construct a test from a string holding xml

Parameters
xmlA string containing the xml result
NUnit.Engine.TestEngineResult.TestEngineResult ( )
inline

Default constructor used when adding multiple results

Member Function Documentation

void NUnit.Engine.TestEngineResult.Add ( string  xml)
inline
void NUnit.Engine.TestEngineResult.Add ( XmlNode  xml)
inline

Member Data Documentation

List<string> NUnit.Engine.TestEngineResult._xmlText = new List<string>()
private
List<XmlNode> NUnit.Engine.TestEngineResult._xmlNodes = new List<XmlNode>()
private

Property Documentation

IList<XmlNode> NUnit.Engine.TestEngineResult.XmlNodes
get

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