Skip to content

Commit d512538

Browse files
Update tests to XCTest
1 parent e0b59e1 commit d512538

12 files changed

+3979
-3203
lines changed
File renamed without changes.
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
//
2+
// Prefix header
3+
//
4+
// The contents of this file are implicitly included at the beginning of every source file.
5+
//
6+
7+
#ifdef __OBJC__
8+
#import <UIKit/UIKit.h>
9+
#import <Foundation/Foundation.h>
10+
#endif

Counter.xcodeproj/project.pbxproj

+1,290-525
Large diffs are not rendered by default.

CounterTests/CNTCountInteractorTests.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#import "CNTCountInteractor.h"
1010

1111
// Test support
12-
#import <SenTestingKit/SenTestingKit.h>
12+
#import <XCTest/XCTest.h>
1313

1414
#define HC_SHORTHAND
1515
#import "OCHamcrest.h"
@@ -18,7 +18,7 @@
1818
#define assertCountEquals(expected) assertThatUnsignedInteger(self.count, equalToUnsignedInteger(expected))
1919

2020

21-
@interface CNTCountInteractorTests : SenTestCase <CNTCountInteractorOutput>
21+
@interface CNTCountInteractorTests : XCTestCase <CNTCountInteractorOutput>
2222
@property (nonatomic, strong) id<CNTCountInteractorInput> interactor;
2323
@property (nonatomic, assign) NSUInteger count;
2424
@end

CounterTests/CNTCountPresenterTests.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
#import "CNTCountInteractorIO.h"
1414

1515
// Test support
16-
#import <SenTestingKit/SenTestingKit.h>
16+
#import <XCTest/XCTest.h>
1717

1818
#define MOCKITO_SHORTHAND
1919
#import "OCMockito.h"
2020

2121

22-
@interface CNTCountPresenterTests : SenTestCase
22+
@interface CNTCountPresenterTests : XCTestCase
2323
@property (nonatomic, strong) CNTCountPresenter* presenter;
2424
@property (nonatomic, strong) id<CNTCountView> view;
2525
@property (nonatomic, strong) id<CNTCountInteractorInput> interactor;

CounterTests/CNTCountViewControllerTests.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#import "CNTCountPresenter.h"
1313

1414
// Test support
15-
#import <SenTestingKit/SenTestingKit.h>
15+
#import <XCTest/XCTest.h>
1616

1717
#define HC_SHORTHAND
1818
#import "OCHamcrest.h"
@@ -25,7 +25,7 @@
2525
#define assertDecrementButtonEnabledEquals(expected) assertThatBool(self.view.decrementButton.enabled, equalToBool(expected))
2626

2727

28-
@interface CNTCountViewControllerTests : SenTestCase
28+
@interface CNTCountViewControllerTests : XCTestCase
2929
@property (nonatomic, strong) CNTCountViewController* view;
3030
@property (nonatomic, strong) CNTCountPresenter* presenter;
3131
@end

Podfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
platform :ios, '6.0'
22

33
target :'Tests' do
4-
link_with ['CounterTests']
4+
link_with ['Counter Tests']
55
pod 'OCHamcrest', '~> 3.0.0'
66
pod 'OCMockito', '~> 1.1.0'
77
end

Podfile.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ DEPENDENCIES:
88
- OCMockito (~> 1.1.0)
99

1010
SPEC CHECKSUMS:
11-
OCHamcrest: 782c52ae8c673e5d6060a65005cfd26d20d519ba
12-
OCMockito: 317fa0cf75c9b0d73d2be335789c556537be7fd2
11+
OCHamcrest: 207233b7d7a44dadd66aca398947cc7e029c9be5
12+
OCMockito: bf7def7b3939f794b1e7b44420f611250b1f2781
1313

14-
COCOAPODS: 0.28.0
14+
COCOAPODS: 0.33.1

Pods/Manifest.lock

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Pods/Pods-Tests.xcconfig

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)