What is the purpose of Verifiable() in Moq?

ADDENDUM: As the other answer states, the purpose of .Verifiable is to enlist a Setup into a set of “deferred Verify(…) calls” which can then be triggered via mock.Verify(). The OP’s clarification makes it clear that this was the goal and the only problem was figuring out why it wasn’t working, but as @Liam prodded, … Read more

Using Moq to mock only some methods

This is called a partial mock, and the way I know to do it in Moq requires mocking the class rather than the interface and then setting the “Callbase” property on your mocked object to “true”. This will require making all the methods and properties of the class you are testing virtual. Assuming this isn’t … Read more