This project is read-only.

Expects.Exactly(int) doesn't work as expected


I believe there is an issue with the Expects.Exactly(int) functionality. The code appears to check that the actual number of calls does not exceed the number of expected calls. Consider the following scenarios
Scenario 1:
Expect Exactly = 4
Actual = 4 passes as expected
Scenario 2:
Expect Exactly = 4
Actual = 5 fails as expected
scenario 3:
Expect Exactly = 4
Actual = 3 passes when it should faile


pwolfe wrote Jul 27, 2011 at 9:16 PM

I do not see this behavior. Can you please post a unit test that demostrates it? There are specific unit tests in the code base that are testing this functionality and they are passing. Thanks.

wrote Feb 22, 2013 at 12:12 AM