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

IApplyToContext

public interface IApplyToContext
The IApplyToContext interface is implemented by attributes that want to make changes to the execution context before a test is run.
using NUnit.Framework.Internal; namespace NUnit.Framework.Interfaces { public interface IApplyToContext { void ApplyToContext(TestExecutionContext context); } }