Open KarsonAlford opened 9 years ago
how would this work with types other than strings/ints? reference equality?
Equality tests start with reference equality and only use an override if the reference is not equal. List<>.Remove() above is performing equality tests.
Also, often expected objects are contrived using the same objects used as input. Most of the time equality tests will be matching on references.
When the lists being compared are large the output when they do not match is difficult to read.
In some cases I filter out the duplicates before calling the ShouldContain* method. Should this be done by Given?