Ejemplo n.º 1
0
        public void TestAllowGenericChildNodes()
        {
            var elem = new Prompt();

            elem.AddChild("generic-tag").AddText("Content").SetOption("tag", true);

            Assert.AreEqual(
                "<?xml version=\"1.0\" encoding=\"utf-8\"?>" + Environment.NewLine +
                "<Prompt>" + Environment.NewLine +
                "  <generic-tag tag=\"True\">Content</generic-tag>" + Environment.NewLine +
                "</Prompt>",
                elem.ToString()
                );
        }