







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( MockedEvent eventHandler, Func<EventArgs> func ) |
Parameters
- eventHandler
- Type: Moq..::.MockedEvent
The mocked event, retrieved from CreateEventHandler()()() or CreateEventHandler<(Of <(TEventArgs>)>)()()().
- func
- Type: Func<(Of <(EventArgs>)>)
A function that will build the EventArgs to pass when raising the event.