-
Notifications
You must be signed in to change notification settings - Fork 732
BeEquivalentTo fails when comparing lists containing lists #965
Copy link
Copy link
Closed
Labels
Description
Description
When we updated fluentassertions to the latest version 5.5.0, we encountered an issue with the BeEquivalentTo assertion.
When we compare a list of objects, which contains another list with the same items but different order, the test will fail, even though strict ordering is disabled.
Repro
To reproduce this issue, I've created a repro repo which can be found here:
https://github.com/michaelestermann/OrderingRepro
Expected behavior:
Expected behaviour would be, that the lists are the same, even though the order of the lists are not the same.
Actual behavior:
Since the update, the test fails, because of the of the mismatching ordering of the list
Versions
We use the latest FluentAssertions 5.5.0 along with .NET Core SDK 2.1.500
Reactions are currently unavailable