示例#1
0
        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);
        }
示例#2
0
 public List <String> transformRow(List <String> row)
 {
     return(RowUtil.removeColumns(row, columnNumbers));
 }
示例#3
0
 public List <String> transformHeader(List <String> header)
 {
     return(RowUtil.removeColumns(header, columnNumbers));
 }