public void Parse_Returns_Valid_Result_With_Simple_Input() { // Arrange const string input = "Value 1|Value 2|Value 3"; // Act var actual = PipeDelimitedDataTableParser.Parse(input).ToArray(); // Assert AssertParseResult(actual); }
public void Parse_Returns_Valid_Result_With_Simple_Input_Skip_First_Line_And_Outer_Columns_FormatValue() { // Arrange const string input = @"| Column 1 | Column 2 | Column 3 | | Value 1 | Value 2 | Value 3 |"; // Act var actual = PipeDelimitedDataTableParser.Parse(input, 1, 1, 1, 0, null, (_, value) => value.Trim()).ToArray(); // Assert AssertParseResult(actual); }
public void Parse_Returns_Valid_Result_With_Simple_Input_Skip_First_Two_Lines() { // Arrange const string input = @"Column 1|Column 2|Column 3 --------|--------|-------- Value 1|Value 2|Value 3"; // Act var actual = PipeDelimitedDataTableParser.Parse(input, 2, 0, 0, 0, null, null).ToArray(); // Assert AssertParseResult(actual); }