Пример #1
0
        public void testSimpleXml()
        {
            XmlValidator val = new XmlValidator();

            Assert.Equal(true, val.validate(@"<root><field1>b</field1><field2>33</field2><field3>-22.5</field3><field4>false</field4></root>"));
        }
Пример #2
0
        public void testEmptyXml()
        {
            XmlValidator val = new XmlValidator();

            Assert.Equal(true, val.validate(""));
        }