YHAnalyItemDataTest.m
1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//
// YHAnalyItemDataTest.m
// YH_Analytics
//
// Created by Zhou Rongjun on 15/4/15.
// Copyright (c) 2015年 YOHO. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <XCTest/XCTest.h>
#import "YHAnalyItemData.h"
@interface YHAnalyItemDataTest : XCTestCase {
@private
YHAnalyItemData *analyItemData;
}
@end
@implementation YHAnalyItemDataTest
- (void)setUp {
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
NSLog(@"%@ setUp", self.name);
analyItemData = [[YHAnalyItemData alloc] init];
XCTAssertNotNil(analyItemData, @"Cannot create YHAnalyItemData instance.");
}
- (void)tearDown {
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
NSLog(@"%@ tearDown", self.name);
}
- (void)testJsonDictionaryNil {
NSLog(@"%@ start", self.name);
NSDictionary *jsonDic = [analyItemData jsonDictionary];
XCTAssertNil(jsonDic, @"YHAnalyItemData's jsonDictionary must be nil.");
NSLog(@"%@ end", self.name);
}
@end