次の方法で共有


ReactiveAssert.Throws<TException> メソッド (TException、Action)

Namespace:Microsoft.Reactive.Testing
アセンブリ: Microsoft.Reactive.Testing (Microsoft.Reactive.Testing.dll)

構文

'Declaration
Public Shared Sub Throws(Of TException As Exception) ( _
    exception As TException, _
    action As Action _
)
'Usage
Dim exception As TException
Dim action As Action

ReactiveAssert.Throws(exception, action)
public static void Throws<TException>(
    TException exception,
    Action action
)
where TException : Exception
public:
generic<typename TException>
where TException : Exception
static void Throws(
    TException exception, 
    Action^ action
)
static member Throws : 
        exception:'TException * 
        action:Action -> unit  when 'TException : Exception
JScript does not support generic types and methods.

型パラメーター

  • TException

パラメーター

  • exception
    型: TException

参照

リファレンス

ReactiveAssert クラス

オーバーロードをスローする

Microsoft.Reactive.Testing 名前空間