Class OneTimeTearDownCommand
OneTimeTearDownCommand performs any teardown actions specified for a suite and calls Dispose on the user test object, if any.
public class OneTimeTearDownCommand : TestCommand
- Inheritance
-
OneTimeTearDownCommand
- Inherited Members
Constructors
OneTimeTearDownCommand(TestSuite, List<SetUpTearDownItem>, List<TestActionItem>)
Construct a OneTimeTearDownCommand
public OneTimeTearDownCommand(TestSuite suite, List<SetUpTearDownItem> setUpTearDownItems, List<TestActionItem> actions)
Parameters
suiteTestSuiteThe test suite to which the command applies
setUpTearDownItemsList<SetUpTearDownItem>A SetUpTearDownList for use by the command
actionsList<TestActionItem>A List of TestActionItems to be run before teardown.
Methods
Execute(TestExecutionContext)
Overridden to run the teardown methods specified on the test.
public override TestResult Execute(TestExecutionContext context)
Parameters
contextTestExecutionContextThe TestExecutionContext to be used.
Returns
- TestResult
A TestResult