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...
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.
NUnit.Framework.Internal.Commands.TestActionItem.TestActionItem |
( |
ITestAction |
action | ) |
|
|
inline |
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
-
test | The 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
-
test | The test to which the action applies |
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:
- unittests/NUnit_3_0_1_src/src/NUnitFramework/framework/Internal/Commands/TestActionItem.cs