public void Downcase()
        {
            var input = new StringValue("Hello World");

            var arguments = new FilterArguments();
            var context   = new TemplateContext();

            var result = StringFilters.Downcase(input, arguments, context);

            Assert.Equal("hello world", result.ToStringValue());
        }
Ejemplo n.º 2
0
 public void TestDowncase(string expected, object input)
 {
     Assert.Equal(expected, StringFilters.Downcase(FluidValue.Create(input), FilterArguments.Empty, new TemplateContext()).ToObjectValue());
 }