public void Upcase() { var input = new StringValue("Hello World"); var arguments = new FilterArguments(); var context = new TemplateContext(); var result = StringFilters.Upcase(input, arguments, context); Assert.Equal("HELLO WORLD", result.ToStringValue()); }
public void TestUpcase(string expected, object input) { Assert.Equal(expected, StringFilters.Upcase(FluidValue.Create(input), FilterArguments.Empty, new TemplateContext()).ToObjectValue()); }