public void CreateEntity() { var expected = Dummy.Foos.ToArray(); var reader = Dummy.CreateDataReader(expected); var mapping = Dummy.EntityMapping; var test = new EntityReader<Foo>(reader, mapping); var actual = new List<Foo>(); while (test.Read()) { actual.Add(test.CreateEntity()); } Assert.Equal(expected, actual.ToArray()); }