public void ParsingBufferOverflowTest() { IFileReader reader = new FileReaderTestImpl("abcdefghjklmn", 100000); FieldParser parser = FieldParser.BuildParserWithTwoDelimitersAndQualifier(",", "\r\n", "\""); RowParsingContextTestImpl rowParsingContext = new RowParsingContextTestImpl(); try { parser.ParseNext(reader, rowParsingContext); } catch (ParsingBufferOverflowException ex) { Assert.AreEqual <int>(0, ex.ColumnIndex); throw ex; } }
public void ParsingBufferOverflowTest() { IFileReader reader = new FileReaderTestImpl("abcdefghjklmn", 100000); FieldParser parser = FieldParser.BuildParserWithTwoDelimitersAndQualifier(",", "\r\n", "\""); RowParsingContextTestImpl rowParsingContext = new RowParsingContextTestImpl(); try { parser.ParseNext(reader, rowParsingContext); } catch (ParsingBufferOverflowException ex) { Assert.AreEqual<int>(0, ex.ColumnIndex); throw ex; } }