Skip to content

Commit 640bd49

Browse files
committed
test (#71)
1 parent b3a9e34 commit 640bd49

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

test/System.Linq.Dynamic.Core.Tests/QueryableTests.Join.cs

+3-11
Original file line numberDiff line numberDiff line change
@@ -152,17 +152,9 @@ public void JoinOnNullableType_LeftNullable()
152152
[Fact]
153153
public void JoinOnNullableType_NotSameTypesThrowsException()
154154
{
155-
Person magnus = new Person { Id = 1, Name = "Hedlund, Magnus" };
156-
Person terry = new Person { Id = 2, Name = "Adams, Terry" };
157-
Person charlotte = new Person { Id = 3, Name = "Weiss, Charlotte" };
158-
159-
Pet barley = new Pet { Name = "Barley", OwnerId = terry.Id };
160-
Pet boots = new Pet { Name = "Boots", OwnerId = terry.Id };
161-
Pet whiskers = new Pet { Name = "Whiskers", OwnerId = charlotte.Id };
162-
Pet daisy = new Pet { Name = "Daisy", OwnerId = magnus.Id };
163-
164-
var people = new List<Person> { magnus, terry, charlotte };
165-
var pets = new List<Pet> { barley, boots, whiskers, daisy };
155+
var person = new Person { Id = 1, Name = "Hedlund, Magnus" };
156+
var people = new List<Person> { person };
157+
var pets = new List<Pet> { new Pet { Name = "Daisy", OwnerId = person.Id } };
166158

167159
Check.ThatCode(() =>
168160
people.AsQueryable()

0 commit comments

Comments
 (0)