Public bug reported:

Here's a piece of code:

CollectionAssert.Contains(sourceImages, typeof(Bitmap));


What I expect this to do, is to check if the Generic List "sourceImages" 
contains at least one Bitmap element.

"Does sourceImages contain an object that is type Bitmap?". That's what
I see being tested here.

However, I am receiving this:

http://i.imgur.com/IA7ii.png

This is using NUnit-2.5.9.10320

** 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/689079

Title:
  CollectionAssert.Contains checks against entire object, not contents

Status in NUnit V2 Test Framework:
  New

Bug description:
  Here's a piece of code:

CollectionAssert.Contains(sourceImages, typeof(Bitmap));


What I expect this to do, is to check if the Generic List "sourceImages" 
contains at least one Bitmap element.

"Does sourceImages contain an object that is type Bitmap?". That's what I see 
being tested here.

However, I am receiving this:

http://i.imgur.com/IA7ii.png

This is using NUnit-2.5.9.10320



_______________________________________________
Mailing list: https://launchpad.net/~nunit-core
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~nunit-core
More help   : https://help.launchpad.net/ListHelp

Reply via email to