IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
NUnit.Framework.Internal.Commands.TestActionItem Class Reference

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. More...

+ Collaboration diagram for NUnit.Framework.Internal.Commands.TestActionItem:

Public Member Functions

 TestActionItem (ITestAction action)
 Construct a TestActionItem More...
 
void BeforeTest (Interfaces.ITest test)
 Run the BeforeTest method of the action and remember that it has been run. More...
 
void AfterTest (Interfaces.ITest test)
 Run the AfterTest action, but only if the BeforeTest action was actually run. More...
 

Private Attributes

readonly ITestAction _action
 
bool _beforeTestWasRun
 

Detailed Description

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.

Constructor & Destructor Documentation

NUnit.Framework.Internal.Commands.TestActionItem.TestActionItem ( ITestAction  action)
inline

Construct a TestActionItem

Parameters
actionThe ITestAction to be included

Member Function Documentation

void NUnit.Framework.Internal.Commands.TestActionItem.BeforeTest ( Interfaces.ITest  test)
inline

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

Parameters
testThe test to which the action applies
void NUnit.Framework.Internal.Commands.TestActionItem.AfterTest ( Interfaces.ITest  test)
inline

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

Parameters
testThe test to which the action applies

Member Data Documentation

readonly ITestAction NUnit.Framework.Internal.Commands.TestActionItem._action
private
bool NUnit.Framework.Internal.Commands.TestActionItem._beforeTestWasRun
private

The documentation for this class was generated from the following file: