Example #1
0
        public void DowngradeDifferencesToSimilarLeavesUnknownTypesAlone()
        {
            DifferenceEvaluator d = DifferenceEvaluators
                                    .DowngradeDifferencesToSimilar(ComparisonType.XML_VERSION,
                                                                   ComparisonType.XML_STANDALONE);

            Assert.AreEqual(ComparisonResult.DIFFERENT,
                            d(new Comparison(ComparisonType.XML_ENCODING,
                                             null, null, null, null,
                                             null, null, null, null),
                              ComparisonResult.DIFFERENT));
        }
Example #2
0
        public void DowngradeDifferencesToSimilarLeavesEqualResultsAlone()
        {
            DifferenceEvaluator d = DifferenceEvaluators
                                    .DowngradeDifferencesToSimilar(ComparisonType.XML_VERSION,
                                                                   ComparisonType.XML_STANDALONE);

            Assert.AreEqual(ComparisonResult.EQUAL,
                            d(new Comparison(ComparisonType.XML_VERSION,
                                             null, null, null, null,
                                             null, null, null, null),
                              ComparisonResult.EQUAL));
        }
Example #3
0
        public void DowngradeDifferencesToSimilarDowngradesMatchingTypes()
        {
            DifferenceEvaluator d = DifferenceEvaluators
                                    .DowngradeDifferencesToSimilar(ComparisonType.XML_VERSION,
                                                                   ComparisonType.XML_STANDALONE);

            Assert.AreEqual(ComparisonResult.SIMILAR,
                            d(new Comparison(ComparisonType.XML_VERSION,
                                             null, null, null, null,
                                             null, null, null, null),
                              ComparisonResult.DIFFERENT));
        }