Skip to content
This repository has been archived by the owner on Oct 21, 2018. It is now read-only.

Expectation failed error message #7

Open
whatupdave opened this issue Feb 22, 2010 · 0 comments
Open

Expectation failed error message #7

whatupdave opened this issue Feb 22, 2010 · 0 comments

Comments

@whatupdave
Copy link

The current expectation error message looks like this:

Rhino.Mocks.Exceptions.ExpectationViolationException:
IContestant.PlayGame("Shouldly"); Expected 1, Actual 0

Which is not super helpful. It would be better if printed close matches (or all recorded calls) like this:

Expected:
    IContestant.PlayGame("Shouldly");
Recorded:
    0: IContestant.PlayGame("Debugging"); 
    1: IContestant.PlayGame("Logging"); 
    2: IContestant.PlayGame("Drinking coffee"); 
    3: IContestant.PlayGame("Commenting out test");

I've added this in Shouldly: http://github.com/snappycode/shouldly

If you're happy with this format or something similar I can move this to Rhino.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant