Table of Contents

Class TestActionCommand

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

TestActionCommand runs the BeforeTest actions for a test, then runs the test and finally runs the AfterTestActions.

public class TestActionCommand : DelegatingTestCommand
Inheritance
TestActionCommand
Inherited Members

Constructors

TestActionCommand(TestCommand)

Initializes a new instance of the TestActionCommand class.

public TestActionCommand(TestCommand innerCommand)

Parameters

innerCommand TestCommand

The inner command.

Methods

Execute(TestExecutionContext)

Runs the test, saving a TestResult in the supplied TestExecutionContext.

public override TestResult Execute(TestExecutionContext context)

Parameters

context TestExecutionContext

The context in which the test should run.

Returns

TestResult

A TestResult