指定されたアクションがジェネリック パラメーターで指定された型の例外をスローすることをアサートします。
Namespace:Microsoft.Reactive.Testing
アセンブリ: Microsoft.Reactive.Testing (Microsoft.Reactive.Testing.dll)
構文
'Declaration
Public Shared Sub Throws(Of TException As Exception) ( _
action As Action _
)
'Usage
Dim action As Action
ReactiveAssert.Throws(action)
public static void Throws<TException>(
Action action
)
where TException : Exception
public:
generic<typename TException>
where TException : Exception
static void Throws(
Action^ action
)
static member Throws :
action:Action -> unit when 'TException : Exception
JScript does not support generic types and methods.
型パラメーター
- TException
チェックする例外の種類。
パラメーター
- action
種類: System.Action
実行するアクション。