public void CanAddCustomFilter() { CAMLQueryBuilder target = new CAMLQueryBuilder(); target.AddFilter(new CAMLFilter { FilterExpression = "foo" }); SPQuery query = target.Build(); Assert.AreEqual("<Where>foo</Where>", query.Query); }
public void CanAddCustomFilter() { CAMLQueryBuilder target = new CAMLQueryBuilder(); target.AddFilter(new CAMLFilter { FilterExpression = "foo" }); SPQuery query = target.Build(); Assert.AreEqual("<Where>foo</Where>", query.Query); }