DependsOnAttribute コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| 名前 | 説明 |
|---|---|
| DependsOnAttribute(String) |
同じテスト クラスの別のテスト メソッドへの依存関係を宣言する DependsOnAttribute クラスの新しいインスタンスを初期化します。 |
| DependsOnAttribute(Type) |
別のテスト クラスのすべてのテストに対する依存関係を宣言するDependsOnAttribute クラスの新しいインスタンスを初期化します。 |
| DependsOnAttribute(Type, String) |
別のテスト クラスの特定のテスト メソッドへの依存関係を宣言する DependsOnAttribute クラスの新しいインスタンスを初期化します。 |
DependsOnAttribute(String)
同じテスト クラスの別のテスト メソッドへの依存関係を宣言する DependsOnAttribute クラスの新しいインスタンスを初期化します。
public DependsOnAttribute(string testMethodName);
new Microsoft.VisualStudio.TestTools.UnitTesting.DependsOnAttribute : string -> Microsoft.VisualStudio.TestTools.UnitTesting.DependsOnAttribute
Public Sub New (testMethodName As String)
パラメーター
- testMethodName
- String
前提条件となるテスト メソッドの名前。 メソッドの名前変更がコンパイラによってキャッチされるように、 nameof を使用します。
例外
testMethodName は nullです。
testMethodName が空または空白です。
適用対象
DependsOnAttribute(Type)
別のテスト クラスのすべてのテストに対する依存関係を宣言するDependsOnAttribute クラスの新しいインスタンスを初期化します。
public DependsOnAttribute(Type testClass);
new Microsoft.VisualStudio.TestTools.UnitTesting.DependsOnAttribute : Type -> Microsoft.VisualStudio.TestTools.UnitTesting.DependsOnAttribute
Public Sub New (testClass As Type)
パラメーター
- testClass
- Type
前提条件のテスト クラス。
例外
testClass は nullです。
適用対象
DependsOnAttribute(Type, String)
別のテスト クラスの特定のテスト メソッドへの依存関係を宣言する DependsOnAttribute クラスの新しいインスタンスを初期化します。
public DependsOnAttribute(Type testClass, string testMethodName);
new Microsoft.VisualStudio.TestTools.UnitTesting.DependsOnAttribute : Type * string -> Microsoft.VisualStudio.TestTools.UnitTesting.DependsOnAttribute
Public Sub New (testClass As Type, testMethodName As String)
パラメーター
- testClass
- Type
前提条件を宣言するテスト クラス。
- testMethodName
- String
前提条件となるテスト メソッドの名前。 メソッドの名前変更がコンパイラによってキャッチされるように、 nameof を使用します。
例外
testClass または testMethodName が null。
testMethodName が空または空白です。