??????????????????????????Scheme?б??л???????LogicTest?????????????????????????????????????????????????? ????????????????????Scheme??LogicTest??iPhone 6.0 Simulator????iPad 6.0 Simulator?????У???????????iOS Device???????????????????????????С???????????Product→Test??????????Test?????????Run??????????? command+U??????????С?
?????????????????????????????????????????????????????????????LogicTest???????е?LogicTest.h??LogicTest.m?????
//
//  LogicTest.h
//  LogicTest
//
#import <SenTestingKit/SenTestingKit.h>
@interface LogicTest : SenTestCase
@end
//
//  LogicTest.m
//  LogicTest
//
#import “LogicTest.h”
@implementation LogicTest
- (void)setUp
{
[super setUp];
// Set-up code here.
}
- (void)tearDown
{
// Tear-down code here.
[super tearDown];
}
- (void)testExample
{
STFail(@”Unit tests are not implemented yet in LogicTest”);
}
@end
???????OCUnit?????????????<SenTestingKit/SenTestingKit.h>??????????? SenTestCase????testExample????????????????????????????test???????????????????????????????STFail?? OCUnit?????????????????????????????????????????????????е????
??????m???????????·???setUp??tearDown???????????д????????????setUp????????????????tearDown?????????????? ??????setUp??tearDown????????ε??ò??????????????????????????????е??????????????????????????????У??????????