







The expected invocation can happen at most specified number of times.
Namespace:
Moq.Language
Assembly:
Moq (in Moq.dll) Version: 2.6.1014.1 (2.6.0.0)
Syntax
C# |
---|
IVerifies AtMost( int callCount ) |
Parameters
- callCount
- Type: Int32
[Missing <param name="callCount"/> documentation for "M:Moq.Language.IOccurrence.AtMost(System.Int32)"]
Examples

var mock = new Mock<ICommand>(); mock.Expect(foo => foo.Execute("ping")) .AtMost( 5 );