Expect Method (, [])

Moq 2.6

Sets an expectation on the void method with the given voidMethodName, optionally specifying arguments for the method call.

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

Syntax

C#
IExpect Expect(
	string voidMethodName,
	params Object[] args
)

Parameters

voidMethodName
Type: String
Name of the void method to be invoke.
args
Type: array< Object >[]()[]
Optional arguments for the invocation.

See Also