public void parse_2_Items_1_Column_ColumnFirst() { InputParser target = new InputParser(); string input = "A\r\nB"; int numberOfItems = 1; string expected = "A\r\nB"; string actual; actual = target.Parse(input, numberOfItems, Axis.Columns, Orientation.ColumnFirst); Assert.AreEqual(expected, actual); }
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); }
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); }