Hello,
Is there someone here who knows how to unit test a view controller implementation of a UITableView's delegate and datasource function?
I've been googling this and I was not able to find any solution. I have a view controller that implements two protocols: UITableViewDelegate and UITableViewDataSource. I want to test the table view's datasource functions:
Code:
- (NSInteger)tableView:(UITableView *)table numberOfRowsInSection:(NSInteger)section;
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath;
and delegate function:
Code:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;
Your help will be much appreciated.
Thanks,
Belkin_MAC