nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #00452
[Bug 527729] [NEW] CollectionAssert.DoesNotContain does not work in correctly in cssyntax.cs
You have been subscribed to a public bug:
Maybe i am to new to all this testing and c#. Here the lines of
AssertSyntaxTests that do not seem to work correctly
int[] iarray = new int[] { 1, 2, 3 };
double onedouble = 1.0d;
// Showing that Contains uses object equality
Assert.That(iarray, Has.No.Member( 1.0d )); // fails
CollectionAssert.DoesNotContain(iarray, 1.0d); // fails
The Messge is:
"Expected: not collection containing 1.0d But was: < 1, 2, 3 > - C:\Program Files\NUnit 2.5.3\samples\csharp\syntax\AssertSyntaxTests.cs:558,4"
CollectionAssert.Contains(iarray, 1.0d); // does not fail
Possibly its just an implicit type cast, but it does fail the whole tree
- or is that intended to happen?
If it is of any interest:
I am currently using VS 2008 Express and SharpDev - both with same results
** Affects: nunitv2
Importance: Undecided
Status: New
--
CollectionAssert.DoesNotContain does not work in correctly in cssyntax.cs
https://bugs.launchpad.net/bugs/527729
You received this bug notification because you are a member of NUnit Developers, which is subscribed to NUnit V2.
References