public void TestCodeGenerated()
        {
            ParseAndGenerate(@"<html><% if (a == 'a') { %>Hello<% } %></html>");
            TemplateArguments args     = new TemplateArguments("a", 'b');
            ITinyTemplate     template = _compiler.Compile(args, _sb.ToString(), "nun");

            Assert.Equal("<html></html>\r\n", template.Invoke(args, null));
            Assert.Equal("<html>Hello</html>\r\n", template.Invoke(new TemplateArguments("a", 'a'), null));
        }
        public void TestEchoGenerated()
        {
            ParseAndGenerate(@"<html name=""<%= name %>"">");
            TemplateArguments args     = new TemplateArguments("name", "jonas");
            ITinyTemplate     template = _compiler.Compile(args, _sb.ToString(), "nun");
            string            result   = template.Invoke(args, null);

            Assert.Equal("<html name=\"jonas\">\r\n", result);
        }