Skip to content

Commit 9a6ea33

Browse files
committed
Change the ! test, it currently should fail because the server dose not behave as we expecting.
1 parent 05c9317 commit 9a6ea33

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/MongoDB.Tests/IntegrationTests/Linq/MongoQueryTests.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public override void TestSetup()
3737
FirstName = "Jane",
3838
LastName = "McJane",
3939
Age = 35,
40-
PrimaryAddress = new Address { City = "Paris", IsInternational = true, AddressType = AddressType.Private },
40+
PrimaryAddress = new Address { City = "Paris", IsInternational = false, AddressType = AddressType.Private },
4141
Addresses = new List<Address>
4242
{
4343
new Address { City = "Paris", AddressType = AddressType.Private }
@@ -76,23 +76,23 @@ public void Boolean()
7676
{
7777
var people = Enumerable.ToList(Collection.Linq().Where(x => x.PrimaryAddress.IsInternational));
7878

79-
Assert.AreEqual(3, people.Count);
79+
Assert.AreEqual(2, people.Count);
8080
}
8181

8282
[Test]
8383
public void Boolean_Inverse()
8484
{
8585
var people = Enumerable.ToList(Collection.Linq().Where(x => !x.PrimaryAddress.IsInternational));
8686

87-
Assert.AreEqual(0, people.Count);
87+
Assert.AreEqual(1, people.Count);
8888
}
8989

9090
[Test]
9191
public void Boolean_In_Conjunction()
9292
{
9393
var people = Enumerable.ToList(Collection.Linq().Where(x => x.PrimaryAddress.IsInternational && x.Age > 21));
9494

95-
Assert.AreEqual(2, people.Count);
95+
Assert.AreEqual(1, people.Count);
9696
}
9797

9898
[Test]

0 commit comments

Comments
 (0)