FrameworkController
FrameworkController provides a facade for use in loading, browsing
and running tests without requiring a reference to the NUnit
framework. All calls are encapsulated in constructors for
this class and its nested classes, which only require the
types of the Common Type System as arguments.
The controller supports four actions: Load, Explore, Count and Run.
They are intended to be called by a driver, which should allow for
proper sequencing of calls. Load must be called before any of the
other actions. The driver may support other actions, such as
reload on run, by combining these calls.
CountTestsAction counts the number of test cases in the loaded TestSuite
held by the FrameworkController.
ExploreTestsAction returns info about the tests in an assembly
FrameworkControllerAction is the base class for all actions
performed against a FrameworkController.
LoadTestsAction loads a test into the FrameworkController
RunAsyncAction initiates an asynchronous test run, returning immediately
RunTestsAction runs the loaded TestSuite held by the FrameworkController.
StopRunAction stops an ongoing run.
Gets the Assembly for which this
Gets the AssemblyName or the path for which this FrameworkController was created
Gets the ITestAssemblyBuilder used by this controller instance.
Gets the ITestAssemblyRunner used by this controller instance.
Construct a FrameworkController using the default builder and runner.
Construct a FrameworkController using the default builder and runner.
public FrameworkController(string assemblyNameOrPath, string idPrefix, IDictionary settings, string runnerType, string builderType)
Construct a FrameworkController, specifying the types to be used
for the runner and builder. This constructor is provided for
purposes of development.
public FrameworkController(Assembly assembly, string idPrefix, IDictionary settings, string runnerType, string builderType)
Construct a FrameworkController, specifying the types to be used
for the runner and builder. This constructor is provided for
purposes of development.
Inserts environment element
Inserts settings element
Counts the number of test cases in the loaded TestSuite
Returns info about the tests in an assembly
Loads the tests in the assembly
Runs the tests in an assembly
Runs the tests in an assembly synchronously reporting back the test results through the callback
or through the return value
Stops the test run