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 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)); } } }
public void SetUp() { _unorderedNodeParser = new UnorderedNodeParser(); _flatXmlParser = new FlatXmlParser(); }