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

Expectation failed error message #7

@whatupdave

Description

@whatupdave

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions