nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #02510
[Bug 920472] [NEW] CollectionAssert.IsNotEmpty must dispose Enumerator
Public bug reported:
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
** Affects: nunitv2
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
https://bugs.launchpad.net/bugs/920472
Title:
CollectionAssert.IsNotEmpty must dispose Enumerator
Status in NUnit V2 Test Framework:
New
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/nunitv2/+bug/920472/+subscriptions
Follow ups
-
[Bug 920472] Re: CollectionAssert.IsNotEmpty must dispose Enumerator
From: Charlie Poole, 2013-10-05
-
[Bug 920472] Re: CollectionAssert.IsNotEmpty must dispose Enumerator
From: Charlie Poole, 2012-02-05
-
[Bug 920472] Re: CollectionAssert.IsNotEmpty must dispose Enumerator
From: Charlie Poole, 2012-01-24
-
[Bug 920472] Re: CollectionAssert.IsNotEmpty must dispose Enumerator
From: Launchpad Bug Tracker, 2012-01-24
-
[Bug 920472] Re: CollectionAssert.IsNotEmpty must dispose Enumerator
From: Charlie Poole, 2012-01-24
-
[Bug 920472] Re: CollectionAssert.IsNotEmpty must dispose Enumerator
From: Launchpad Bug Tracker, 2012-01-24
-
[Bug 920472] Re: CollectionAssert.IsNotEmpty must dispose Enumerator
From: Charlie Poole, 2012-01-24
-
[Bug 920472] Re: CollectionAssert.IsNotEmpty must dispose Enumerator
From: Charlie Poole, 2012-01-24
-
[Bug 920472] Re: CollectionAssert.IsNotEmpty must dispose Enumerator
From: Charlie Poole, 2012-01-24
-
[Bug 920472] [NEW] CollectionAssert.IsNotEmpty must dispose Enumerator
From: pil0t, 2012-01-23
References