Esempio n. 1
0
        public async Task ReadDbfRowsAsync()
        {
            var dbf    = new Dbf(Path.Combine(testDir, "poshistorie.dbf"));
            var reader = new DbfReader(dbf);
            int count  = 0;

            await foreach (var r in reader.ReadRowsAsync((i, x) => true, includeMemo: false, includeDeleted: true))
            {
                count++;
                //if (count > 50) break;
            }
            output.WriteLine("Count: {0} ({1})", count, dbf.GetHeader().RecordCount);
            Assert.Equal(dbf.GetHeader().RecordCount, count);
        }