fixed test.
This commit is contained in:
parent
8be7ed2e94
commit
f6ce5a45af
@ -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]
|
||||||
|
Loading…
Reference in New Issue
Block a user