public void BuildsDomNode()
        {
            IXML doc = new XMLCursor("<?xml version='1.0'?><f/>");

            Assert.True(
                doc.AsNode().NodeType == XmlNodeType.Document
                );
            Assert.True(
                doc.Nodes("/f")[0].AsNode().NodeType == XmlNodeType.Element
                );
        }
        public void ReadsXml()
        {
            var expected = new XMLCursor("<expected />");

            Assert.Equal(
                expected.AsNode().ToString(),
                new XmlBody.Of(
                    new Request(
                        new Body(expected)
                        )
                    ).AsNode().ToString()
                );
        }
        public void HasXml()
        {
            var expected = new XMLCursor("<root><importantXmlData /></root>");

            Assert.Equal(
                expected.AsNode().ToString(),
                new XMLCursor(
                    new Body.Of(
                        new XmlResponse.Of(expected)
                        )
                    ).AsNode().ToString()
                );
        }