public void TestCSharp_SnakeCaseNotAccepted() { Helper.AssertTemplateResult("Liquid error: Unknown operator starts_with", "{% if 'bob' starts_with 'B' %} YES {% endif %}", null, new CSharpNamingConvention()); }
public void TestRuby_PascalCaseNotAccepted() { Helper.AssertTemplateResult("Liquid error: Unknown operator StartsWith", "{% if 'bob' StartsWith 'B' %} YES {% endif %}"); }
public void TestCSharp_LowerPascalCaseAccepted() { Helper.AssertTemplateResult("", "{% if 'bob' startsWith 'B' %} YES {% endif %}", null, new CSharpNamingConvention()); Helper.AssertTemplateResult(" YES ", "{% if 'Bob' startsWith 'B' %} YES {% endif %}", null, new CSharpNamingConvention()); }
public void TestRuby_SnakeCaseAccepted() { Helper.AssertTemplateResult("", "{% if 'bob' starts_with 'B' %} YES {% endif %}"); Helper.AssertTemplateResult(" YES ", "{% if 'Bob' starts_with 'B' %} YES {% endif %}"); }