fixed test.
This commit is contained in:
parent
c9cf79cd63
commit
98388c6f90
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user