Example #1
0
        public void TestXmlComment()
        {
            string content = CommentReader.GetElement("sample");

            XmlDocument document = new XmlDocument();

            document.LoadXml(content);
            Assert.AreEqual(@"Code Complete", document.SelectSingleNode("//book/title").InnerText);
        }
Example #2
0
        public void TestNonXmlComment()
        {
            string content = CommentReader.GetElement("sample");

            Assert.AreEqual(@"create table Orders ( id int, customer int );", content.Trim());
        }