Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ShouldAllBe does not show the element predicate correctly for is operator #389

Closed
alex-fomin opened this issue Jun 27, 2016 · 2 comments
Closed

Comments

@alex-fomin
Copy link

alex-fomin commented Jun 27, 2016

The following snippet produce incorrect assertion message:

        batchCommand.Commands.ShouldAllBe(command=>command is CreateResourceCommand);
Shouldly.ShouldAssertException : batchCommand.Commands
    should satisfy the condition
command
    but
[Tp.Rest.Commands.UpdateResourceCommand (22668405), Tp.Rest.Commands.UpdateResourceCommand (29839228)]
    do not

I expect a command is CreateResourceCommand as an assertion message

@josephwoodward
Copy link
Member

Just realised I'd not thanked you for raising this @alex-fomin! @ssiko has just submitted a PR to fix it.

@JakeGinnivan
Copy link
Contributor

This has been released in https://github.com/shouldly/shouldly/releases/tag/v2.8.2

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

No branches or pull requests

3 participants