Skip to content

BeEquivalentTo fails when comparing lists containing lists #965

@michaelestermann

Description

@michaelestermann

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions