Unit Test CLLocationManager implementation
问题 I have a class named " GeolocationManager " that handles a CLLocationManager object and delegate responses. - (void)getGeolocationForClient:(id<GeolocationManagerDelegate>)client { _delegate = client; _locationManager = [self createLocationManager]; _locationManager.delegate = self; _locationManager.desiredAccuracy = kCLLocationAccuracyHundredMeters; [_locationManager startUpdatingLocation]; } - (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error { // do some