IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
NUnit.Framework.TimeoutAttribute Class Reference

Used on a method, marks the test with a timeout value in milliseconds. The test will be run in a separate thread and is cancelled if the timeout is exceeded. Used on a class or assembly, sets the default timeout for all contained test methods. More...

+ Inheritance diagram for NUnit.Framework.TimeoutAttribute:
+ Collaboration diagram for NUnit.Framework.TimeoutAttribute:

Public Member Functions

 TimeoutAttribute (int timeout)
 Construct a TimeoutAttribute given a time in milliseconds More...
 
- Public Member Functions inherited from NUnit.Framework.PropertyAttribute
 PropertyAttribute (string propertyName, string propertyValue)
 Construct a PropertyAttribute with a name and string value More...
 
 PropertyAttribute (string propertyName, int propertyValue)
 Construct a PropertyAttribute with a name and int value More...
 
 PropertyAttribute (string propertyName, double propertyValue)
 Construct a PropertyAttribute with a name and double value More...
 
virtual void ApplyToTest (Test test)
 Modifies a test by adding properties to it. More...
 
- Public Member Functions inherited from NUnit.Framework.NUnitAttribute
 NUnitAttribute ()
 Default constructor More...
 

Private Member Functions

void IApplyToContext. ApplyToContext (TestExecutionContext context)
 Apply changes to the execution context More...
 

Private Attributes

int _timeout
 

Additional Inherited Members

- Protected Member Functions inherited from NUnit.Framework.PropertyAttribute
 PropertyAttribute ()
 Constructor for derived classes that set the property dictionary directly. More...
 
 PropertyAttribute (object propertyValue)
 Constructor for use by derived classes that use the name of the type as the property name. Derived classes must ensure that the Type of the property value is a standard type supported by the BCL. Any custom types will cause a serialization Exception when in the client. More...
 
- Properties inherited from NUnit.Framework.PropertyAttribute
IPropertyBag Properties [get]
 Gets the property dictionary for this attribute More...
 

Detailed Description

Used on a method, marks the test with a timeout value in milliseconds. The test will be run in a separate thread and is cancelled if the timeout is exceeded. Used on a class or assembly, sets the default timeout for all contained test methods.

Constructor & Destructor Documentation

NUnit.Framework.TimeoutAttribute.TimeoutAttribute ( int  timeout)
inline

Construct a TimeoutAttribute given a time in milliseconds

Parameters
timeoutThe timeout value in milliseconds

Member Function Documentation

void IApplyToContext. NUnit.Framework.TimeoutAttribute.ApplyToContext ( TestExecutionContext  context)
inlineprivate

Apply changes to the execution context

Parameters
contextThe execution context

Implements NUnit.Framework.Interfaces.IApplyToContext.

References NUnit.Framework.Internal.TestExecutionContext.TestCaseTimeout.

Member Data Documentation

int NUnit.Framework.TimeoutAttribute._timeout
private

The documentation for this class was generated from the following file: