Skip to content

Conversation

@FabianNitsche
Copy link
Contributor

This adds a test and fixes issue #1691 by using the Count property of ICollection instead of directly iterating over the enumerable by Count().

…eneration iterates over an infinite collection and causes an OverflowException.
Copy link
Member

@jnyrup jnyrup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contributing this.
Can we ask you to add a line to the release notes?

@FabianNitsche
Copy link
Contributor Author

Sure no problem. I just wanted to see if you approve this fix before adding to the release notes.

@FabianNitsche
Copy link
Contributor Author

OK. All done.

@jnyrup jnyrup marked this pull request as ready for review September 27, 2021 19:36
@jnyrup
Copy link
Member

jnyrup commented Sep 27, 2021

@FabianNitsche You had the PR in draft mode.
Anything you wanted to add before we merge this?

@jnyrup jnyrup linked an issue Sep 27, 2021 that may be closed by this pull request
@FabianNitsche
Copy link
Contributor Author

No nothing to add.

@jnyrup jnyrup merged commit b5b5ceb into fluentassertions:master Sep 28, 2021
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.

Creation of failure message for BeEmpty iterates over the collection

3 participants