Beispiel #1
0
        public void TestSimplestAddChildAndText()
        {
            code = "<ConsoleApp xmlns=\"console\" xmlns:x=\"http://schemas.microsoft.com/winfx/xaml/2005\">\n" +
                   "<ConsoleWriter>Hello</ConsoleWriter>" +
                   "</ConsoleApp>";

            ConsoleApp    app    = new ConsoleApp();
            ConsoleWriter writer = new ConsoleWriter();

            writer.AddText("Hello");
            app.AddChild(writer);

            compare(app);
        }