Skip to content

AndConstraint should write additional information from failed constraint #3233

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

Closed
Dreamescaper opened this issue May 6, 2019 · 0 comments · Fixed by #3234
Closed

AndConstraint should write additional information from failed constraint #3233

Dreamescaper opened this issue May 6, 2019 · 0 comments · Fixed by #3234

Comments

@Dreamescaper
Copy link
Member

Assert.That(new[]{ 1,2 }, Is.Ordered & Is.EquivalentTo(new[] { 1, 2, 3 }));

Expected message:

  Expected: collection ordered and equivalent to < 1, 2, 3 >
  But was:  < 1, 2 >
  Missing (1): < 3 >

Actual message:

  Expected: collection ordered and equivalent to < 1, 2, 3 >
  But was:  < 1, 2 >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants