IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
Class that can build a tree of automatic namespace suites from a group of fixtures. More...
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, TestSuite > | namespaceSuites = 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... | |
Class that can build a tree of automatic namespace suites from a group of fixtures.
|
inline |
Initializes a new instance of the NamespaceTreeBuilder class.
rootSuite | The root suite. |
|
inline |
Adds the specified fixtures to the tree.
fixtures | The fixtures to be added. |
Referenced by NUnit.Framework.Api.DefaultTestAssemblyBuilder.BuildTestAssembly().
|
inline |
Adds the specified fixture to the tree.
fixture | The fixture to be added. |
References NUnit.Framework.Internal.TestSuite.Add().
|
inlinestaticprivate |
References NUnit.Framework.Internal.Test.FullName.
|
inlineprivate |
References NUnit.Framework.Internal.TestSuite.Add().
|
private |
NamespaceDictionary of all test suites we have created to represent namespaces. Used to locate namespace parent suites for fixtures.
|
private |
The root of the test suite being created by this builder.
|
get |
Gets the root entry in the tree created by the NamespaceTreeBuilder.
The root suite.
Referenced by NUnit.Framework.Api.DefaultTestAssemblyBuilder.BuildTestAssembly().