Skip to content

Commit

Permalink
Change the ! test, it currently should fail because the server dose n…
Browse files Browse the repository at this point in the history
…ot behave as we expecting.
  • Loading branch information
lanwin committed Jul 20, 2010
1 parent 05c9317 commit 9a6ea33
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/MongoDB.Tests/IntegrationTests/Linq/MongoQueryTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 9a6ea33

Please sign in to comment.