Closed
Description
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.