Skip to content

Instantly share code, notes, and snippets.

@lukeredpath
Created December 5, 2013 15:14
Show Gist options
  • Save lukeredpath/7806983 to your computer and use it in GitHub Desktop.
Save lukeredpath/7806983 to your computer and use it in GitHub Desktop.
A typical Objective-C test case...
#import <XCTest/XCTest.h>
@interface Tests : XCTestCase
@end
@implementation Tests
- (void)setUp
{
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
}
- (void)tearDown
{
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}
- (void)testExample
{
XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__);
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment