Skip to content

DelayedConstraint constrains does not preserve original result additional information #3547

Closed
@Dreamescaper

Description

@Dreamescaper

Assertion without delayed constraint:
Assert.That(() => new[] { 1, 2 }, Is.EquivalentTo(new[] { 2, 3 }));
leads to failure:

Expected: equivalent to < 2, 3 >
But was:  < 1, 2 >
Missing (1): < 3 >
Extra (1): < 1 >

Assertion with delayed constraint:
Assert.That(() => new[] { 1, 2 }, Is.EquivalentTo(new[] { 2, 3 }).After(1));
leads to failure:

Expected: equivalent to < 2, 3 > after 1 millisecond delay
But was:  < 1, 2 >

Expected result: DelayedConstraint should preserve additional information from original constraint result.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions