Пример #1
0
        public void XMLValidator_Valid_isTrue()
        {
            XMLValidator sut      = new XMLValidator();
            var          validate = sut.XmlValidate(@"C:\Users\z0045tam\source\repos\XMLParserConsoleTester\XMLParsing_UTest\test.u\Data\InvalidXML.xml");

            Assert.AreEqual(false, validate);
        }
Пример #2
0
        public void Test()
        {
            XMLValidator sut      = new XMLValidator();
            var          Validate = sut.XmlValidate(@"C:\Users\z0045tam\source\repos\XMLParserConsoleTester\XMLParsing_UTest\test.u\Data\AiScheduler1.xml");

            Assert.AreEqual(true, Validate);
        }
Пример #3
0
        public string parserReturn(string filePath)
        {
            XmlDocument doc = new XmlDocument();

            doc.Load(filePath);

            String xmlJobString = doc.OuterXml;

            XMLValidator validator = new XMLValidator();

            validator.XmlValidate(filePath);

            XMLDeserializer serializer = new XMLDeserializer();

            serializer.Deserialize(xmlJobString.ToString());


            return(null);
        }