tags:

views:

555

answers:

2

What is the purpose of Verifiable()?

If I verify a mock and leave this out it still verifies the SetUp.

Edit: I was using VerifyAll() thus the reason for everything being verified. After changing to Verify() only my verifiable setups were being check.

+4  A: 

When the Verify() method is called at the end of the test, if any of the expectations marked as verifiable have not been called, then an exception is thrown.

VerifyAll() does not check for verifiable expectations.

Suvesh Pratapa