Class OneTimeSetUpCommand
OneTimeSetUpCommand runs any one-time setup methods for a suite, constructing the user test object if necessary.
public class OneTimeSetUpCommand : TestCommand
- Inheritance
-
OneTimeSetUpCommand
- Inherited Members
Constructors
OneTimeSetUpCommand(TestSuite, List<SetUpTearDownItem>, List<TestActionItem>)
Constructs a OneTimeSetUpCommand for a suite
public OneTimeSetUpCommand(TestSuite suite, List<SetUpTearDownItem> setUpTearDown, List<TestActionItem> actions)
Parameters
suite
TestSuiteThe suite to which the command applies
setUpTearDown
List<SetUpTearDownItem>A SetUpTearDownList for use by the command
actions
List<TestActionItem>A List of TestActionItems to be run after Setup
Methods
Execute(TestExecutionContext)
Overridden to run the one-time setup for a suite.
public override TestResult Execute(TestExecutionContext context)
Parameters
context
TestExecutionContextThe TestExecutionContext to be used.
Returns
- TestResult
A TestResult