/// <summary>Compare the comparison result with another one</summary> /// <param name="otherComparison">the comparison to compare with</param> /// <returns>a list of differences between the two results</returns> internal IEnumerable <CellComparison> DeltaWith(CsvComparison otherComparison) { var comparer = new RowColumnComparer(); var common = Result.Intersect(otherComparison.Result, comparer).ToList(); var difference = Result .Except(common, comparer) .Union(otherComparison.Result.Except(common, comparer)); return(difference); }
/// <returns>the different errors between two comparisons in a Query Table format</returns> public Collection <object> Query() => CsvComparison.MakeQueryTable(Result);
/// <summary>Initialize a CSV Comparison Difference</summary> /// <param name="set1">first set to compare</param> /// <param name="set2">second set to compare</param> public CsvComparisonDifference(CsvComparison set1, CsvComparison set2) { _set1 = set1; _set2 = set2; }