← Back to team overview

nunit-core team mailing list archive

[Bug 689079] [NEW] CollectionAssert.Contains checks against entire object, not contents

 

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





Follow ups

References