예제 #1
0
        public void DowngradeDifferencesToEqualLeavesUnknownTypesAlone()
        {
            DifferenceEvaluator d = DifferenceEvaluators
                                    .DowngradeDifferencesToEqual(ComparisonType.XML_VERSION,
                                                                 ComparisonType.XML_STANDALONE);

            Assert.AreEqual(ComparisonResult.SIMILAR,
                            d(new Comparison(ComparisonType.XML_ENCODING,
                                             null, null, null, null,
                                             null, null, null, null),
                              ComparisonResult.SIMILAR));
        }
예제 #2
0
        public void DowngradeDifferencesToEqualDowngradesMatchingTypes()
        {
            DifferenceEvaluator d = DifferenceEvaluators
                                    .DowngradeDifferencesToEqual(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.SIMILAR));
        }