Ejemplo n.º 1
0
        public void TestGetOrdinal()
        {
            var reader = new ListDataReader <Student>(_Students);
            var ps     = _Properties.Where(i => i.CanRead).ToArray();

            while (reader.Read())
            {
                var index = 0;
                foreach (var p in ps)
                {
                    Assert.Equal(index++, reader.GetOrdinal(p.Name));
                }
            }
        }