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

ITestAction

public interface ITestAction
When implemented by an attribute, this interface implemented to provide actions to execute before and after tests.
using NUnit.Framework.Interfaces; namespace NUnit.Framework { public interface ITestAction { ActionTargets Targets { get; } void BeforeTest(ITest test); void AfterTest(ITest test); } }