Ejemplo n.º 1
0
        public void MakesXmlLower()
        {
            string xml =
                new LowerXambler(
                    new Xambler(
                        new Directives()
                        .Add("PagE")
                        )
                    ).Xml();

            Assert.StartsWith(
                "<?xml version=\"1.0\" encoding=\"utf-16\"?><page></page>",
                xml
                );
        }
Ejemplo n.º 2
0
        public void CreatesXmlWithHeaderFromXmlQuietly()
        {
            string xml =
                new LowerXambler(
                    new Xambler(
                        new Directives()
                        .Add("page")
                        .Add("child-node").Set(" the text\n")
                        )
                    ).XmlQuietly();

            Assert.StartsWith(
                "<?xml version=\"1.0\" encoding=\"utf-16\"?>",
                xml
                );
        }
Ejemplo n.º 3
0
        public void CreatesXmlWithoutHeader()
        {
            string xml =
                new LowerXambler(
                    new Xambler(
                        new Directives()
                        .Add("page")
                        .Add("child-node").Set(" the text\n")
                        )
                    ).Xml(false);

            Assert.StartsWith(
                "<page><child-node>",
                xml
                );
        }