Skip to content

Instantly share code, notes, and snippets.

@dryman
Created November 15, 2011 03:04
Show Gist options
  • Save dryman/1366011 to your computer and use it in GitHub Desktop.
Save dryman/1366011 to your computer and use it in GitHub Desktop.
Unit test for IMK
#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