Quantcast
Channel: Vincent Gable's Blog » Unit Testing
Browsing all 3 articles
Browse latest View live

One assert() You Need?

Accidently disconnected outlets in shipping Cocoa apps are legend. — Jonathan “Wolf” Rentzsch From what I can tell assert() is slowly going the way of the goto in the programming world. Exceptions,...

View Article


Catching nil Member Variables

When I wrote this method it seemed like it would be helpful, //log a warning for any member variable that nil - (void) warnOfNilIVars; {   unsigned int ivarCount = 0;   Ivar * ivarList =...

View Article


Resources in Unit Tests and Other Frameworks

To load a resource inside a unit test or other bundle, do: NSBundle *unitTestsBundle = [NSBundle bundleForClass:[self class]]; NSString *pathToResource = [unitTestsBundle pathForResource:name...

View Article
Browsing all 3 articles
Browse latest View live