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);
}
/** @property */
public boolean get_Enabled ()

/** @property */
public void set_Enabled (boolean value)
public function get Enabled () : boolean

public function set Enabled (value : 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.

See Also

Reference

TestCondition Class
TestCondition Members
Microsoft.VisualStudio.TeamSystem.Data.UnitTesting.Conditions Namespace