Table of Contents

Class MaxTimeCommand

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

MaxTimeCommand adjusts the result of a successful test to a failure if the elapsed time has exceeded the specified maximum time allowed.

public class MaxTimeCommand : AfterTestCommand
Inheritance
MaxTimeCommand
Inherited Members

Constructors

MaxTimeCommand(TestCommand, int)

Initializes a new instance of the MaxTimeCommand class.

public MaxTimeCommand(TestCommand innerCommand, int maxTime)

Parameters

innerCommand TestCommand

The inner command.

maxTime int

The max time allowed in milliseconds