The deviation from docs arose a long time back and it would indeed be
a breaking
change to modify the behavior now. The test for Contains is definitely
equality now,
so much so that you can provide your own comparer!
However, I wouldn't hesitate to provide a separate constraint that uses equality
and (possibly) modify the behavior for NUnit 3.0, using different syntax for
identity and equality.
Charlie
On Wed, Sep 19, 2012 at 2:45 AM, Simone Busoli
<email address hidden> wrote:
> Hi Christian, that's right, I didn't spot that the docs say that Contains would check for identity equality.
> Complying to that now would indeed be a breaking change though.
>
> --
> You received this bug notification because you are subscribed to NUnit
> Extended Testing Platform.
> https://bugs.launchpad.net/bugs/1051847
>
> Title:
> self contained item in array causes stack overflow
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/nunitv2/+bug/1051847/+subscriptions
The deviation from docs arose a long time back and it would indeed be
a breaking
change to modify the behavior now. The test for Contains is definitely
equality now,
so much so that you can provide your own comparer!
However, I wouldn't hesitate to provide a separate constraint that uses equality
and (possibly) modify the behavior for NUnit 3.0, using different syntax for
identity and equality.
Charlie
On Wed, Sep 19, 2012 at 2:45 AM, Simone Busoli /bugs.launchpad .net/bugs/ 1051847 /bugs.launchpad .net/nunitv2/ +bug/1051847/ +subscriptions
<email address hidden> wrote:
> Hi Christian, that's right, I didn't spot that the docs say that Contains would check for identity equality.
> Complying to that now would indeed be a breaking change though.
>
> --
> You received this bug notification because you are subscribed to NUnit
> Extended Testing Platform.
> https:/
>
> Title:
> self contained item in array causes stack overflow
>
> To manage notifications about this bug go to:
> https:/