The expected invocation can happen at most once.
Namespace:
Moq.LanguageAssembly: Moq (in Moq.dll) Version: 2.5.1.153 (2.5.1.0)
Syntax
| C# |
|---|
IVerifies AtMostOnce() |
Examples
var mock = new Mock<ICommand>(); mock.Expect(foo => foo.Execute("ping")) .AtMostOnce();