Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing ClearExpectation #1105

Merged
merged 1 commit into from Jul 27, 2019

Conversation

@jnyrup
Copy link
Collaborator

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

1 check passed

continuous-integration/appveyor/pr AppVeyor build succeeded
Details

@jnyrup jnyrup deleted the jnyrup:ClearExpectation branch Jul 27, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.