Index: test/mac/xctest/App/Tests/TestCase.m |
diff --git a/test/mac/xctest/App/Tests/TestCase.m b/test/mac/xctest/App/Tests/TestCase.m |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b948b581dd5d231d146b5cfc1ddf09192a701309 |
--- /dev/null |
+++ b/test/mac/xctest/App/Tests/TestCase.m |
@@ -0,0 +1,31 @@ |
+// Copyright (c) 2013 Google Inc. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+#import <XCTest/XCTest.h> |
+#import "Shared+Category.h" |
+#import "Shared+TestSupportCategory.h" |
+ |
+@interface TestCase : XCTestCase |
+@end |
+ |
+@implementation TestCase |
+ |
+- (void)tearDown { |
+ [NSThread sleepForTimeInterval:1]; |
+ /* |
+ NSUInteger total = 0; |
+ for (NSUInteger i = 0; i < 10000; i++) { |
+ total *= i; |
+ } |
+ NSLog(@"total: %u", total); |
+ [NSThread sleepForTimeInterval:.1]; |
+ */ |
+} |
+ |
+- (void)testFoo { |
+ Shared *foo = [[Shared alloc] init]; |
+ XCTAssertNotNil([foo sharedCategoryMethod], @"expected category method"); |
+ XCTAssertNotNil([foo sharedCategoryMethodFromTestSupport], |
+ @"expected category method"); |
+} |
+@end |