fixed test.

This commit is contained in:
David Lebée 2018-02-14 08:12:30 -06:00
parent 8be7ed2e94
commit f6ce5a45af

View File

@ -132,8 +132,9 @@ namespace PoweredSoft.DynamicLinq.Test
SeedForTests(context); SeedForTests(context);
var query = context.Posts.AsQueryable(); var query = context.Posts.AsQueryable();
query = query.Where("Author.FirstName", ConditionOperators.Contains, "David"); query = query.Include("Author").Where("Author.FirstName", ConditionOperators.Contains, "David");
Assert.AreEqual(2, query.Count()); var post = query.FirstOrDefault();
Assert.AreEqual("David", post?.Author?.FirstName);
} }
[TestMethod] [TestMethod]