public void ShouldGetDataTypeOfOrdinal() { var customers = new List<Customer> { new Customer { Name = "Peter", Age = 29, YearlyBonus = 100000000L } }; var col = new DataReaderCollection<Customer>(customers); Assert.That(col.GetFieldType(1), Is.EqualTo(typeof(string))); Assert.That(col.GetFieldType(2), Is.EqualTo(typeof(int))); Assert.That(col.GetFieldType(3), Is.EqualTo(typeof(long))); }