public void TestFieldInfo()
        {
            using (CsvReader r = new CsvReader(new StringReader(CSV_DOC1)))
            {
                Assert.AreEqual(3, r.FieldCount);
                for (int i = 0; i < r.FieldCount; i++)
                {
                    Assert.AreEqual(typeof(String), r.GetFieldType(i));
                    Assert.AreEqual(typeof(String).Name, ((IDataReader)r).GetDataTypeName(i));
                    Assert.AreEqual("f" + (i + 1).ToString(), r.GetName(i).ToString());
                    Assert.AreEqual(i, r.GetOrdinal("f" + (i + 1).ToString()));
                }

                while (r.Read())
                { }

                Assert.IsFalse(r.IsClosed);
                Assert.IsFalse(((IDataReader)r).NextResult());
                Assert.IsTrue(r.IsClosed);
            }
        }