Table of Contents

Class TimeoutCommand

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

TimeoutCommand 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 TimeoutCommand : BeforeAndAfterTestCommand
Inheritance
TimeoutCommand
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