diff --git a/PoweredSoft.DynamicLinq.Test/ComplexQueryTest.cs b/PoweredSoft.DynamicLinq.Test/ComplexQueryTest.cs index b659793..3a279e5 100644 --- a/PoweredSoft.DynamicLinq.Test/ComplexQueryTest.cs +++ b/PoweredSoft.DynamicLinq.Test/ComplexQueryTest.cs @@ -26,10 +26,17 @@ namespace PoweredSoft.DynamicLinq.Test // the query. var query = authors.AsQueryable(); - query = query.Query(q => q - .Compare("AuthorId", ConditionOperators.Equal, 1) - .Or("AuthorId", ConditionOperators.Equal, 2) - ); + query = query.Query(q => + { + 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()); } } }