fixed test.

This commit is contained in:
David 2018-02-11 20:11:35 -06:00
parent c9cf79cd63
commit 98388c6f90

View File

@ -26,10 +26,17 @@ namespace PoweredSoft.DynamicLinq.Test
// the query. // the query.
var query = authors.AsQueryable(); var query = authors.AsQueryable();
query = query.Query(q => q query = query.Query(q =>
.Compare("AuthorId", ConditionOperators.Equal, 1) {
.Or("AuthorId", ConditionOperators.Equal, 2) q.Compare("AuthorId", ConditionOperators.Equal, 1);
); q.And(sq =>
{
sq.Compare("Content", ConditionOperators.Equal, "World");
sq.Or("Title", ConditionOperators.Contains, 3);
});
});
Assert.AreEqual(2, query.Count());
} }
} }
} }