Created
April 13, 2011 19:36
-
-
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
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 <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