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