<PackageReference Include="NUnit" Version="3.0.0-beta-1" />

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.

public string AssemblyPath { get; }

Gets the path to the assembly for this FrameworkController

public ITestAssemblyBuilder Builder { get; }

Gets the ITestAssemblyBuilder used by this controller instance.

public ITestAssemblyRunner Runner { get; }

Gets the ITestAssemblyRunner used by this controller instance.

public IDictionary Settings { get; }

Gets a dictionary of settings for the FrameworkController

public FrameworkController(string assemblyPath, IDictionary settings)

Construct a FrameworkController using the default builder and runner.

public FrameworkController(string assemblyPath, 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.