次の方法で共有


TestCondition.Enabled プロパティ

 

テスト条件が有効かどうかを示す値を取得または設定します。

名前空間:   Microsoft.Data.Tools.Schema.Sql.UnitTesting.Conditions
アセンブリ:  Microsoft.Data.Tools.Schema.Sql.UnitTesting (Microsoft.Data.Tools.Schema.Sql.UnitTesting.dll 内)

構文

public bool Enabled { get; set; }
public:
property bool Enabled {
    bool get();
    void set(bool value);
}
member Enabled : bool with get, set
Public Property Enabled As Boolean

プロパティ値

Type: System.Boolean

解説

既定値は true です。既定では、SqlDatabaseTestAction に追加されているときには、どのテスト条件も有効です。条件が有効である場合、条件を使用して SqlDatabaseTestAction の成功が評価されます。テスト実行中にこのテスト条件を評価しない場合、このプロパティを false に設定します。

参照

TestCondition クラス
Microsoft.Data.Tools.Schema.Sql.UnitTesting.Conditions 名前空間

トップに戻る