IRuntimeEnvironmentIsTest Property |
Gets or sets a value indicating that the application is running under the unit test environment.
Namespace: VirtualRadar.InterfaceAssembly: VirtualRadar.Interface (in VirtualRadar.Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax bool IsTest { get; set; }
Property IsTest As Boolean
Get
Set
property bool IsTest {
bool get ();
void set (bool value);
}
abstract IsTest : bool with get, set
Property Value
Type:
BooleanRemarks
The default implementation of this property always returns false. Some tests may provide mock implementations
that always return true. The intention here is to allow multithreading code to detect when it's running under
unit tests and turn itself off, forcing all actions onto a single thread thereby making classes that use
multi-threading internally a lot more testable.
See Also