Skip to content

Conversation

@jnyrup
Copy link
Member

@jnyrup jnyrup commented Jul 27, 2019

When using WithExpectation it should most often be matched by a ClearExpectation.
Not calling ClearExpectation can cause the expectation to appear in the failure message of subsequent assertions inside an AssertionScope.

To make AssertCollectionsHaveSameItems return a chainable ContinuationOfGiven<T> I made CollectionWithIndex<T>.
It might not be very elegant, but it was the only way I could come up with.

@jnyrup jnyrup merged commit 9bf24d4 into fluentassertions:master Jul 27, 2019
@jnyrup jnyrup deleted the ClearExpectation branch July 27, 2019 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants