C# Class NUnit.Framework.Internal.TestSuite

TestSuite represents a composite test, which contains other tests.
Inheritance: Test
Afficher le fichier Open project: nunit/nunit Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

Adds a test to the suite.
public Add ( Test test ) : void
test Test The test.
Résultat void

AddToXml() public méthode

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
Résultat TNode

CheckSetUpTearDownMethods() protected méthode

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
Résultat void

MakeTestResult() public méthode

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

Sort() public méthode

Sorts tests under this suite.
public Sort ( ) : void
Résultat void

Sort() public méthode

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

TestSuite() public méthode

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

TestSuite() public méthode

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

TestSuite() public méthode

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

TestSuite() public méthode

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.
Résultat System