public void TestNestElement()
        {
            var elem  = new MessagingResponse();
            var child = new Message();

            elem.Nest(child).Body();

            Assert.AreEqual(
                "<?xml version=\"1.0\" encoding=\"utf-8\"?>" + Environment.NewLine +
                "<Response>" + Environment.NewLine +
                "  <Message>" + Environment.NewLine +
                "    <Body></Body>" + Environment.NewLine +
                "  </Message>" + Environment.NewLine +
                "</Response>",
                elem.ToString()
                );
        }
        public void TestAllowGenericChildrenOfChildNodes()
        {
            var elem  = new MessagingResponse();
            var child = new Message();

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

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