<PackageReference Include="NUnit" Version="5.0.0-beta.1" />

NUnit.Framework.Internal.Commands.BeforeTestCommand

public abstract class BeforeTestCommand : DelegatingTestCommand
BeforeTestCommand is a DelegatingTestCommand that performs some specific action before the inner command is run.
namespace NUnit.Framework.Internal.Commands { public abstract class BeforeTestCommand : DelegatingTestCommand { protected Action<TestExecutionContext> BeforeTest; public BeforeTestCommand(TestCommand innerCommand); } } namespace NUnit.Framework.Internal.Commands { public abstract class TestCommand { public Test Test { get; } public TestCommand(Test test); public abstract TestResult Execute(TestExecutionContext context); } }