Example #1
0
        public void PositiveTestSchema()
        {
            var badlinenumber = _xmlChecker.FindBadLine(@"..\..\..\MP.06.AdvancedXML\Books.xml");
            var message       = "Test OK";

            if (badlinenumber != 0)
            {
                message = "Bad input xml, line № " + badlinenumber;
            }

            Assert.IsTrue(badlinenumber == 0, message);
        }
Example #2
0
 public void PositiveTestTransfromer()
 {
     _transformer.TransformXmlFile(@"..\..\..\MP.06.AdvancedXML\book.xml", "rss.xml");
     Assert.IsTrue(File.Exists("rss.xml"));
     Assert.IsTrue(_xmlChecker.FindBadLine(@"rss.xml") == 0);
 }