-
Notifications
You must be signed in to change notification settings - Fork 732
BeEqualTo as an alternative for collections.Equal #3165
Copy link
Copy link
Closed
Labels
api-approvedAPI was approved, it can be implementedAPI was approved, it can be implementedenhancement
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
api-approvedAPI was approved, it can be implementedAPI was approved, it can be implementedenhancement