IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
ResultHelper provides static methods for working with TestEngineResults to wrap, combiner and aggregate them in various ways. More...
Static Public Member Functions | |
static TestEngineResult | Aggregate (this TestEngineResult result, string elementName, string suiteType, string name, string fullName) |
Aggregate the XmlNodes under a TestEngineResult into a single XmlNode. More... | |
static TestEngineResult | Aggregate (this TestEngineResult result, string elementName, string name, string fullName) |
Aggregate the XmlNodes under a TestEngineResult into a single XmlNode. More... | |
static TestEngineResult | MakePackageResult (this TestEngineResult result, string name, string fullName) |
Aggregate all the separate assembly results of a project as a single node. More... | |
static TestEngineResult | Merge (IList< TestEngineResult > results) |
Merges multiple test engine results into a single result. The result element contains all the XML nodes found in the input. More... | |
static XmlNode | Aggregate (string elementName, string name, string fullName, IList< XmlNode > resultNodes) |
Aggregates a collection of XmlNodes under a single XmlNode. More... | |
static XmlNode | Aggregate (string elementName, string testType, string name, string fullName, IList< XmlNode > resultNodes) |
Aggregates a collection of XmlNodes under a single XmlNode. More... | |
Private Attributes | |
const string | TEST_SUITE_ELEMENT = "test-suite" |
const string | PROJECT_SUITE_TYPE = "Project" |
ResultHelper provides static methods for working with TestEngineResults to wrap, combiner and aggregate them in various ways.
|
inlinestatic |
Aggregate the XmlNodes under a TestEngineResult into a single XmlNode.
result | A new TestEngineResult with xml nodes for each assembly or project. |
elementName | The root node name under which to aggregate the nodes. |
suiteType | The suite type to associate with the TestEngineResult. |
name | The name of the TestEngineResult. |
fullName | The full name of the TestEngineResult. |
References NUnit.Engine.TestEngineResult.XmlNodes.
Referenced by NUnit.Engine.Internal.Tests.ResultHelperTests.AggregateXmlNodes().
|
inlinestatic |
Aggregate the XmlNodes under a TestEngineResult into a single XmlNode.
result | A new TestEngineResult with xml nodes for each assembly or project. |
elementName | The root node name under which to aggregate the results. |
name | The name of the TestEngineResult. |
fullName | The full name of the TestEngineResult. |
References NUnit.Engine.TestEngineResult.XmlNodes.
|
inlinestatic |
Aggregate all the separate assembly results of a project as a single node.
result | A new TestEngineResult with xml nodes for each assembly or project. |
name | The name of the TestEngineResult. |
fullName | The full name of the TestEngineResult. |
|
inlinestatic |
Merges multiple test engine results into a single result. The result element contains all the XML nodes found in the input.
results | A collection of TestEngineResult to merge. |
Used by AbstractTestRunner MakePackageResult method.
References NUnit.Engine.TestEngineResult.XmlNodes.
Referenced by NUnit.Engine.Runners.AggregatingTestRunner.ExploreTests(), NUnit.Engine.Runners.AggregatingTestRunner.LoadPackage(), NUnit.Engine.Internal.Tests.ResultHelperTests.MergeAndAggregateTestResults(), NUnit.Engine.Internal.Tests.ResultHelperTests.MergeTestResults(), and NUnit.Engine.Runners.AggregatingTestRunner.RunTests().
|
inlinestatic |
Aggregates a collection of XmlNodes under a single XmlNode.
elementName | The root node name under which to aggregate the results. |
name | The name to associated with the root node. |
fullName | The full name to associated with the root node. |
resultNodes | A collection of XmlNodes to aggregate |
|
inlinestatic |
Aggregates a collection of XmlNodes under a single XmlNode.
elementName | The root node name under which to aggregate the results. |
testType | The type to associated with the root node. |
name | The name to associated with the root node. |
fullName | The full name to associated with the root node. |
resultNodes | A collection of XmlNodes to aggregate |
|
private |
|
private |