Assert.Throws メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
Throws(IResolveConstraint, TestDelegate, String, Object[])
public static Exception Throws(NUnit.Framework.Constraints.IResolveConstraint expression, NUnit.Framework.TestDelegate code, string message, params object[] args);
static member Throws : NUnit.Framework.Constraints.IResolveConstraint * NUnit.Framework.TestDelegate * string * obj[] -> Exception
パラメーター
- expression
- IResolveConstraint
- code
- TestDelegate
- message
- String
- args
- Object[]
戻り値
適用対象
Throws(IResolveConstraint, TestDelegate)
public static Exception Throws(NUnit.Framework.Constraints.IResolveConstraint expression, NUnit.Framework.TestDelegate code);
static member Throws : NUnit.Framework.Constraints.IResolveConstraint * NUnit.Framework.TestDelegate -> Exception
パラメーター
- expression
- IResolveConstraint
- code
- TestDelegate
戻り値
適用対象
Throws(Type, TestDelegate)
public static Exception Throws(Type expectedExceptionType, NUnit.Framework.TestDelegate code);
static member Throws : Type * NUnit.Framework.TestDelegate -> Exception
パラメーター
- expectedExceptionType
- Type
- code
- TestDelegate
戻り値
適用対象
Throws(IResolveConstraint, TestDelegate, String)
public static Exception Throws(NUnit.Framework.Constraints.IResolveConstraint expression, NUnit.Framework.TestDelegate code, string message);
static member Throws : NUnit.Framework.Constraints.IResolveConstraint * NUnit.Framework.TestDelegate * string -> Exception
パラメーター
- expression
- IResolveConstraint
- code
- TestDelegate
- message
- String
戻り値
適用対象
Throws(Type, TestDelegate, String)
public static Exception Throws(Type expectedExceptionType, NUnit.Framework.TestDelegate code, string message);
static member Throws : Type * NUnit.Framework.TestDelegate * string -> Exception
パラメーター
- expectedExceptionType
- Type
- code
- TestDelegate
- message
- String
戻り値
適用対象
Throws(Type, TestDelegate, String, Object[])
public static Exception Throws(Type expectedExceptionType, NUnit.Framework.TestDelegate code, string message, params object[] args);
static member Throws : Type * NUnit.Framework.TestDelegate * string * obj[] -> Exception
パラメーター
- expectedExceptionType
- Type
- code
- TestDelegate
- message
- String
- args
- Object[]
戻り値
適用対象
Throws<T>(TestDelegate, String)
public static T Throws<T>(NUnit.Framework.TestDelegate code, string message) where T : Exception;
static member Throws : NUnit.Framework.TestDelegate * string -> 'T (requires 'T :> Exception)
型パラメーター
- T
パラメーター
- code
- TestDelegate
- message
- String
戻り値
T
適用対象
Throws<T>(TestDelegate)
public static T Throws<T>(NUnit.Framework.TestDelegate code) where T : Exception;
static member Throws : NUnit.Framework.TestDelegate -> 'T (requires 'T :> Exception)
型パラメーター
- T
パラメーター
- code
- TestDelegate
戻り値
T
適用対象
Throws<T>(TestDelegate, String, Object[])
public static T Throws<T>(NUnit.Framework.TestDelegate code, string message, params object[] args) where T : Exception;
static member Throws : NUnit.Framework.TestDelegate * string * obj[] -> 'T (requires 'T :> Exception)
型パラメーター
- T
パラメーター
- code
- TestDelegate
- message
- String
- args
- Object[]
戻り値
T