nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #01170
[Bug 491300] Re: Self containing enumerables cause stack overflow when compared for equality
** Branch linked: lp:nunitv2
--
Self containing enumerables cause stack overflow when compared for equality
https://bugs.launchpad.net/bugs/491300
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
Status in NUnit V2 Test Framework: Fix Committed
Bug description:
I'm upgrading from NUnit framework 2.4.8 to 2.5.2.
Now, a StackOverflowException occurs when calling Assert.AreEqual(object,object,string).
The arguments are actually equal.
The object is IEnumerable and directly contains itself.
Work around: use identity instead of equality comparison.
Using NUnit 2.5.2.