Skip to content

Instantly share code, notes, and snippets.

@phatblat
Created May 6, 2016 19:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phatblat/d4aeaa3e2eeaabe73adf9bd2a73d4405 to your computer and use it in GitHub Desktop.
Save phatblat/d4aeaa3e2eeaabe73adf9bd2a73d4405 to your computer and use it in GitHub Desktop.
This is cheating
- (void)testAppDelegate {
id<UIApplicationDelegate> appDelegate = [UIApplication sharedApplication].delegate;
[appDelegate applicationWillEnterForeground:[UIApplication sharedApplication]];
[appDelegate applicationDidBecomeActive:[UIApplication sharedApplication]];
[appDelegate applicationWillTerminate:[UIApplication sharedApplication]];
[appDelegate applicationDidEnterBackground:[UIApplication sharedApplication]];
[appDelegate applicationWillResignActive:[UIApplication sharedApplication]];
BOOL output = [appDelegate application:[UIApplication sharedApplication] didFinishLaunchingWithOptions:[NSDictionary new]];
XCTAssertTrue(output,@"is not true");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment