OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 Google Inc. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 #import <XCTest/XCTest.h> |
| 5 #import "Shared+Category.h" |
| 6 #import "Shared+TestSupportCategory.h" |
| 7 |
| 8 @interface TestCase : XCTestCase |
| 9 @end |
| 10 |
| 11 @implementation TestCase |
| 12 |
| 13 - (void)tearDown { |
| 14 [NSThread sleepForTimeInterval:1]; |
| 15 /* |
| 16 NSUInteger total = 0; |
| 17 for (NSUInteger i = 0; i < 10000; i++) { |
| 18 total *= i; |
| 19 } |
| 20 NSLog(@"total: %u", total); |
| 21 [NSThread sleepForTimeInterval:.1]; |
| 22 */ |
| 23 } |
| 24 |
| 25 - (void)testFoo { |
| 26 Shared *foo = [[Shared alloc] init]; |
| 27 XCTAssertNotNil([foo sharedCategoryMethod], @"expected category method"); |
| 28 XCTAssertNotNil([foo sharedCategoryMethodFromTestSupport], |
| 29 @"expected category method"); |
| 30 } |
| 31 @end |
OLD | NEW |