public string GetTheTableDiffExceptionMessage(TableDifferenceResults <T> tableDifferenceResults) { try { return(tableDiffExceptionBuilder.GetTheTableDiffExceptionMessage(tableDifferenceResults)); } catch { return("The table and the set not match."); } }
private void ThrowAnErrorDetailingWhichItemsAreMissing(IEnumerable <int> listOfMissingItems) { var message = tableDiffExceptionBuilder.GetTheTableDiffExceptionMessage(new TableDifferenceResults <T>(table, listOfMissingItems, actualItems)); throw new ComparisonException("\r\n" + message); }