nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #02512
[Bug 920472] Re: CollectionAssert.IsNotEmpty must dispose Enumerator
** Also affects: nunit-3.0
Importance: Undecided
Status: New
** Changed in: nunit-3.0
Status: New => Triaged
** Changed in: nunit-3.0
Importance: Undecided => Low
--
You received this bug notification because you are a member of NUnit
Core Developers, which is the registrant for NUnit Framework.
https://bugs.launchpad.net/bugs/920472
Title:
CollectionAssert.IsNotEmpty must dispose Enumerator
Status in NUnit Test Framework:
Triaged
Status in NUnit V2 Test Framework:
Triaged
Bug description:
protected static bool IsEmpty(IEnumerable enumerable)
{
ICollection collection = enumerable as ICollection;
if (collection != null)
return collection.Count == 0;
else
return !enumerable.GetEnumerator().MoveNext();
}
enumerable.GetEnumerator() - is not disposed
To manage notifications about this bug go to:
https://bugs.launchpad.net/nunit-3.0/+bug/920472/+subscriptions
References