Skip to content

Conversation

@dennisdoomen
Copy link
Member

@dennisdoomen dennisdoomen commented Jul 23, 2021

When a collection is compared using BeEquivalentTo, and the items in that collection point to a class without members, FA would throw the No members were found for comparison. exception. This was caused by the IsRoot property that was interpreting the member path incorrectly. It assumed that if the path started with [, we were looking at the root. But even if the path started with [0].SomeProperty, it would treat the current INode as "root".

Fixes #1604

@dennisdoomen dennisdoomen merged commit b887b36 into fluentassertions:release-6.0 Jul 23, 2021
@dennisdoomen dennisdoomen deleted the Fix/1604 branch July 23, 2021 19:31
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.

GenericCollectionAssertions.BeEquivalentTo failed on sub class without properties after upgrade to 6.0-beta1

1 participant