Exemple #1
0
        public void XmlCompareConstrainsSimpleSimilarTest()
        {
            var expected = XmlSamples.GetContent("elements");
            var actual   = XmlSamples.GetContent("elements-with-different-order");

            Assert.That(expected, IsXml.Similar(actual));
        }
Exemple #2
0
        public void CompareNamespacesWithDifferentPrefixesIsSimilarTest()
        {
            var actual   = XmlSamples.GetContent("ns");
            var expected = XmlSamples.GetContent("ns-with-another-prefix");

            Assert.That(expected, IsXml.Similar(actual));
        }