Esempio n. 1
0
        public void ParserComparesUnEqual()
        {
            var parser = new UnorderedNodeParser();
            var xmlA   = parser.Parse(XmlReader.Create(new StringReader(XmlA)));
            var xmlC   = parser.Parse(XmlReader.Create(new StringReader(XmlC)));

            Assert.That(xmlA, Is.Not.EqualTo(xmlC));
        }
Esempio n. 2
0
        public void FuzzingHasNoEffectOnUnorderedNodeParser()
        {
            var xml    = XDocument.Parse(XmlA);
            var fuzzed = new XmlFuzzer().Fuzz(xml);
            var parser = new UnorderedNodeParser();

            using (var reader = xml.CreateReader())
            {
                var source = parser.Parse(reader);
                using (var fuzzedReader = fuzzed.CreateReader())
                {
                    var fuzz = parser.Parse(fuzzedReader);
                    Assert.That(source, Is.EqualTo(fuzz));
                }
            }
        }
Esempio n. 3
0
 public void FuzzingHasNoEffectOnUnorderedNodeParser()
 {
     var xml = XDocument.Parse(XmlA);
     var fuzzed = new XmlFuzzer().Fuzz(xml);
     var parser = new UnorderedNodeParser();
     using (var reader = xml.CreateReader())
     {
         var source = parser.Parse(reader);
         using (var fuzzedReader = fuzzed.CreateReader())
         {
             var fuzz = parser.Parse(fuzzedReader);
             Assert.That(source, Is.EqualTo(fuzz));
         }
     }
 }
Esempio n. 4
0
 public void ParserComparesUnEqual()
 {
     var parser = new UnorderedNodeParser();
     var xmlA = parser.Parse(XmlReader.Create(new StringReader(XmlA)));
     var xmlC = parser.Parse(XmlReader.Create(new StringReader(XmlC)));
     Assert.That(xmlA, Is.Not.EqualTo(xmlC));
 }
 public void SetUp()
 {
     _unorderedNodeParser = new UnorderedNodeParser();
     _flatXmlParser = new FlatXmlParser();
 }
Esempio n. 6
0
 public void SetUp()
 {
     _unorderedNodeParser = new UnorderedNodeParser();
     _flatXmlParser       = new FlatXmlParser();
 }