-
Notifications
You must be signed in to change notification settings - Fork 732
"Opt Out" of strict ordering? #306
Copy link
Copy link
Closed
Labels
Milestone
Description
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?
Reactions are currently unavailable