Raises(T1, T2, T3) Method (MockedEvent, (T1, T2, T3, ))

Moq 2.6

Specifies the mocked event that will be raised when the expectation is met.

Namespace:  Moq.Language
Assembly:  Moq (in Moq.dll) Version: 2.6.1014.1 (2.6.0.0)

Syntax

C#
IVerifies Raises<T1, T2, T3>(
	MockedEvent eventHandler,
	Func<T1, T2, T3, EventArgs> func
)

Parameters

eventHandler
Type: Moq..::.MockedEvent
The mocked event, retrieved from CreateEventHandler()()() or CreateEventHandler<(Of <(TEventArgs>)>)()()().
func
Type: Func<(Of <(T1, T2, T3, EventArgs>)>)
A function that will build the EventArgs to pass when raising the event.

Type Parameters

T1
Type of the first argument received by the expected invocation.
T2
Type of the second argument received by the expected invocation.
T3
Type of the third argument received by the expected invocation.

See Also