Between Method

Moq

Collapse imageExpand ImageCopy imageCopyHover image
Specifies that a mocked method should be invoked between callCountFrom and callCountTo times.

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

Syntax

C#
public static Times Between(
	int callCountFrom,
	int callCountTo,
	Range rangeKind
)

Parameters

callCountFrom
Type: System..::..Int32
The minimun number of times.
callCountTo
Type: System..::..Int32
The maximun number of times.
rangeKind
Type: Moq..::..Range
The kind of range. See Range.

Return Value

An object defining the allowed number of invocations.

See Also