Table of Contents

Class CancelAfterCommand

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

CancelAfterCommand creates a timer in order to cancel a test if it exceeds a specified time and adjusts the test result if it did time out.

public class CancelAfterCommand : DelegatingTestCommand
Inheritance
CancelAfterCommand
Inherited Members

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