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.Drivers.XmlExtensions Class Reference

Static Public Member Functions

static XmlNode ToXml (this ITest test, bool recursive)
 Returns an XmlNode representing a test More...
 
static XmlNode ToXml (this TestResult result, bool recursive)
 Returns an XmlNode representing a TestResult More...
 
static XmlNode AddElement (this XmlNode node, string name)
 Adds a new element as a child of an existing XmlNode and returns it. More...
 

Static Private Member Functions

static XmlNode AddTest (this XmlNode parent, ITest test, bool recursive)
 
static void AddResult (this XmlNode parent, TestResult result, bool recursive)
 
static void AddProperties (this XmlNode parent, ITest test)
 
static void AddProperty (this XmlNode parent, string key, object val)
 
static void AddFailureElement (this XmlNode parent, TestResult result)
 
static void AddReasonElement (this XmlNode parent, TestResult result)
 
static void AddAttribute (this XmlNode node, string name, string value)
 Adds an attribute with a specified name and value to an existing XmlNode. More...
 
static XmlNode AddElementWithCDataSection (this XmlNode node, string name, string data)
 Adds the a new element as a child of an existing node and returns it. A CDataSection is added to the new element using the data provided. More...
 
static string GetTranslatedResultState (ResultState resultState)
 

Member Function Documentation

static XmlNode NUnit.Engine.Drivers.XmlExtensions.ToXml ( this ITest  test,
bool  recursive 
)
inlinestatic

Returns an XmlNode representing a test

static XmlNode NUnit.Engine.Drivers.XmlExtensions.ToXml ( this TestResult  result,
bool  recursive 
)
inlinestatic

Returns an XmlNode representing a TestResult

static XmlNode NUnit.Engine.Drivers.XmlExtensions.AddTest ( this XmlNode  parent,
ITest  test,
bool  recursive 
)
inlinestaticprivate
static void NUnit.Engine.Drivers.XmlExtensions.AddResult ( this XmlNode  parent,
TestResult  result,
bool  recursive 
)
inlinestaticprivate
static void NUnit.Engine.Drivers.XmlExtensions.AddProperties ( this XmlNode  parent,
ITest  test 
)
inlinestaticprivate
static void NUnit.Engine.Drivers.XmlExtensions.AddProperty ( this XmlNode  parent,
string  key,
object  val 
)
inlinestaticprivate
static void NUnit.Engine.Drivers.XmlExtensions.AddFailureElement ( this XmlNode  parent,
TestResult  result 
)
inlinestaticprivate
static void NUnit.Engine.Drivers.XmlExtensions.AddReasonElement ( this XmlNode  parent,
TestResult  result 
)
inlinestaticprivate
static void NUnit.Engine.Drivers.XmlExtensions.AddAttribute ( this XmlNode  node,
string  name,
string  value 
)
inlinestaticprivate

Adds an attribute with a specified name and value to an existing XmlNode.

Parameters
nodeThe node to which the attribute should be added.
nameThe name of the attribute.
valueThe value of the attribute.
static XmlNode NUnit.Engine.Drivers.XmlExtensions.AddElement ( this XmlNode  node,
string  name 
)
inlinestatic

Adds a new element as a child of an existing XmlNode and returns it.

Parameters
nodeThe node to which the element should be added.
nameThe element name.
Returns
The newly created child element
static XmlNode NUnit.Engine.Drivers.XmlExtensions.AddElementWithCDataSection ( this XmlNode  node,
string  name,
string  data 
)
inlinestaticprivate

Adds the a new element as a child of an existing node and returns it. A CDataSection is added to the new element using the data provided.

Parameters
nodeThe node to which the element should be added.
nameThe element name.
dataThe data for the CDataSection.
Returns
static string NUnit.Engine.Drivers.XmlExtensions.GetTranslatedResultState ( ResultState  resultState)
inlinestaticprivate

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