Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save petermolnar-dev/33273c6966590b28c8cfe9e72b211901 to your computer and use it in GitHub Desktop.
Save petermolnar-dev/33273c6966590b28c8cfe9e72b211901 to your computer and use it in GitHub Desktop.
Basic Unit test file structure
#import <XCTest/XCTest.h>
#import "PMODownloadTaskQueues.h"
@interface PMODownloadTaskQueues_BasicTest : XCTestCase
@property (strong, nonatomic) PMODownloadTaskQueues *queues;
@end
@implementation PMODownloadTaskQueues_BasicTest
- (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 {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct results.
}
- (void)testPerformanceExample {
// This is an example of a performance test case.
[self measureBlock:^{
// Put the code you want to measure the time of here.
}];
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment