Sunday, August 18, 2013

In the previous post, there was a sample code for objective C. The XCode project comes with a test  project that can be used for testing the code in the project. Here is an example for the code in the test:

//
//  Starbucks_API_ExplorerTests.m
//  Starbucks API ExplorerTests


#import "Starbucks_API_ExplorerTests.h"

@implementation Starbucks_API_ExplorerTests

- (void)setUp
{
    [super setUp];
}

- (void)tearDown
{
    // Tear-down code here.
    
    [super tearDown];
}

- (void)testExample
{
    STFail(@"Unit tests are not implemented yet in Starbucks API ExplorerTests");
}

@end



No comments:

Post a Comment