Class TestActionItem
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
ITestActionThe 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
ITestThe 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
ITestThe test to which the action applies