Пример #1
0
 public void TestCSharp_SnakeCaseNotAccepted()
 {
     Helper.AssertTemplateResult("Liquid error: Unknown operator starts_with", "{% if 'bob' starts_with 'B' %} YES {% endif %}", null, new CSharpNamingConvention());
 }
Пример #2
0
 public void TestRuby_PascalCaseNotAccepted()
 {
     Helper.AssertTemplateResult("Liquid error: Unknown operator StartsWith", "{% if 'bob' StartsWith 'B' %} YES {% endif %}");
 }
Пример #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());
 }
Пример #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 %}");
 }