Class MaxTimeAttribute
Specifies the maximum time (in milliseconds) for a test case to succeed.
Inherited Members
Namespace: NUnit.Framework
Assembly: nunit.framework.dll
Syntax
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
public sealed class MaxTimeAttribute : PropertyAttribute, IApplyToTest, IWrapSetUpTearDown, ICommandWrapper
Constructors
View SourceMaxTimeAttribute(int)
Construct a MaxTimeAttribute, given a time in milliseconds.
Declaration
public MaxTimeAttribute(int milliseconds)
Parameters
Type | Name | Description |
---|---|---|
int | milliseconds | The maximum elapsed time in milliseconds |