????2?????й????????Target???

?????????????????????????????????Logic Testing????????????й????У??????File→New→Target…????????iOS→Other?е? “Cocoa Touch Unit Testing Bundle”??

???????Next???????Product Name?????????LogicTest???????????????????ж???????LogicTest?飬????LogicTest????????????Target???ж??????LogicTest Target??

??????????????????????????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?????

01 //
02   
03 //  LogicTest.h
04   
05 //  LogicTest
06   
07 //
08   
09 #import <sentestingkit sentestingkit.h="">
10   
11    
12   
13 @interface LogicTest : SenTestCase
14   
15    
16   
17 @end
18   
19 //
20   
21 //  LogicTest.m
22   
23 //  LogicTest
24   
25 //
26   
27 #import “LogicTest.h”
28   
29    
30   
31 @implementation LogicTest
32   
33    
34   
35 - (void)setUp
36   
37 {
38   
39 [super setUp];
40   
41 // Set-up code here.
42   
43 }
44   
45    
46   
47 - (void)tearDown
48   
49 {
50   
51 // Tear-down code here.
52   
53 [super tearDown];
54   
55 }
56   
57    
58   
59 - (void)testExample
60   
61 {
62   
63 STFail(@”Unit tests are not implemented yet in LogicTest”);
64   
65 }
66   
67    
68   
69 @end  </sentestingkit>