Пример #1
0
        public async Task Base64Encode(string value, string expected)
        {
            var input = new StringValue(value);

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

            var result = await MiscFilters.Base64Encode(input, arguments, context);

            Assert.Equal(expected, result.ToStringValue());
        }