public void Should_make_query_with_startswith() { var filter = ClrFilter.StartsWith("Text", "search"); AssertQuery("{ 'Text' : /^search/i }", filter); }
public void Should_make_query_with_startswith_and_invalid_character() { var filter = ClrFilter.StartsWith("Text", "search("); AssertQuery("{ 'Text' : /^search\\(/i }", filter); }
public void Should_make_query_with_startswith_and_null_value() { var filter = ClrFilter.StartsWith("Text", null !); AssertQuery("{ 'Text' : /^null/i }", filter); }