Permalink
Browse files

Change the ! test, it currently should fail because the server dose n…

…ot behave as we expecting.
  • Loading branch information...
1 parent 05c9317 commit 9a6ea33c04fca879c61a8aa8c518b3849e5e0b55 @lanwin lanwin committed Jul 20, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 source/MongoDB.Tests/IntegrationTests/Linq/MongoQueryTests.cs
View
8 source/MongoDB.Tests/IntegrationTests/Linq/MongoQueryTests.cs
@@ -37,7 +37,7 @@ public override void TestSetup()
FirstName = "Jane",
LastName = "McJane",
Age = 35,
- PrimaryAddress = new Address { City = "Paris", IsInternational = true, AddressType = AddressType.Private },
+ PrimaryAddress = new Address { City = "Paris", IsInternational = false, AddressType = AddressType.Private },
Addresses = new List<Address>
{
new Address { City = "Paris", AddressType = AddressType.Private }
@@ -76,23 +76,23 @@ public void Boolean()
{
var people = Enumerable.ToList(Collection.Linq().Where(x => x.PrimaryAddress.IsInternational));
- Assert.AreEqual(3, people.Count);
+ Assert.AreEqual(2, people.Count);
}
[Test]
public void Boolean_Inverse()
{
var people = Enumerable.ToList(Collection.Linq().Where(x => !x.PrimaryAddress.IsInternational));
- Assert.AreEqual(0, people.Count);
+ Assert.AreEqual(1, people.Count);
}
[Test]
public void Boolean_In_Conjunction()
{
var people = Enumerable.ToList(Collection.Linq().Where(x => x.PrimaryAddress.IsInternational && x.Age > 21));
- Assert.AreEqual(2, people.Count);
+ Assert.AreEqual(1, people.Count);
}
[Test]

0 comments on commit 9a6ea33

Please sign in to comment.