public static QueryConditionList Size(string name, int size) { if (name == null) { throw new ArgumentNullException("name"); } return new QueryConditionList(name).Size(size); }
public void TestSizeAndAll() { var query = Query.Size("k", 20).All(7, 11); var expected = "{ \"k\" : { \"$size\" : 20, \"$all\" : [7, 11] } }"; Assert.AreEqual(expected, query.ToJson()); }