Table of Contents

Class EmptyTestCommand

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

EmptyTestCommand is a TestCommand that does nothing. It simply returns the current result from the context when executed. We use it to avoid testing for null when executing a chain of DelegatingTestCommands.

public class EmptyTestCommand : TestCommand
Inheritance
EmptyTestCommand
Inherited Members

Constructors

EmptyTestCommand(Test)

Construct a NullCommand for a test

public EmptyTestCommand(Test test)

Parameters

test Test

Methods

Execute(TestExecutionContext)

Execute the command

public override TestResult Execute(TestExecutionContext context)

Parameters

context TestExecutionContext

Returns

TestResult