Permalink
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (20 sloc) 749 Bytes
//
// IndexViewControllerTest.m
// Baker
//
// Created by Alessandro Morandi on 10/05/2011.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import "IndexViewControllerTest.h"
@implementation IndexViewControllerTest
#if USE_APPLICATION_UNIT_TEST // all code under test is in the iPhone Application
- (void)testAppDelegate {
id yourApplicationDelegate = [[UIApplication sharedApplication] delegate];
STAssertNotNil(yourApplicationDelegate, @"UIApplication failed to find the AppDelegate");
}
#else // all code under test must be linked into the Unit Test bundle
- (void)testMath {
STAssertTrue((1+1)==2, @"Compiler isn't feeling well today :-(" );
}
#endif
@end