Exemple #1
0
 public void parse_1_Item_2_Column_ColumnFirst()
 {
     InputParser target = new InputParser();
     string input = "A";
     int numberOfItems = 2;
     string expected = "A";
     string actual;
     actual = target.Parse(input, numberOfItems, Axis.Columns, Orientation.ColumnFirst);
     Assert.AreEqual(expected, actual);
 }
Exemple #2
0
 public void parse_5_Items_2_Column_RowFirst()
 {
     InputParser target = new InputParser();
     string input = "A\r\nB\r\nC\r\nD\r\nE";
     int numberOfItems = 2;
     string expected = "A\tB\r\nC\tD\r\nE";
     string actual;
     actual = target.Parse(input, numberOfItems, Axis.Columns, Orientation.RowFirst);
     Assert.AreEqual(expected, actual);
 }
Exemple #3
0
 public void parse_Empty_No_Input()
 {
     InputParser target = new InputParser();
     string input = string.Empty;
     int numberOfItems = 0;
     string expected = "Enter something";
     string actual;
     actual = target.Parse(input, numberOfItems, Axis.Columns, Orientation.ColumnFirst);
     Assert.AreEqual(expected, actual);
 }
Exemple #4
0
 public void parse_3_Item_1_Row_ColumnFirst()
 {
     InputParser target = new InputParser();
     string input = "A\r\nB\r\nC";
     int numberOfItems = 1;
     string expected = "A\tB\tC";
     string actual;
     actual = target.Parse(input, numberOfItems, Axis.Rows, Orientation.ColumnFirst);
     Assert.AreEqual(expected, actual);
 }