Raises(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) Method (Action(T), Func(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, EventArgs))

Moq

Collapse imageExpand ImageCopy imageCopyHover image
Specifies the event that will be raised when the setup is matched.

Namespace: Moq.Language
Assembly: Moq (in Moq.dll) Version: 4.0.10827.0 (4.0.0.0)

Syntax

C#
IVerifies Raises<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(
	Action<T> eventExpression,
	Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, EventArgs> func
)

Parameters

eventExpression
Type: System..::..Action<(Of <(<'T>)>)>
The expression that represents an event attach or detach action.
func
Type: System..::..Func<(Of <(<'T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, EventArgs>)>)>
The function that will build the EventArgs to pass when raising the event.

Type Parameters

T1
The type of the first argument received by the expected invocation.
T2
The type of the second argument received by the expected invocation.
T3
The type of the third argument received by the expected invocation.
T4
The type of the fourth argument received by the expected invocation.
T5
The type of the fifth argument received by the expected invocation.
T6
The type of the sixth argument received by the expected invocation.
T7
The type of the seventh argument received by the expected invocation.
T8
The type of the eighth argument received by the expected invocation.
T9
The type of the nineth argument received by the expected invocation.
T10
The type of the tenth argument received by the expected invocation.

See Also