public void ToList_should_fill_the_list() { var connection = new FakeConnection() { CurrentState = ConnectionState.Open }; var table = new FakeTable(new String[] { "Id" }, new object[][] { new object[] { 1 }, }); var result = new CommandResult[] { new ReaderCommandResult { Result = new FakeDataReader(table) } }; var cmd = new FakeCommand(connection, result); cmd.CommandText = "Hello"; var actual = cmd.ToList <Tentity>(new TentityMapper()); actual[0].Id.Should().Be("1"); }