iOS??OCUnit??????
???????????? ???????[ 2014/3/13 11:34:22 ] ????????iOS ??????
????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>
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11