public void XmlCompareConstrainsEqualsWithDifferentOrder() { var expected = XmlSamples.GetContent("elements"); var actual = XmlSamples.GetContent("elements-with-different-order"); Assert.That( expected, IsXml.Equals(actual).UseAnalizer(XmlAnalyzer.Custom().SetEqual(XmlComparisonType.NodeListSequence))); }
public void XmlCompareConstrainWithXsdReference() { var actual = XmlSamples.GetContent("with-xsd-reference"); var expected = XmlSamples.GetContent("with-xsd-another-reference"); Assert.That( expected, IsXml.Equals(actual) .UseAnalizer(XmlAnalyzer.Custom().SetEqual(XmlComparisonType.SchemaLocation))); }
public void XmlCompareConstrainCustomAnalyzerIgnoreNodeMissing() { var expected = XmlSamples.GetContent("elements"); var actual = XmlSamples.GetContent("elements-with-comment"); Assert.That( expected, IsXml.Equals(actual) .WithIgnoreComment(false) .UseAnalizer(XmlAnalyzer.Custom() .SetEqual(XmlComparisonType.NodeList) .SetEqual(XmlComparisonType.NodeListLookup))); }