示例#1
0
 //was public, but jh didn't see why
 internal void DifferenceFound(XmlDiff inDiff, Difference difference)
 {
     _areIdentical = false;
     if (difference.HasMajorDifference) {
         _areEqual = false;
     }
     _difference = difference;
     if (_stringBuilder.Length == 0) {
         _stringBuilder.Append(inDiff.OptionalDescription);
     }
     _stringBuilder.Append(Environment.NewLine).Append(difference);
 }
示例#2
0
 private void DifferenceFound(Difference difference, DiffResult result)
 {
     result.DifferenceFound(this, difference);
     if (!ContinueComparison(difference))
     {
         throw new FlowControlException(difference);
     }
 }
示例#3
0
 public FlowControlException(Difference cause)
     : base(cause.ToString())
 {
 }
示例#4
0
 private bool ContinueComparison(Difference afterDifference)
 {
     return !afterDifference.HasMajorDifference;
 }