This file contains 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
import UIKit | |
let appDelegateClass = AppDelegate.self | |
UIApplicationMain(CommandLine.argc, CommandLine.unsafeArgv, nil, NSStringFromClass(appDelegateClass)) |
This file contains 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
import UIKit | |
@objc(TestingAppDelegate) | |
class TestingAppDelegate: UIResponder, UIApplicationDelegate { | |
var window: UIWindow? | |
func applicationDidFinishLaunching(_ application: UIApplication) { | |
window = nil | |
} | |
} |
This file contains 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
import UIKit | |
let appDelegateClass: AnyClass = NSClassFromString("TestingAppDelegate") ?? AppDelegate.self | |
UIApplicationMain(CommandLine.argc, CommandLine.unsafeArgv, nil, NSStringFromClass(appDelegateClass)) |
This file contains 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)testArrayFromURLStringArray | |
{ | |
// given | |
NSArray *URLStrings = [NSArray arrayWithObjects:@"one", @"two", nil]; | |
// when | |
NSMutableArray *downloads = [MyDownloader arrayFromURLStringArray:URLStrings]; | |
// then | |
assertThat(downloads, contains(hasProperty(@"URLString", @"one"), |
This file contains 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)testArrayFromURLStringArray | |
{ | |
// given | |
NSArray *URLStrings = [NSArray arrayWithObjects:@"one", @"two", nil]; | |
// when | |
NSMutableArray *downloads = [MyDownloader arrayFromURLStringArray:URLStrings]; | |
// then | |
assertThat(downloads, hasCountOf(2)); |
This file contains 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
find . \( \( -name "*.[chm]" -o -name "*.mm" \) -o -name "*.cpp" \) -print0 | xargs -0 egrep -n '^\w*\#' | egrep -v '(import|pragma|else|endif|HC_SHORTHAND|MOCKITO_SHORTHAND)' |