Raises Method

Moq 2.6

Overload List

  NameDescription
Raises(MockedEvent, EventArgs)
Specifies the mocked event that will be raised when the expectation is met.
Raises(MockedEvent, Func<(Of <(EventArgs>)>))
Specifies the mocked event that will be raised when the expectation is met.
Raises<(Of <(T>)>)(MockedEvent, Func<(Of <(T, EventArgs>)>))
Specifies the mocked event that will be raised when the expectation is met.
Raises<(Of <(T1, T2>)>)(MockedEvent, Func<(Of <(T1, T2, EventArgs>)>))
Specifies the mocked event that will be raised when the expectation is met.
Raises<(Of <(T1, T2, T3>)>)(MockedEvent, Func<(Of <(T1, T2, T3, EventArgs>)>))
Specifies the mocked event that will be raised when the expectation is met.
Raises<(Of <(T1, T2, T3, T4>)>)(MockedEvent, Func<(Of <(T1, T2, T3, T4, EventArgs>)>))
Specifies the mocked event that will be raised when the expectation is met.

See Also