From 42daeb6f1298c800b3d42a6b746e2e6ef6b0670e Mon Sep 17 00:00:00 2001 From: Tomáš Znamenáček Date: Tue, 5 Aug 2014 15:10:00 +0200 Subject: Added a unit testing target. --- Framework/MASShortcutTests.m | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Framework/MASShortcutTests.m (limited to 'Framework') diff --git a/Framework/MASShortcutTests.m b/Framework/MASShortcutTests.m new file mode 100644 index 0000000..37a801f --- /dev/null +++ b/Framework/MASShortcutTests.m @@ -0,0 +1,14 @@ +#import "MASShortcut.h" + +@interface MASShortcutTests : XCTestCase +@end + +@implementation MASShortcutTests + +- (void) testShortcutRecorderCompatibility +{ + MASShortcut *key = [MASShortcut shortcutWithKeyCode:87 modifierFlags:1048576]; + XCTAssertEqualObjects([key description], @"⌘5", @"Basic compatibility with the keycode & modifier combination used by Shortcut Recorder."); +} + +@end -- cgit v1.2.3