Share via


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

See Also

Reference

TestCondition Class

TestCondition Members

Microsoft.VisualStudio.TeamSystem.Data.UnitTesting.Conditions Namespace