Table of Contents

Class TestActionItem

Namespace
NUnit.Framework.Internal.Commands
Assembly
nunit.framework.dll

TestActionItem represents a single execution of an ITestAction. It is used to track whether the BeforeTest method has been called and suppress calling the AfterTest method if it has not.

public class TestActionItem
Inheritance
TestActionItem
Inherited Members

Constructors

TestActionItem(ITestAction)

Construct a TestActionItem

public TestActionItem(ITestAction action)

Parameters

action ITestAction

The ITestAction to be included

Methods

AfterTest(ITest)

Run the AfterTest action, but only if the BeforeTest action was actually run.

public void AfterTest(ITest test)

Parameters

test ITest

The test to which the action applies

BeforeTest(ITest)

Run the BeforeTest method of the action and remember that it has been run.

public void BeforeTest(ITest test)

Parameters

test ITest

The test to which the action applies