C# Class NUnit.Framework.Internal.TestSuite

TestSuite represents a composite test, which contains other tests.
Inheritance: Test
ファイルを表示 Open project: nunit/nunit Class Usage Examples

Public Methods

Method Description
Add ( Test test ) : void

Adds a test to the suite.

AddToXml ( TNode parentNode, bool recursive ) : TNode

Returns an XmlNode representing the current result after adding it as a child of the supplied parent node.

MakeTestResult ( ) : TestResult

Overridden to return a TestSuiteResult.

Sort ( ) : void

Sorts tests under this suite.

Sort ( IComparer comparer ) : void

Sorts tests under this suite using the specified comparer.

TestSuite ( ITypeInfo fixtureType ) : System

Initializes a new instance of the TestSuite class.

TestSuite ( Type fixtureType ) : System

Initializes a new instance of the TestSuite class.

TestSuite ( string name ) : System

Initializes a new instance of the TestSuite class.

TestSuite ( string parentSuiteName, string name ) : System

Initializes a new instance of the TestSuite class.

Protected Methods

Method Description
CheckSetUpTearDownMethods ( Type attrType ) : void

Check that setup and teardown methods marked by certain attributes meet NUnit's requirements and mark the tests not runnable otherwise.

Method Details

Add() public method

Adds a test to the suite.
public Add ( Test test ) : void
test Test The test.
return void

AddToXml() public method

Returns an XmlNode representing the current result after adding it as a child of the supplied parent node.
public AddToXml ( TNode parentNode, bool recursive ) : TNode
parentNode TNode The parent node.
recursive bool If true, descendant results are included
return TNode

CheckSetUpTearDownMethods() protected method

Check that setup and teardown methods marked by certain attributes meet NUnit's requirements and mark the tests not runnable otherwise.
protected CheckSetUpTearDownMethods ( Type attrType ) : void
attrType Type The attribute type to check for
return void

MakeTestResult() public method

Overridden to return a TestSuiteResult.
public MakeTestResult ( ) : TestResult
return TestResult

Sort() public method

Sorts tests under this suite.
public Sort ( ) : void
return void

Sort() public method

Sorts tests under this suite using the specified comparer.
public Sort ( IComparer comparer ) : void
comparer IComparer The comparer.
return void

TestSuite() public method

Initializes a new instance of the TestSuite class.
public TestSuite ( ITypeInfo fixtureType ) : System
fixtureType ITypeInfo Type of the fixture.
return System

TestSuite() public method

Initializes a new instance of the TestSuite class.
public TestSuite ( Type fixtureType ) : System
fixtureType Type Type of the fixture.
return System

TestSuite() public method

Initializes a new instance of the TestSuite class.
public TestSuite ( string name ) : System
name string The name of the suite.
return System

TestSuite() public method

Initializes a new instance of the TestSuite class.
public TestSuite ( string parentSuiteName, string name ) : System
parentSuiteName string Name of the parent suite.
name string The name of the suite.
return System