The recording of the first ever ReactiveUI virtual conference is available on our YouTube Channel.

ReactiveAssert.Throws<TException>(TException, Action)

ReactiveAssert.Throws<TException> Method (TException, Action)

Namespace:  Microsoft.Reactive.Testing
Assembly:  Microsoft.Reactive.Testing (in Microsoft.Reactive.Testing.dll)

Syntax

'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.

Type Parameters

  • TException

Parameters

See Also

Reference

ReactiveAssert Class

Throws Overload

Microsoft.Reactive.Testing Namespace

ReactiveAssert.Throws<TException> Method (TException, Action, String)

Namespace:  Microsoft.Reactive.Testing
Assembly:  Microsoft.Reactive.Testing (in Microsoft.Reactive.Testing.dll)

Syntax

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

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

Type Parameters

  • TException

Parameters

See Also

Reference

ReactiveAssert Class

Throws Overload

Microsoft.Reactive.Testing Namespace

ReactiveAssert.Throws<TException> Method (Action)

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

See Also

Reference

ReactiveAssert Class

Throws Overload

Microsoft.Reactive.Testing Namespace

ReactiveAssert.Throws<TException> Method (Action, String)

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, _
    message As String _
)
'Usage
Dim action As Action
Dim message As String

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

Type Parameters

  • TException
    The type of the exception to check for.

Parameters

See Also

Reference

ReactiveAssert Class

Throws Overload

Microsoft.Reactive.Testing Namespace