helper methods should do just one thing (SOLID principles)! - write tests for each of the helper methods! - test viewDidLoad calls helper methods (partial mock)
for a specific instance. - (id<AspectToken>)aspect_hookSelector:(SEL)selector withOptions:(AspectOptions)options usingBlock:(id)block error:(NSError **)error; /// Called after the original implementation (default) AspectPositionAfter, /// Will replace the original implementation. AspectPositionInstead, /// Called before the original implementation. AspectPositionBefore, Aspects
{ XCTAssertNotNil([psc addPersistentStoreWithType:NSInMemoryStoreType configuration:nil URL:nil options:nil error:NULL], @"Should be able to add in-memory store”); }
external state! - close approximation to the application environment! - we are able to create base test class with a stack and subclass it where we need
external state! - close approximation to the application environment! - we are able to create base test class with a stack and subclass it where we need