Skip to content

[Feature]: Clearer assertion messages stating the actual versus expected value #4137

@CrispyDrone

Description

@CrispyDrone

Problem Statement

Using Assert.That().All() with a predicate will simply state Expected all items to satisfy <predicate> but item at index 0 does not satisfy predicate.

Proposed Solution

It should include the value it found (which differs) meaning say something along the lines of: Expected all items to satisfy <predicate> but item at index 0 has a value of <value> which does not satisfy the predicate.

Alternatives Considered

No response

Feature Category

Assertions

How important is this feature to you?

Important - significantly impacts my workflow

Additional Context

No response

Contribution

  • I'm willing to submit a pull request for this feature

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions