Skip to content

"Opt Out" of strict ordering? #306

@tmenier

Description

@tmenier

In my test suite, I'd like strict ordering to be the default for all collection comparisons. It's what we want/expect the majority of the time and it's easy to forget to set the option on each assert. So I'm setting it globally:

AssertionOptions.AssertEquivalencyUsing(opt => opt.WithStrictOrdering());

However, there are a few tests where I'd like order to be ignored. I'm not seeing any collection assertions that explicitly say to ignore order, nor do I see an equivalency option that is effectively the inverse of WithStrictOrdering. Is possible to "turn off" strict ordering when it's on globally?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions