fixed test.
This commit is contained in:
parent
8be7ed2e94
commit
f6ce5a45af
@ -132,8 +132,9 @@ namespace PoweredSoft.DynamicLinq.Test
|
||||
SeedForTests(context);
|
||||
|
||||
var query = context.Posts.AsQueryable();
|
||||
query = query.Where("Author.FirstName", ConditionOperators.Contains, "David");
|
||||
Assert.AreEqual(2, query.Count());
|
||||
query = query.Include("Author").Where("Author.FirstName", ConditionOperators.Contains, "David");
|
||||
var post = query.FirstOrDefault();
|
||||
Assert.AreEqual("David", post?.Author?.FirstName);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
|
Loading…
Reference in New Issue
Block a user