IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
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...
Public Member Functions | |
TimeoutAttribute (int timeout) | |
Construct a TimeoutAttribute given a time in milliseconds More... | |
![]() | |
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... | |
![]() | |
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 | |
![]() | |
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... | |
![]() | |
IPropertyBag | Properties [get] |
Gets the property dictionary for this attribute More... | |
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.
|
inline |
Construct a TimeoutAttribute given a time in milliseconds
timeout | The timeout value in milliseconds |
|
inlineprivate |
Apply changes to the execution context
context | The execution context |
Implements NUnit.Framework.Interfaces.IApplyToContext.
References NUnit.Framework.Internal.TestExecutionContext.TestCaseTimeout.
|
private |