public void ImportCsv() { ICsvReader csv = CsvReader.Create(path: _root + "example.csv", tableName: "TestTable", connectionString: _connectionString); long rowsAdded = csv.ImportCsv(); int rowCount = csv.DataTable.Rows.Count; string error = csv.Error; csv.Dispose(); if (error != null) { throw new Exception(error); } Assert.IsTrue(rowsAdded == rowCount); }