public void TestXmlComment() { string content = CommentReader.GetElement("sample"); XmlDocument document = new XmlDocument(); document.LoadXml(content); Assert.AreEqual(@"Code Complete", document.SelectSingleNode("//book/title").InnerText); }
public void TestNonXmlComment() { string content = CommentReader.GetElement("sample"); Assert.AreEqual(@"create table Orders ( id int, customer int );", content.Trim()); }