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

NUnit.Framework.ExecutionHookMethodsAttribute

Abstract base attribute class for defining execution hooks methods.

public virtual void AfterEverySetUpHook(HookData hookData)

Method that is called immediately after every [SetUp] or [OneTimeSetUp] method is executed. Override this to implement custom logic to run after the setup.

public virtual void AfterEveryTearDownHook(HookData hookData)

Method that is called immediately after every [TearDown] or [OneTimeTearDown] method is executed. Override this to implement custom logic to run after the teardown.

public virtual void AfterTestActionAfterTestHook(HookData hookData)

Method that is called immediately after the AfterTest(ITest test) method of a ITestAction is executed

public virtual void AfterTestActionBeforeTestHook(HookData hookData)

Method that is called immediately before the AfterTest(ITest test) method of a ITestAction is executed

public virtual void AfterTestHook(HookData hookData)

Method that is called immediately after the test is executed. Override this to implement custom logic to run after the test.

public virtual void BeforeEverySetUpHook(HookData hookData)

Method that is called immediately before every [SetUp] or [OneTimeSetUp] method is executed. Override this to implement custom logic to run before the test.

public virtual void BeforeEveryTearDownHook(HookData hookData)

Method that is called immediately before every [TearDown] or [OneTimeTearDown] method is executed. Override this to implement custom logic to run before the teardown.

public virtual void BeforeTestActionAfterTestHook(HookData hookData)

Method that is called immediately after the BeforeTest(ITest test) method of a ITestAction is executed

public virtual void BeforeTestActionBeforeTestHook(HookData hookData)

Method that is called immediately before the BeforeTest(ITest test) method of a ITestAction is executed

public virtual void BeforeTestHook(HookData hookData)

Method that is called immediately before the test is executed. Override this to implement custom logic to run before the test.