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.Api.DefaultTestAssemblyBuilder Class Reference

DefaultTestAssemblyBuilder loads a single assembly and builds a TestSuite containing test fixtures present in the assembly. More...

+ Inheritance diagram for NUnit.Framework.Api.DefaultTestAssemblyBuilder:
+ Collaboration diagram for NUnit.Framework.Api.DefaultTestAssemblyBuilder:

Public Member Functions

 DefaultTestAssemblyBuilder ()
 Initializes a new instance of the DefaultTestAssemblyBuilder class. More...
 
ITest Build (Assembly assembly, IDictionary options)
 Build a suite of tests from a provided assembly More...
 
ITest Build (string assemblyName, IDictionary options)
 Build a suite of tests given the filename of an assembly More...
 

Private Member Functions

TestSuite Build (Assembly assembly, string assemblyPath, IDictionary options)
 
IList< TestGetFixtures (Assembly assembly, IList names)
 
IList< Type > GetCandidateFixtureTypes (Assembly assembly, IList names)
 
TestSuite BuildTestAssembly (Assembly assembly, string assemblyName, IList< Test > fixtures)
 

Private Attributes

ISuiteBuilder _defaultSuiteBuilder
 The default suite builder used by the test assembly builder. More...
 

Static Private Attributes

static Logger log = InternalTrace.GetLogger(typeof(DefaultTestAssemblyBuilder))
 

Detailed Description

DefaultTestAssemblyBuilder loads a single assembly and builds a TestSuite containing test fixtures present in the assembly.

Constructor & Destructor Documentation

NUnit.Framework.Api.DefaultTestAssemblyBuilder.DefaultTestAssemblyBuilder ( )
inline

Initializes a new instance of the DefaultTestAssemblyBuilder class.

Member Function Documentation

ITest NUnit.Framework.Api.DefaultTestAssemblyBuilder.Build ( Assembly  assembly,
IDictionary  options 
)
inline

Build a suite of tests from a provided assembly

Parameters
assemblyThe assembly from which tests are to be built
optionsA dictionary of options to use in building the suite
Returns
A TestSuite containing the tests found in the assembly

Implements NUnit.Framework.Api.ITestAssemblyBuilder.

References NUnit.Common.Logger.Debug(), NUnit.Common.AssemblyHelper.GetAssemblyName(), and NUnit.Common.AssemblyHelper.GetAssemblyPath().

ITest NUnit.Framework.Api.DefaultTestAssemblyBuilder.Build ( string  assemblyName,
IDictionary  options 
)
inline

Build a suite of tests given the filename of an assembly

Parameters
assemblyNameThe filename of the assembly from which tests are to be built
optionsA dictionary of options to use in building the suite
Returns
A TestSuite containing the tests found in the assembly

Implements NUnit.Framework.Api.ITestAssemblyBuilder.

References NUnit.Common.Logger.Debug(), NUnit.Common.AssemblyHelper.Load(), NUnit.Framework.Internal.Test.Properties, NUnit.Framework.Internal.Test.RunState, NUnit.Framework.Interfaces.IPropertyBag.Set(), and NUnit.Framework.Internal.PropertyNames.SkipReason.

TestSuite NUnit.Framework.Api.DefaultTestAssemblyBuilder.Build ( Assembly  assembly,
string  assemblyPath,
IDictionary  options 
)
inlineprivate
IList<Type> NUnit.Framework.Api.DefaultTestAssemblyBuilder.GetCandidateFixtureTypes ( Assembly  assembly,
IList  names 
)
inlineprivate

Member Data Documentation

Logger NUnit.Framework.Api.DefaultTestAssemblyBuilder.log = InternalTrace.GetLogger(typeof(DefaultTestAssemblyBuilder))
staticprivate
ISuiteBuilder NUnit.Framework.Api.DefaultTestAssemblyBuilder._defaultSuiteBuilder
private

The default suite builder used by the test assembly builder.


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