Exemplo n.º 1
0
        public void TestGetName()
        {
            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(p.Name, reader.GetName(index++));
                }
            }
        }