<PackageReference Include="NUnit" Version="4.2.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.
using NUnit.Framework.Interfaces; using System.Collections.Generic; using System.Reflection; using System.Runtime.CompilerServices; namespace NUnit.Framework.Api { [System.Runtime.CompilerServices.NullableContext(1)] public interface ITestAssemblyRunner { [System.Runtime.CompilerServices.Nullable(2)] ITest LoadedTest { [System.Runtime.CompilerServices.NullableContext(2)] get; } [System.Runtime.CompilerServices.Nullable(2)] ITestResult Result { [System.Runtime.CompilerServices.NullableContext(2)] get; } bool IsTestLoaded { get; } bool IsTestRunning { get; } bool IsTestComplete { get; } ITest Load(string assemblyName, IDictionary<string, object> settings); ITest Load(Assembly assembly, IDictionary<string, object> settings); int CountTestCases(ITestFilter filter); ITest ExploreTests(ITestFilter filter); ITestResult Run(ITestListener listener, ITestFilter filter); void RunAsync(ITestListener listener, ITestFilter filter); bool WaitForCompletion(int timeout); void StopRun(bool force); } }