//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); }
private void DifferenceFound(Difference difference, DiffResult result) { result.DifferenceFound(this, difference); if (!ContinueComparison(difference)) { throw new FlowControlException(difference); } }
public FlowControlException(Difference cause) : base(cause.ToString()) { }
private bool ContinueComparison(Difference afterDifference) { return !afterDifference.HasMajorDifference; }