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

NUnit.Framework.Internal.Commands.DelegatingTestCommand

public abstract class DelegatingTestCommand : TestCommand
DelegatingTestCommand wraps an inner TestCommand. Derived classes may do what they like before or after running the inner command.
namespace NUnit.Framework.Internal.Commands { public abstract class DelegatingTestCommand : TestCommand { protected TestCommand innerCommand; protected DelegatingTestCommand(TestCommand innerCommand); protected static void RunTestMethodInThreadAbortSafeZone(TestExecutionContext context, Action action); } }