Class TestSuiteRunConfig
Represents a test suite run configuration.
public class TestSuiteRunConfig : IComparable<TestSuiteRunConfig>
- Inheritance
-
TestSuiteRunConfig
- Implements
- Inherited Members
Constructors
TestSuiteRunConfig(XmlNode, TestSuite)
Initializes a new instance of the TestSuiteRunConfig class.
public TestSuiteRunConfig(XmlNode node, TestSuite testSuite)
Parameters
nodeXmlNodeAn XML node containing the definition of this run configuration.
testSuiteTestSuiteThe test suite.
TestSuiteRunConfig(string, TestSuite)
Initializes a new instance of the TestSuiteRunConfig class.
public TestSuiteRunConfig(string name, TestSuite testSuite)
Parameters
Properties
Name
Gets or sets the run configuration name.
public string Name { get; set; }
Property Value
- string
The run configuration name.
TestContainers
Gets the run configuration test containers.
public SortedList<CaseInsensitiveString, CaseInsensitiveString> TestContainers { get; }
Property Value
- SortedList<CaseInsensitiveString, CaseInsensitiveString>
The run configuration test containers.
Methods
AddTestContainer(CaseInsensitiveString)
Adds a test container to the run configuration.
public void AddTestContainer(CaseInsensitiveString testContainerId)
Parameters
testContainerIdCaseInsensitiveStringThe test container id.
CompareTo(TestSuiteRunConfig)
Compares the current TestSuiteRunConfig with another TestSuiteRunConfig.
public int CompareTo(TestSuiteRunConfig other)
Parameters
otherTestSuiteRunConfigAn TestSuiteRunConfig to compare with this object.
Returns
- int
A 32-bit signed integer that indicates the relative order of the objects being compared. The sorting is ascending by name. The return value has the following meanings: Value Meaning Less than zero This TestSuiteRunConfig is less than the
otherparameter. Zero This TestSuiteRunConfig is equal toother. Greater than zero This TestSuiteRunConfig is greater thanother.
ContainsActiveTestContainer(ITestContainer)
Determines whether this run configuration contains a ITestContainer with
the specified testContainer.
public bool ContainsActiveTestContainer(ITestContainer testContainer)
Parameters
testContainerITestContainerThe test container.
Returns
- bool
trueif this run configuration contains a ITestContainer with the specifiedtestContainer; otherwise,false.
CreateCopy()
Creates a deep copy of this run configuration.
public TestSuiteRunConfig CreateCopy()
Returns
- TestSuiteRunConfig
A new run configuration that is a copy of this run configuration.
GetActiveTestContainers()
Gets all run configuration test containers which are actually in the test suite run configeration.
public IList<ITestContainer> GetActiveTestContainers()
Returns
- IList<ITestContainer>
A list containing the active test containers.
GetRunConfigFixName(string)
Gets a valid run configuration name.
public static string GetRunConfigFixName(string name)
Parameters
namestringThe run configuration name to fix.
Returns
- string
The valid run configuration name
GetXMLNode(XmlNode)
Gets an XML node containing the definition of this run configuration.
public XmlNode GetXMLNode(XmlNode parent)
Parameters
parentXmlNodeThe parent XML node.
Returns
- XmlNode
An XML node containing the definition of this run configuration.
RefreshCheckStates()
Refreshes the run configuration check states.
public void RefreshCheckStates()
ToString()
Returns a string that represents the name of this instance.
public override string ToString()