Table of Contents

Interface ITestAction

Namespace
NUnit.Framework
Assembly
nunit.framework.dll

When implemented by an attribute, this interface implemented to provide actions to execute before and after tests.

public interface ITestAction

Properties

Targets

Provides the target for the action attribute

ActionTargets Targets { get; }

Property Value

ActionTargets

The target for the action attribute

Methods

AfterTest(ITest)

Executed after each test is run

void AfterTest(ITest test)

Parameters

test ITest

The test that has just been run.

BeforeTest(ITest)

Executed before each test is run

void BeforeTest(ITest test)

Parameters

test ITest

The test that is going to be run.