Table of Contents

Class OneTimeSetUpCommand

Namespace
NUnit.Framework.Internal.Commands
Assembly
nunit.framework.dll

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 TestSuite

The 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 TestExecutionContext

The TestExecutionContext to be used.

Returns

TestResult

A TestResult