public void TestHyperscript(VTree tree, string output)
        {
            var generator = new VHyperscriptRenderer();
            var sb = new StringBuilder();
            var writer = new StringWriter(sb);
            generator.Render(tree, writer);

            Assert.Equal(output, sb.ToString());
        }
Beispiel #2
0
 public void Visit(VTree vTree)
 {
 }
 public void Render(VTree tree, TextWriter writer)
 {
     tree.Accept(new VTreeVisitor(writer));
 }