samedi 27 juin 2015

How do I expose my AppDelegate to my Unit-Test Module?

Scenario:
I'm writing a basic calculator application and am trying to implement the unit test. I need to access the AppDelegate to access the Core-Data routines.

Doing so from the app's UIViewController is no problem. I'm assuming this is true because all code is within the SAME target.

So I attempted to import this target (import RicCalculator) into the test module to see if AppDelegate is exposed to the test module:

enter image description here

But I'm still getting the same problem: undeclared type 'AppDelegate'.

Question: How do I make the Unit-Test module 'see' the AppDelegate?

Aucun commentaire:

Enregistrer un commentaire