Skip to content

Commit

Permalink
Check in failing null test linq test with class types instead of valu…
Browse files Browse the repository at this point in the history
…e types.
  • Loading branch information
lanwin committed Jun 1, 2010
1 parent 8474744 commit 3af0514
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/MongoDB.Tests/IntegrationTests/Linq/LinqDomain.cs
Expand Up @@ -26,6 +26,8 @@ public class Person
public int[] EmployerIds { get; set; }

public string MidName { get; set; }

public Oid LinkedId { get; set; }
}

public class Address
Expand Down
8 changes: 8 additions & 0 deletions source/MongoDB.Tests/IntegrationTests/Linq/MongoQueryTests.cs
Expand Up @@ -294,6 +294,14 @@ public void NullCheck()
Assert.AreEqual(2, people.Length);
}

[Test]
public void NullCheckOnClassTypes()
{
var people = Collection.Linq().Where(x => x.LinkedId == null).ToArray();

Assert.AreEqual(3, people.Length);
}

[Test]
public void OrderBy()
{
Expand Down

0 comments on commit 3af0514

Please sign in to comment.