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)); }
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)); }