<PackageReference Include="NUnit" Version="3.7.0" />

SimpleWorkItemDispatcher

SimpleWorkItemDispatcher handles execution of WorkItems by directly executing them. It is provided so that a dispatcher is always available in the context, thereby simplifying the code needed to run child tests.
namespace NUnit.Framework.Internal.Execution { public class SimpleWorkItemDispatcher : IWorkItemDispatcher { public void Start(WorkItem topLevelWorkItem) { Dispatch(topLevelWorkItem); } public void Dispatch(WorkItem work) { work?.Execute(); } public void CancelRun(bool force) { } } }