public void removeColumns(int original, String columnNumbersText, String expectedText) { List <String> source = new List <String>(original); for (int i = 0; i < original; i++) { source.Add((i + 1).ToString()); } HashSet <int> columnNumbers = new HashSet <int>(TextUtil.parseInts(columnNumbersText)); List <String> actual = RowUtil.removeColumns(source, columnNumbers); String actualText = String.Join(",", actual); Assert.Equal(expectedText, actualText); }
public List <String> transformRow(List <String> row) { return(RowUtil.removeColumns(row, columnNumbers)); }
public List <String> transformHeader(List <String> header) { return(RowUtil.removeColumns(header, columnNumbers)); }