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

NUnit.Framework.Internal.ExecutionHooks.HookData

public class HookData
Holds context information for called execution hooks.
public TestContext Context { get; }

Gets the test execution context.

public Exception Exception { get; }

Gets the exception that was thrown during the method execution, if any.

Gets the method information of the hooked method.

public HookData(TestExecutionContext context, IMethodInfo hookedMethod, Exception exception = null)

Initializes a new instance of the HookData class.