Created
November 15, 2011 03:04
-
-
Save dryman/1366011 to your computer and use it in GitHub Desktop.
Unit test for IMK
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
#import <SenTestingKit/SenTestingKit.h> | |
#import "NumberInputController.h" | |
@interface IMKTest : SenTestCase { | |
IMKServer* server; | |
NumberInputController* controller; | |
} | |
@end | |
@implementation IMKTest | |
- (void)setUp | |
{ | |
[super setUp]; | |
server=[IMKServer alloc]; | |
controller=[NumberInputController alloc]; | |
[controller initWithServer:server delegate:NULL client:NULL]; | |
// Set-up code here. | |
} | |
- (void)tearDown | |
{ | |
// Tear-down code here. | |
[controller release]; | |
[server release]; | |
[super tearDown]; | |
} | |
- (void)testExample | |
{ | |
//STAssertTrue([controller testTrue], @"Should return true"); | |
STAssertTrue([controller inputText:@"hello world" client:NULL],@"Hello controller"); | |
STAssertTrue([controller testTrue],@"testTrue"); | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment