internal string GetStartsWithValue(string value, char?escapeChar = null)
        {
            if (escapeChar.HasValue)
            {
                return(_dialect.StartsWith(value, escapeChar.Value));
            }

            return(_dialect.StartsWith(value));
        }
Exemplo n.º 2
0
        public void testExpressionFunctions_prefix_escape()
        {
            var dialect = new StandardDialect();

            dialect.StartsWith("a!a%a_", '!').Is("a!!a!%a!_%");
        }
Exemplo n.º 3
0
        public void testExpressionFunctions_prefix_escapeWithBackslash()
        {
            var dialect = new StandardDialect();

            dialect.StartsWith("a\\a%a_", '\\').Is("a\\\\a\\%a\\_%");
        }
Exemplo n.º 4
0
        public void testExpressionFunctions_prefix()
        {
            var dialect = new StandardDialect();

            dialect.StartsWith("a$a%a_").Is("a$$a$%a$_%");
        }