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.Framework.Internal.Builders.NamespaceTreeBuilder Class Reference

Class that can build a tree of automatic namespace suites from a group of fixtures. More...

+ Collaboration diagram for NUnit.Framework.Internal.Builders.NamespaceTreeBuilder:

Public Member Functions

 NamespaceTreeBuilder (TestSuite rootSuite)
 Initializes a new instance of the NamespaceTreeBuilder class. More...
 
void Add (IList< Test > fixtures)
 Adds the specified fixtures to the tree. More...
 
void Add (TestSuite fixture)
 Adds the specified fixture to the tree. More...
 

Properties

TestSuite RootSuite [get]
 Gets the root entry in the tree created by the NamespaceTreeBuilder. More...
 

Private Member Functions

TestSuite BuildFromNameSpace (string ns)
 
void AddSetUpFixture (TestSuite newSetupFixture, TestSuite containingSuite, string ns)
 

Static Private Member Functions

static string GetNamespaceForFixture (TestSuite fixture)
 

Private Attributes

Dictionary< string, TestSuitenamespaceSuites = new Dictionary<string, TestSuite>()
 NamespaceDictionary of all test suites we have created to represent namespaces. Used to locate namespace parent suites for fixtures. More...
 
TestSuite rootSuite
 The root of the test suite being created by this builder. More...
 

Detailed Description

Class that can build a tree of automatic namespace suites from a group of fixtures.

Constructor & Destructor Documentation

NUnit.Framework.Internal.Builders.NamespaceTreeBuilder.NamespaceTreeBuilder ( TestSuite  rootSuite)
inline

Initializes a new instance of the NamespaceTreeBuilder class.

Parameters
rootSuiteThe root suite.

Member Function Documentation

void NUnit.Framework.Internal.Builders.NamespaceTreeBuilder.Add ( IList< Test fixtures)
inline

Adds the specified fixtures to the tree.

Parameters
fixturesThe fixtures to be added.

Referenced by NUnit.Framework.Api.DefaultTestAssemblyBuilder.BuildTestAssembly().

void NUnit.Framework.Internal.Builders.NamespaceTreeBuilder.Add ( TestSuite  fixture)
inline

Adds the specified fixture to the tree.

Parameters
fixtureThe fixture to be added.

References NUnit.Framework.Internal.TestSuite.Add().

static string NUnit.Framework.Internal.Builders.NamespaceTreeBuilder.GetNamespaceForFixture ( TestSuite  fixture)
inlinestaticprivate
TestSuite NUnit.Framework.Internal.Builders.NamespaceTreeBuilder.BuildFromNameSpace ( string  ns)
inlineprivate
void NUnit.Framework.Internal.Builders.NamespaceTreeBuilder.AddSetUpFixture ( TestSuite  newSetupFixture,
TestSuite  containingSuite,
string  ns 
)
inlineprivate

Member Data Documentation

Dictionary<string, TestSuite> NUnit.Framework.Internal.Builders.NamespaceTreeBuilder.namespaceSuites = new Dictionary<string, TestSuite>()
private

NamespaceDictionary of all test suites we have created to represent namespaces. Used to locate namespace parent suites for fixtures.

TestSuite NUnit.Framework.Internal.Builders.NamespaceTreeBuilder.rootSuite
private

The root of the test suite being created by this builder.

Property Documentation

TestSuite NUnit.Framework.Internal.Builders.NamespaceTreeBuilder.RootSuite
get

Gets the root entry in the tree created by the NamespaceTreeBuilder.

The root suite.

Referenced by NUnit.Framework.Api.DefaultTestAssemblyBuilder.BuildTestAssembly().


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