Hi,
I'm tying to implement some test cases for my iPhone app. I have successfully set up the UnitTest-Target as described here: iPhone development guide
I'm also able to build a simple test case:
- (void) testPass {
STAssertTrue(TRUE, @"");
}
But when I'm trying to instantiate a class that has some methodes that return UIColors the test fails:
@interface BCGlobals : NSObject {
}
+(BCGlobals*)instance;
-(UIColor*) redTextColor;
-(UIColor*) greenTextColor;
@end
The error message is: 'UIColor' undeclared (first use in this function)
Is it possible, that I cannot test classes referring to UIKit within a logic test in XCode?