Ejemplo n.º 1
0
 public void TestCSharp_SnakeCaseNotAccepted()
 {
     Helper.AssertTemplateResult("Liquid error: Unknown operator starts_with", "{% if 'bob' starts_with 'B' %} YES {% endif %}", null, new CSharpNamingConvention());
 }
Ejemplo n.º 2
0
 public void TestRuby_PascalCaseNotAccepted()
 {
     Helper.AssertTemplateResult("Liquid error: Unknown operator StartsWith", "{% if 'bob' StartsWith 'B' %} YES {% endif %}");
 }
Ejemplo n.º 3
0
 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());
 }
Ejemplo n.º 4
0
 public void TestRuby_SnakeCaseAccepted()
 {
     Helper.AssertTemplateResult("", "{% if 'bob' starts_with 'B' %} YES {% endif %}");
     Helper.AssertTemplateResult(" YES ", "{% if 'Bob' starts_with 'B' %} YES {% endif %}");
 }