Skip to content

Instantly share code, notes, and snippets.

@nheagy
Created April 13, 2011 19:36
Show Gist options
  • Save nheagy/918240 to your computer and use it in GitHub Desktop.
Save nheagy/918240 to your computer and use it in GitHub Desktop.
Create a new file of type empty, name it MyClassTest.m where "MyClass" is the name of the class to test, and then replace all MyClass -> YourClass
//#import <GHUnitIOS/GHUnit.h> // i have this in my prefix file. Otherwise, uncomment
//#import "OCMock.h" // optional, but used often
#import "MyClass.h"
@interface MyClassTest : GHTestCase {}
@property (nonatomic, retain) MyClass *testInstance;
@end
@implementation MyClassTest
@synthesize testInstance;
-(void)setUp
{
// setup
}
-(void)tearDown
{
// teardown
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment