TestCondition.Enabled 属性
获取或设置一个值,该值指示是否启用测试条件。
命名空间: Microsoft.Data.Schema.UnitTesting.Conditions
程序集: Microsoft.Data.Schema.UnitTesting(在 Microsoft.Data.Schema.UnitTesting.dll 中)
语法
声明
Public Property Enabled As Boolean
Get
Set
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)
属性值
备注
默认值为 true。 默认情况下,当将所有测试条件添加到 DatabaseTestAction 时,将启用这些测试条件。 如果条件已启用,则可以使用该条件计算 DatabaseTestAction 是否成功。 将此属性设置为 false 可以防止在测试执行过程中计算此测试条件。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。