Table of Contents

Class OneTimeTearDownCommand

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

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

suite TestSuite

The test suite to which the command applies

setUpTearDownItems List<SetUpTearDownItem>

A SetUpTearDownList for use by the command

actions List<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

context TestExecutionContext

The TestExecutionContext to be used.

Returns

TestResult

A TestResult