Interface ITestAction
When implemented by an attribute, this interface implemented to provide actions to execute before and after tests.
Namespace: NUnit.Framework
Assembly: nunit.framework.dll
Syntax
public interface ITestAction
Properties
View SourceTargets
Provides the target for the action attribute
Declaration
ActionTargets Targets { get; }
Property Value
Type | Description |
---|---|
ActionTargets | The target for the action attribute |
Methods
View SourceAfterTest(ITest)
Executed after each test is run
Declaration
void AfterTest(ITest test)
Parameters
Type | Name | Description |
---|---|---|
ITest | test | The test that has just been run. |
BeforeTest(ITest)
Executed before each test is run
Declaration
void BeforeTest(ITest test)
Parameters
Type | Name | Description |
---|---|---|
ITest | test | The test that is going to be run. |