Table of Contents

Class AfterTestCommand

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

AfterCommand is a DelegatingTestCommand that performs some specific action after the inner command is run.

public abstract class AfterTestCommand : DelegatingTestCommand
Inheritance
AfterTestCommand
Derived
Inherited Members

Constructors

AfterTestCommand(TestCommand)

Construct an AfterCommand

public AfterTestCommand(TestCommand innerCommand)

Parameters

innerCommand TestCommand

Fields

AfterTest

Set this to perform action after the inner command.

protected Action<TestExecutionContext>? AfterTest

Field Value

Action<TestExecutionContext>

Methods

Execute(TestExecutionContext)

Execute the command

public override TestResult Execute(TestExecutionContext context)

Parameters

context TestExecutionContext

Returns

TestResult