IGeneratedTestClass.SetSwitch Method
Sets the value of a Cord switch in the generated test class. This method supports the generated test cases and is not intended to be used directly from your code.
Namespace: Microsoft.SpecExplorer.Runtime.Testing
Assembly: Microsoft.SpecExplorer.Runtime (in Microsoft.SpecExplorer.Runtime.dll)
Usage
'Usage
Syntax
'Declaration
void SetSwitch (
string name,
string value
)
Parameters
- name
The name of the Cord switch.
- value
The value of the Cord switch.
Remarks
This method supports the ProceedControlTimeout and QuiescenceTimeout switches. This method also recognizes the ObservationBound keyword. The value associated with the ObservationBound keyword sets the default queue size of the test manager that the test class creates in the InitializeTestManager method.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Microsoft Windows 7, Microsoft Windows Vista, Microsoft Windows XP SP2 or later, Microsoft Windows Server 2008, Microsoft Windows Server 2003
See Also
Reference
IGeneratedTestClass Interface
IGeneratedTestClass Members
Microsoft.SpecExplorer.Runtime.Testing Namespace
IGeneratedTestClass.ProceedControlTimeout
IGeneratedTestClass.QuiescenceTimeout