コード例 #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);
        }
コード例 #2
0
        public void TestNonXmlComment()
        {
            string content = CommentReader.GetElement("sample");

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