JasonBock / Rocks

A mocking library based on the Compiler APIs (Roslyn + Mocks)
MIT License
263 stars 20 forks source link

Order Member List in Models #301

Open JasonBock opened 10 months ago

JasonBock commented 10 months ago

Describe the solution you'd like Right now, I'm using EquatableArray<> in the models to support equality. However, I'm not sure if two EAs, one with A, B, C and the other with C, B, A would be considered equal. If not, then I should sort the member arrays so that the results are always the same. Note that this means I would not sort things like parameters because that order must be preserved.

BTW I have a comment in the constructor for TypeMockModel talking about this issue as well.