internal string GetContainsValue(string value, char?escapeChar = null) { if (escapeChar.HasValue) { return(_dialect.Contains(value, escapeChar.Value)); } return(_dialect.Contains(value)); }
public void testExpressionFunctions_infix_escapeWithBackslash() { var dialect = new StandardDialect(); dialect.Contains("a\\a%a_", '\\').Is("%a\\\\a\\%a\\_%"); }
public void testExpressionFunctions_infix() { var dialect = new StandardDialect(); dialect.Contains("a$a%a_").Is("%a$$a$%a$_%"); }
public void testExpressionFunctions_infix_escape() { var dialect = new StandardDialect(); dialect.Contains("a!a%a_", '!').Is("%a!!a!%a!_%"); }