In my unit-tests I\'m mocking a protected method using Moq, and would like to assert that it is called a certain number of times. This question describes something similar f
In the Moq.Protected namespace, there is an IProtectedMock interface that has a Verify method taking Times as a parameter.
Edit This is available since at least Moq 4.0.10827. Syntax example:
testBaseMock.Protected().Setup("ChildMethod1");
...
testBaseMock.Protected().Verify("ChildMethod1", Times.Once());