Skip to content

BeEqualTo as an alternative for collections.Equal #3165

@dennisdoomen

Description

@dennisdoomen

Background and motivation

To compare two collections fully with strict ordening, we've had the Equal method on the GenericCollectionsAssertions. I propose to add BeEqualTo as an alternative that follows the same naming conventions as the rest of the assertions.

API Proposal

collection1.Should().BeEqualTo(collection2)

API Usage

Obvious

Alternative Designs

No response

Risks

No response

Are you willing to help with a proof-of-concept (as PR in that or a separate repo) first and as pull-request later on?

No

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions