Table of Contents

Class BeforeTestCommand

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

BeforeTestCommand is a DelegatingTestCommand that performs some specific action before the inner command is run.

public abstract class BeforeTestCommand : DelegatingTestCommand
Inheritance
BeforeTestCommand
Derived
Inherited Members

Constructors

BeforeTestCommand(TestCommand)

Construct a BeforeCommand

public BeforeTestCommand(TestCommand innerCommand)

Parameters

innerCommand TestCommand

Fields

BeforeTest

Action to perform before the inner command.

protected Action<TestExecutionContext>? BeforeTest

Field Value

Action<TestExecutionContext>

Methods

Execute(TestExecutionContext)

Execute the command

public override TestResult Execute(TestExecutionContext context)

Parameters

context TestExecutionContext

Returns

TestResult