vrakeshreddy / mb-unit

Automatically exported from code.google.com/p/mb-unit
0 stars 0 forks source link

Implement Assert.AreElementsSame & co #561

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Proposal for the implementation of the following new assertions for MbUnit:
- Assert.AreElementsSame
- Assert.AreElementsSameIgnoringOrder
- Assert.AreElementsNotSame

Those new assertions would be for Assert.AreSame, what 
Assert.AreElementsEqual is for Assert.AreEqual.

The usage is probably marginal, but I just got a case where it could have 
been useful. The current alternative is to use Assert.AreElementsEqual with a 
custom comparison function like "(x, y) => Object.ReferenceEquals(x, y)".

Is it OK?

Original issue reported on code.google.com by Yann.Tre...@gmail.com on 14 Oct 2009 at 11:24

GoogleCodeExporter commented 9 years ago
Seems fine to me.  Go ahead.

Original comment by jeff.br...@gmail.com on 14 Oct 2009 at 6:03

GoogleCodeExporter commented 9 years ago

Original comment by Yann.Tre...@gmail.com on 15 Oct 2009 at 5:22

GoogleCodeExporter commented 9 years ago

Original comment by Yann.Tre...@gmail.com on 16 Oct 2009 at 7:22