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

NUnit.Framework.Internal.Commands.TestActionHookRunner

static class TestActionHookRunner
Runs a single ITestAction.BeforeTest/AfterTest invocation, wrapping it with the matching pair of ExecutionHooks callbacks when hooks are enabled for the context.
namespace NUnit.Framework.Internal.Commands { internal static class TestActionHookRunner { public static void Run(TestExecutionContext context, Type actionType, string methodName, Action<TestExecutionContext, IMethodInfo> onBeforeHook, Action<TestExecutionContext, IMethodInfo, Exception> onAfterHook, Action run); } }