TestCondition.Enabled Property
Gets or sets a value indicating whether the test condition is enabled.
Namespace: Microsoft.VisualStudio.TeamSystem.Data.UnitTesting.Conditions
Assembly: Microsoft.VisualStudio.TeamSystem.Data.UnitTesting (in Microsoft.VisualStudio.TeamSystem.Data.UnitTesting.dll)
Syntax
'Declaration
Public Property Enabled As Boolean
'Usage
Dim instance As TestCondition
Dim value As Boolean
value = instance.Enabled
instance.Enabled = value
public bool Enabled { get; set; }
public:
property bool Enabled {
bool get ();
void set (bool value);
}
public function get Enabled () : boolean
public function set Enabled (value : boolean)
Property Value
Type: System.Boolean
Remarks
The default value is true. All test conditions are enabled by default when they are added to a DatabaseTestAction. If the condition is enabled, it will be used to evaluate the success of the DatabaseTestAction. Set this property to false to prevent this test condition from being evaluated during test execution.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.TeamSystem.Data.UnitTesting.Conditions Namespace