nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #01704
[Bug 770471] [NEW] Assert.IsEmpty does not support IEnumerable
Public bug reported:
Assert.IsEmpty does not support IEnumerable, only ICollection, and thus
will not compile for generic interfaces like IList<T>, which do not
implement the non-generic ICollection.
CollectionAssert.IsEmpty does support IEnumerable, so it appears
reasonable to add an overload for IEnumerable to Assert.
The same is true for both classes' negative forms.
** Affects: nunitv2
Importance: Undecided
Status: New
** Description changed:
Assert.IsEmpty does not support IEnumerable, only ICollection, and thus
will not compile for generic interfaces like IList<T>, which do not
implement the non-generic ICollection.
CollectionsAssert.IsEmpty does support IEnumerable, so it appears
- reasonable to add an overload for IEnumerable.
+ reasonable to add an overload for IEnumerable to Assert.
The same is true for both classes' negative forms.
** Description changed:
Assert.IsEmpty does not support IEnumerable, only ICollection, and thus
will not compile for generic interfaces like IList<T>, which do not
implement the non-generic ICollection.
- CollectionsAssert.IsEmpty does support IEnumerable, so it appears
+ CollectionAssert.IsEmpty does support IEnumerable, so it appears
reasonable to add an overload for IEnumerable to Assert.
The same is true for both classes' negative forms.
--
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
https://bugs.launchpad.net/bugs/770471
Title:
Assert.IsEmpty does not support IEnumerable
Status in NUnit V2 Test Framework:
New
Bug description:
Assert.IsEmpty does not support IEnumerable, only ICollection, and
thus will not compile for generic interfaces like IList<T>, which do
not implement the non-generic ICollection.
CollectionAssert.IsEmpty does support IEnumerable, so it appears
reasonable to add an overload for IEnumerable to Assert.
The same is true for both classes' negative forms.
Follow ups
-
[Bug 770471] Re: Assert.IsEmpty does not support IEnumerable
From: Charlie Poole, 2013-10-05
-
[Bug 770471] Re: Assert.IsEmpty does not support IEnumerable
From: Charlie Poole, 2011-12-06
-
[Bug 770471] Re: Assert.IsEmpty does not support IEnumerable
From: Launchpad Bug Tracker, 2011-12-06
-
[Bug 770471] Re: Assert.IsEmpty does not support IEnumerable
From: Charlie Poole, 2011-12-06
-
[Bug 770471] Re: Assert.IsEmpty does not support IEnumerable
From: Charlie Poole, 2011-11-26
-
[Bug 770471] Re: Assert.IsEmpty does not support IEnumerable
From: Charlie Poole, 2011-11-20
-
[Bug 770471] Re: Assert.IsEmpty does not support IEnumerable
From: Charlie Poole, 2011-11-20
-
[Bug 770471] Re: Assert.IsEmpty does not support IEnumerable
From: Charlie Poole, 2011-11-04
-
[Bug 770471] Re: Assert.IsEmpty does not support IEnumerable
From: Launchpad Bug Tracker, 2011-10-21
-
[Bug 770471] Re: Assert.IsEmpty does not support IEnumerable
From: Charlie Poole, 2011-10-21
-
[Bug 770471] Re: Assert.IsEmpty does not support IEnumerable
From: Charlie Poole, 2011-04-25
-
[Bug 770471] [NEW] Assert.IsEmpty does not support IEnumerable
From: Christopher Currie, 2011-04-25
References