Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Asserts that the given action throws an exception of the type specified in the generic parameter.
Namespace: Microsoft.Reactive.Testing
Assembly: Microsoft.Reactive.Testing (in Microsoft.Reactive.Testing.dll)
Syntax
'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.
Type Parameters
- TException
The type of the exception to check for.
Parameters
- action
Type: System.Action
Action to run.