← Back to team overview

nunit-core team mailing list archive

[Bug 770471] Re: Assert.IsEmpty does not support IEnumerable

 

This is a reasonable request since the underlying constraint supports
IEnumerable and Assert.That(list, Is.Empty) works.


** Changed in: nunitv2
       Status: New => Triaged

** Changed in: nunitv2
   Importance: Undecided => Low

** Changed in: nunitv2
    Milestone: None => 2.6.0

-- 
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:
  Triaged

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.


References