1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#import "MASHotKey.h" @interface MASHotKeyTests : XCTestCase @end @implementation MASHotKeyTests - (void) testBasicFunctionality { MASHotKey *hotKey = [MASHotKey registeredHotKeyWithShortcut: [MASShortcut shortcutWithKeyCode:kVK_ANSI_H modifierFlags:NSCommandKeyMask|NSAlternateKeyMask]]; XCTAssertNotNil(hotKey, @"Register a simple Cmd-Alt-H hotkey."); } @end