Raises Method (Action(T), Object[])

Moq

Collapse imageExpand ImageCopy imageCopyHover image
Specifies the custom 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(
	Action<T> eventExpression,
	params Object[] args
)

Parameters

eventExpression
Type: System..::..Action<(Of <(<'T>)>)>
An expression that represents an event attach or detach action.
args
Type: array<System..::..Object>[]()[][]
The arguments to pass to the custom delegate (non EventHandler-compatible).

See Also