<PackageReference Include="NUnit" Version="3.0.0-rc-2" />

ITestAssemblyRunner

public interface ITestAssemblyRunner
The ITestAssemblyRunner interface is implemented by classes that are able to execute a suite of tests loaded from an assembly.
bool IsTestComplete { get; }

Indicates whether a test run is complete

bool IsTestLoaded { get; }

Indicates whether a test has been loaded

bool IsTestRunning { get; }

Indicates whether a test is currently running

ITest LoadedTest { get; }

Gets the tree of loaded tests, or null if no tests have been loaded.

Gets the tree of test results, if the test run is completed, otherwise null.

Count Test Cases using a filter

ITest Load(string assemblyName, IDictionary settings)

Loads the tests found in an Assembly, returning an indication of whether or not the load succeeded.

ITest Load(Assembly assembly, IDictionary settings)

Loads the tests found in an Assembly, returning an indication of whether or not the load succeeded.

Run selected tests and return a test result. The test is run synchronously, and the listener interface is notified as it progresses.

void RunAsync(ITestListener listener, ITestFilter filter)

Run selected tests asynchronously, notifying the listener interface as it progresses.

void StopRun(bool force)

Signal any test run that is in process to stop. Return without error if no test is running.

bool WaitForCompletion(int timeout)

Wait for the ongoing run to complete.