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

NUnit.Framework.Internal.Commands.BeforeAndAfterTestCommand

TestActionCommand handles a single ITestAction applied to a test. It runs the BeforeTest method, then runs the test and finally runs the AfterTest method.
namespace NUnit.Framework.Internal.Commands { public abstract class BeforeAndAfterTestCommand : DelegatingTestCommand { protected Action<TestExecutionContext> BeforeTest; protected Action<TestExecutionContext> AfterTest; public BeforeAndAfterTestCommand(TestCommand innerCommand); } }