public static QueryConditionList LTE(string name, BsonValue value) { if (name == null) { throw new ArgumentNullException("name"); } if (value == null) { throw new ArgumentNullException("value"); } return new QueryConditionList(name).LTE(value); }
public void TestLessThanOrEqualAndNotEquals() { var query = Query.LTE("k", 10).NE(5); var expected = "{ \"k\" : { \"$lte\" : 10, \"$ne\" : 5 } }"; Assert.AreEqual(expected, query.ToJson()); }