Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR Feedback, ensure it works using sample projects
- Loading branch information
1 parent
eac6fd8
commit 70177a9
Showing
9 changed files
with
146 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
Documentation/Examples/Calculator/Acceptance Tests/TestRobot.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// | ||
// TestRobot.h | ||
// Calculator | ||
// | ||
// Created by Justin Martin on 9/18/17. | ||
// Copyright © 2017 SSK Development. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
|
||
@interface TestRobot : NSObject <KIFTestActorDelegate> | ||
|
||
- (instancetype)initWithTestCase:(KIFTestCase *)testCase; | ||
|
||
#pragma mark - Unavailable | ||
|
||
+ (instancetype)new NS_UNAVAILABLE; | ||
- (instancetype)init NS_UNAVAILABLE; | ||
|
||
@end |
46 changes: 46 additions & 0 deletions
46
Documentation/Examples/Calculator/Acceptance Tests/TestRobot.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// | ||
// TestRobot.m | ||
// Calculator | ||
// | ||
// Created by Justin Martin on 9/18/17. | ||
// Copyright © 2017 SSK Development. All rights reserved. | ||
// | ||
|
||
#import <KIF/KIF.h> | ||
|
||
#import "TestRobot.h" | ||
|
||
|
||
@interface TestRobot () | ||
|
||
@property (nonatomic, readwrite, weak) KIFTestCase *testCase; | ||
|
||
@end | ||
|
||
|
||
@implementation TestRobot | ||
|
||
- (instancetype)initWithTestCase:(KIFTestCase *)testCase; | ||
{ | ||
self = [super init]; | ||
if (!self) { | ||
return nil; | ||
} | ||
|
||
_testCase = testCase; | ||
return self; | ||
} | ||
|
||
#pragma mark - KIFTestActorDelegate | ||
|
||
- (void)failWithException:(NSException *)exception stopTest:(BOOL)stop; | ||
{ | ||
[self.testCase failWithException:exception stopTest:stop]; | ||
} | ||
|
||
- (void)failWithExceptions:(NSArray *)exceptions stopTest:(BOOL)stop; | ||
{ | ||
[self.testCase failWithExceptions:exceptions stopTest:stop]; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters