Skip to content

Commit

Permalink
test (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
StefH committed Apr 30, 2017
1 parent b3a9e34 commit 640bd49
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions test/System.Linq.Dynamic.Core.Tests/QueryableTests.Join.cs
Expand Up @@ -152,17 +152,9 @@ public void JoinOnNullableType_LeftNullable()
[Fact]
public void JoinOnNullableType_NotSameTypesThrowsException()
{
Person magnus = new Person { Id = 1, Name = "Hedlund, Magnus" };
Person terry = new Person { Id = 2, Name = "Adams, Terry" };
Person charlotte = new Person { Id = 3, Name = "Weiss, Charlotte" };

Pet barley = new Pet { Name = "Barley", OwnerId = terry.Id };
Pet boots = new Pet { Name = "Boots", OwnerId = terry.Id };
Pet whiskers = new Pet { Name = "Whiskers", OwnerId = charlotte.Id };
Pet daisy = new Pet { Name = "Daisy", OwnerId = magnus.Id };

var people = new List<Person> { magnus, terry, charlotte };
var pets = new List<Pet> { barley, boots, whiskers, daisy };
var person = new Person { Id = 1, Name = "Hedlund, Magnus" };
var people = new List<Person> { person };
var pets = new List<Pet> { new Pet { Name = "Daisy", OwnerId = person.Id } };

Check.ThatCode(() =>
people.AsQueryable()
Expand Down

0 comments on commit 640bd49

Please sign in to comment.