TestCondition.Enabled Property
Gets or sets a value that indicates whether the test condition is enabled.
Namespace: Microsoft.Data.Schema.UnitTesting.Conditions
Assembly: Microsoft.Data.Schema.UnitTesting (in Microsoft.Data.Schema.UnitTesting.dll)
Syntax
'Declaration
Public Property Enabled As Boolean
public bool Enabled { get; set; }
public:
property bool Enabled {
bool get ();
void set (bool value);
}
member Enabled : bool with get, set
function get Enabled () : boolean
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.
.NET Framework Security
- 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.