Skip to content

AndConstraint should write additional information from failed constraint #3233

Description

@Dreamescaper
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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions