public void TestCsvContext_ReadingSecondRow()
        {
            _cs.ReadRow(_row);
            _reader.ReadingOneFieldRow(_fm, _row, true);
            _cs.ReadRow(_row);
            Person person = _fm.ReadObject(_row, _ae);

            Assert.IsNotNull(person);
            Assert.AreEqual(person.Age, 15);
        }
Пример #2
0
 public bool ReadingOneFieldRow(FieldMapperReading <T> fm, IDataRow row, bool firstRow)
 {
     if (firstRow && _description.FirstLineHasColumnNames)
     {
         fm.ReadNames(row);
         return(false);
     }
     Obj = fm.ReadObject(row, _ae);
     return(true);
 }