Raises(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16) Method (Action(T), Func(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, 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, T11, T12, T13, T14, T15, T16>(
	Action<T> eventExpression,
	Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, 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, T11, T12, T13, T14, T15, T16, 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.
T11
The type of the eleventh argument received by the expected invocation.
T12
The type of the twelfth argument received by the expected invocation.
T13
The type of the thirteenth argument received by the expected invocation.
T14
The type of the fourteenth argument received by the expected invocation.
T15
The type of the fifteenth argument received by the expected invocation.
T16
The type of the sixteenth argument received by the expected invocation.

See Also