我有一个调用API的方法,此方法内部没有任何完成处理程序。
-(void) methodToBeTested{
[self callAPIWithCompletionHandler:^(NSArray *data,NSError *error)
{
//Here I get the response and sets the models.
}];
}
现在我需要在API调用后,基于模型集合测试“methodToBeTested”方法。
有什么建议吗?