Click or drag to resize
IRuntimeEnvironmentIsTest Property
Gets or sets a value indicating that the application is running under the unit test environment.

Namespace: VirtualRadar.Interface
Assembly: VirtualRadar.Interface (in VirtualRadar.Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
bool IsTest { get; set; }

Property Value

Type: Boolean
Remarks
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