public void ParseSimpleTextTwoDelimitersTest() { IFileReader reader = FileReaderTest.GetReader("A,B,C\r\n1,2,3"); FieldParser parser = FieldParser.BuildParserWithTwoDelimiters(",", "\r\n"); VerifySuccessfulFieldParsing(parser, reader, "A"); VerifySuccessfulFieldParsing(parser, reader, "B"); VerifySuccessfulLastRowFieldParsing(parser, reader, "C"); VerifySuccessfulFieldParsing(parser, reader, "1"); VerifySuccessfulFieldParsing(parser, reader, "2"); VerifyFieldParsing(parser, reader, "3"); Assert.AreEqual(reader.IsEOF, true); }
public void BadArgumentsTest5() { FieldParser parser = FieldParser.BuildParserWithTwoDelimiters(",", string.Empty); }
public void BadArgumentsTest4() { FieldParser parser = FieldParser.BuildParserWithTwoDelimiters(string.Empty, "\r\n"); }