public void Should_make_query_with_endswith() { var filter = ClrFilter.EndsWith("Text", "search"); AssertQuery("{ 'Text' : /search$/i }", filter); }
public void Should_make_query_with_endswithand_invalid_character() { var filter = ClrFilter.EndsWith("Text", "search("); AssertQuery("{ 'Text' : /search\\($/i }", filter); }
public void Should_make_query_with_endswith_and_null_value() { var filter = ClrFilter.EndsWith("Text", null !); AssertQuery("{ 'Text' : /null$/i }", filter); }