Esteemed OCUnit testers,
OCUnit tests always pass if they contain a method named 'name', e.g:
#import <SenTestingKit/SenTestingKit.h>
@interface Tests : SenTestCase
@end
@implementation Tests
- (NSString *)name
{
return @"Howard";
}
- (void)testSomeTest
{
STFail(@"Unit tests are not implemented yet in Tests");
}
@end
Passes! I am running under XCode 4.
If I change 'name' to some other name then it is fine, i.e. it fails. Any idea why 'name' is a reserved name in OCUnit? Anyway to get round this? It is part of a protocol I am trying to test.
Thanks in advance for any suggestions, -- Howard.