Exactly Method

Moq

Collapse imageExpand ImageCopy imageCopyHover image
Specifies that a mocked method should be invoked exactly callCount times.

Namespace: Moq
Assembly: Moq (in Moq.dll) Version: 4.0.10827.0 (4.0.0.0)

Syntax

C#
public static Times Exactly(
	int callCount
)

Parameters

callCount
Type: System..::..Int32
The times that a method or property can be called.

Return Value

An object defining the allowed number of invocations.

See Also