Created
May 6, 2016 19:26
-
-
Save phatblat/d4aeaa3e2eeaabe73adf9bd2a73d4405 to your computer and use it in GitHub Desktop.
This is cheating
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (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