Authored by 周蓉君

创建单元测试文件。Review by 阿瑟。

... ... @@ -15,6 +15,21 @@
194EDC841A7F52D100421E6C /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 194EDC821A7F52D100421E6C /* LaunchScreen.xib */; };
194EDC901A7F52D100421E6C /* YH_AnalyticsTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 194EDC8F1A7F52D100421E6C /* YH_AnalyticsTests.m */; };
194EDC9C1A7F555800421E6C /* YH_Analytics.m in Sources */ = {isa = PBXBuildFile; fileRef = 194EDC9B1A7F555800421E6C /* YH_Analytics.m */; };
CA7AC7831ADE06F300F30791 /* YHCrashReporterTests.m in Sources */ = {isa = PBXBuildFile; fileRef = CA7AC7821ADE06F300F30791 /* YHCrashReporterTests.m */; };
CA7AC7851ADE073200F30791 /* NSString+YHAnalyticsTests.m in Sources */ = {isa = PBXBuildFile; fileRef = CA7AC7841ADE073200F30791 /* NSString+YHAnalyticsTests.m */; };
CA7AC7871ADE075E00F30791 /* YHNetworkAssistantTests.m in Sources */ = {isa = PBXBuildFile; fileRef = CA7AC7861ADE075E00F30791 /* YHNetworkAssistantTests.m */; };
CA7AC7891ADE078200F30791 /* YHAssemblyAssistantTests.m in Sources */ = {isa = PBXBuildFile; fileRef = CA7AC7881ADE078200F30791 /* YHAssemblyAssistantTests.m */; };
CA7AC78B1ADE079800F30791 /* YHNetworkUserAgentTests.m in Sources */ = {isa = PBXBuildFile; fileRef = CA7AC78A1ADE079800F30791 /* YHNetworkUserAgentTests.m */; };
CA7AC78F1ADE08CA00F30791 /* YHDeviceTests.m in Sources */ = {isa = PBXBuildFile; fileRef = CA7AC78E1ADE08CA00F30791 /* YHDeviceTests.m */; };
CA7AC7911ADE08DC00F30791 /* YHErrorTests.m in Sources */ = {isa = PBXBuildFile; fileRef = CA7AC7901ADE08DC00F30791 /* YHErrorTests.m */; };
CA7AC7931ADE08F000F30791 /* YHEventTests.m in Sources */ = {isa = PBXBuildFile; fileRef = CA7AC7921ADE08F000F30791 /* YHEventTests.m */; };
CA7AC7951ADE090800F30791 /* YHStatusTests.m in Sources */ = {isa = PBXBuildFile; fileRef = CA7AC7941ADE090800F30791 /* YHStatusTests.m */; };
CA7AC7971ADE092300F30791 /* YHAnalyItemDataTest.m in Sources */ = {isa = PBXBuildFile; fileRef = CA7AC7961ADE092300F30791 /* YHAnalyItemDataTest.m */; };
CA7AC79A1ADE0BD500F30791 /* YHDataFactoryTests.m in Sources */ = {isa = PBXBuildFile; fileRef = CA7AC7991ADE0BD500F30791 /* YHDataFactoryTests.m */; };
CA7AC79C1ADE0C0800F30791 /* YHErrorFactoryTests.m in Sources */ = {isa = PBXBuildFile; fileRef = CA7AC79B1ADE0C0800F30791 /* YHErrorFactoryTests.m */; };
CA7AC79E1ADE0C3900F30791 /* YHDeviceFactoryTests.m in Sources */ = {isa = PBXBuildFile; fileRef = CA7AC79D1ADE0C3900F30791 /* YHDeviceFactoryTests.m */; };
CA7AC7A01ADE0C4F00F30791 /* YHEventFactoryTests.m in Sources */ = {isa = PBXBuildFile; fileRef = CA7AC79F1ADE0C4F00F30791 /* YHEventFactoryTests.m */; };
CA7AC7A21ADE0C6600F30791 /* YHStatusFactoryTests.m in Sources */ = {isa = PBXBuildFile; fileRef = CA7AC7A11ADE0C6600F30791 /* YHStatusFactoryTests.m */; };
CABC32831AD7CEB8002A4260 /* libOCMock.a in Frameworks */ = {isa = PBXBuildFile; fileRef = CABC32821AD7CEB8002A4260 /* libOCMock.a */; };
E74D45B21ABA7C6300EFE12E /* AFHTTPRequestOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = E74D458E1ABA7C6300EFE12E /* AFHTTPRequestOperation.m */; };
E74D45B31ABA7C6300EFE12E /* AFHTTPRequestOperationManager.m in Sources */ = {isa = PBXBuildFile; fileRef = E74D45901ABA7C6300EFE12E /* AFHTTPRequestOperationManager.m */; };
... ... @@ -96,6 +111,21 @@
194EDC8F1A7F52D100421E6C /* YH_AnalyticsTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = YH_AnalyticsTests.m; sourceTree = "<group>"; };
194EDC9A1A7F555800421E6C /* YH_Analytics.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = YH_Analytics.h; sourceTree = "<group>"; };
194EDC9B1A7F555800421E6C /* YH_Analytics.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = YH_Analytics.m; sourceTree = "<group>"; };
CA7AC7821ADE06F300F30791 /* YHCrashReporterTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = YHCrashReporterTests.m; sourceTree = "<group>"; };
CA7AC7841ADE073200F30791 /* NSString+YHAnalyticsTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSString+YHAnalyticsTests.m"; sourceTree = "<group>"; };
CA7AC7861ADE075E00F30791 /* YHNetworkAssistantTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = YHNetworkAssistantTests.m; sourceTree = "<group>"; };
CA7AC7881ADE078200F30791 /* YHAssemblyAssistantTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = YHAssemblyAssistantTests.m; sourceTree = "<group>"; };
CA7AC78A1ADE079800F30791 /* YHNetworkUserAgentTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = YHNetworkUserAgentTests.m; sourceTree = "<group>"; };
CA7AC78E1ADE08CA00F30791 /* YHDeviceTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = YHDeviceTests.m; sourceTree = "<group>"; };
CA7AC7901ADE08DC00F30791 /* YHErrorTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = YHErrorTests.m; sourceTree = "<group>"; };
CA7AC7921ADE08F000F30791 /* YHEventTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = YHEventTests.m; sourceTree = "<group>"; };
CA7AC7941ADE090800F30791 /* YHStatusTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = YHStatusTests.m; sourceTree = "<group>"; };
CA7AC7961ADE092300F30791 /* YHAnalyItemDataTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = YHAnalyItemDataTest.m; sourceTree = "<group>"; };
CA7AC7991ADE0BD500F30791 /* YHDataFactoryTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = YHDataFactoryTests.m; sourceTree = "<group>"; };
CA7AC79B1ADE0C0800F30791 /* YHErrorFactoryTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = YHErrorFactoryTests.m; sourceTree = "<group>"; };
CA7AC79D1ADE0C3900F30791 /* YHDeviceFactoryTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = YHDeviceFactoryTests.m; sourceTree = "<group>"; };
CA7AC79F1ADE0C4F00F30791 /* YHEventFactoryTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = YHEventFactoryTests.m; sourceTree = "<group>"; };
CA7AC7A11ADE0C6600F30791 /* YHStatusFactoryTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = YHStatusFactoryTests.m; sourceTree = "<group>"; };
CABC32791AD7CE40002A4260 /* NSNotificationCenter+OCMAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSNotificationCenter+OCMAdditions.h"; sourceTree = "<group>"; };
CABC327A1AD7CE40002A4260 /* OCMArg.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OCMArg.h; sourceTree = "<group>"; };
CABC327B1AD7CE40002A4260 /* OCMConstraint.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OCMConstraint.h; sourceTree = "<group>"; };
... ... @@ -257,7 +287,12 @@
194EDC8C1A7F52D100421E6C /* YH_AnalyticsTests */ = {
isa = PBXGroup;
children = (
CA7AC7981ADE092D00F30791 /* Factory */,
CA7AC78D1ADE08AF00F30791 /* ModelTest */,
CA7AC78C1ADE088D00F30791 /* UtilsTest */,
194EDC8F1A7F52D100421E6C /* YH_AnalyticsTests.m */,
CA7AC7821ADE06F300F30791 /* YHCrashReporterTests.m */,
CA7AC7841ADE073200F30791 /* NSString+YHAnalyticsTests.m */,
194EDC8D1A7F52D100421E6C /* Supporting Files */,
);
path = YH_AnalyticsTests;
... ... @@ -288,6 +323,40 @@
path = YH_Analytics;
sourceTree = "<group>";
};
CA7AC78C1ADE088D00F30791 /* UtilsTest */ = {
isa = PBXGroup;
children = (
CA7AC7861ADE075E00F30791 /* YHNetworkAssistantTests.m */,
CA7AC7881ADE078200F30791 /* YHAssemblyAssistantTests.m */,
CA7AC78A1ADE079800F30791 /* YHNetworkUserAgentTests.m */,
);
name = UtilsTest;
sourceTree = "<group>";
};
CA7AC78D1ADE08AF00F30791 /* ModelTest */ = {
isa = PBXGroup;
children = (
CA7AC78E1ADE08CA00F30791 /* YHDeviceTests.m */,
CA7AC7901ADE08DC00F30791 /* YHErrorTests.m */,
CA7AC7921ADE08F000F30791 /* YHEventTests.m */,
CA7AC7941ADE090800F30791 /* YHStatusTests.m */,
CA7AC7961ADE092300F30791 /* YHAnalyItemDataTest.m */,
);
name = ModelTest;
sourceTree = "<group>";
};
CA7AC7981ADE092D00F30791 /* Factory */ = {
isa = PBXGroup;
children = (
CA7AC7991ADE0BD500F30791 /* YHDataFactoryTests.m */,
CA7AC79B1ADE0C0800F30791 /* YHErrorFactoryTests.m */,
CA7AC79D1ADE0C3900F30791 /* YHDeviceFactoryTests.m */,
CA7AC79F1ADE0C4F00F30791 /* YHEventFactoryTests.m */,
CA7AC7A11ADE0C6600F30791 /* YHStatusFactoryTests.m */,
);
name = Factory;
sourceTree = "<group>";
};
CABC32771AD7CDFD002A4260 /* TestDependence */ = {
isa = PBXGroup;
children = (
... ... @@ -608,7 +677,22 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
CA7AC7871ADE075E00F30791 /* YHNetworkAssistantTests.m in Sources */,
CA7AC7A21ADE0C6600F30791 /* YHStatusFactoryTests.m in Sources */,
194EDC901A7F52D100421E6C /* YH_AnalyticsTests.m in Sources */,
CA7AC7951ADE090800F30791 /* YHStatusTests.m in Sources */,
CA7AC78B1ADE079800F30791 /* YHNetworkUserAgentTests.m in Sources */,
CA7AC7831ADE06F300F30791 /* YHCrashReporterTests.m in Sources */,
CA7AC78F1ADE08CA00F30791 /* YHDeviceTests.m in Sources */,
CA7AC7891ADE078200F30791 /* YHAssemblyAssistantTests.m in Sources */,
CA7AC7931ADE08F000F30791 /* YHEventTests.m in Sources */,
CA7AC7851ADE073200F30791 /* NSString+YHAnalyticsTests.m in Sources */,
CA7AC79E1ADE0C3900F30791 /* YHDeviceFactoryTests.m in Sources */,
CA7AC79A1ADE0BD500F30791 /* YHDataFactoryTests.m in Sources */,
CA7AC79C1ADE0C0800F30791 /* YHErrorFactoryTests.m in Sources */,
CA7AC7A01ADE0C4F00F30791 /* YHEventFactoryTests.m in Sources */,
CA7AC7911ADE08DC00F30791 /* YHErrorTests.m in Sources */,
CA7AC7971ADE092300F30791 /* YHAnalyItemDataTest.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
... ...
//
// NSString+YHAnalyticsTests.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 "OCMock.h"
#import "NSString+YHAnalytics.h"
@interface NSString_YHAnalyticsTests : XCTestCase
@end
@implementation NSString_YHAnalyticsTests
- (void)setUp {
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
}
- (void)tearDown {
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}
- (void)testExample {
// This is an example of a functional test case.
XCTAssert(YES, @"Pass");
}
@end
... ...
//
// 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 "OCMock.h"
#import "YHAnalyItemData.h"
@interface YHAnalyItemDataTest : XCTestCase
@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.
}
- (void)tearDown {
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}
- (void)testExample {
// This is an example of a functional test case.
XCTAssert(YES, @"Pass");
}
@end
... ...
//
// YHAssemblyAssistantTests.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 "OCMock.h"
#import "YHAssemblyAssistant.h"
@interface YHAssemblyAssistantTests : XCTestCase
@end
@implementation YHAssemblyAssistantTests
- (void)setUp {
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
}
- (void)tearDown {
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}
- (void)testExample {
// This is an example of a functional test case.
XCTAssert(YES, @"Pass");
}
@end
... ...
//
// YHCrashReporterTests.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 "OCMock.h"
#import "YHCrashReporter.h"
@interface YHCrashReporterTests : XCTestCase
@end
@implementation YHCrashReporterTests
- (void)setUp {
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
}
- (void)tearDown {
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}
- (void)testExample {
// This is an example of a functional test case.
XCTAssert(YES, @"Pass");
}
@end
... ...
//
// YHDataFactoryTests.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 "OCMock.h"
#import "YHDataFactory.h"
@interface YHDataFactoryTests : XCTestCase
@end
@implementation YHDataFactoryTests
- (void)setUp {
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
}
- (void)tearDown {
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}
- (void)testExample {
// This is an example of a functional test case.
XCTAssert(YES, @"Pass");
}
@end
... ...
//
// YHDeviceFactoryTests.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 "OCMock.h"
#import "YHDeviceFactory.h"
@interface YHDeviceFactoryTests : XCTestCase
@end
@implementation YHDeviceFactoryTests
- (void)setUp {
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
}
- (void)tearDown {
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}
- (void)testExample {
// This is an example of a functional test case.
XCTAssert(YES, @"Pass");
}
@end
... ...
//
// YHDeviceTests.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 "OCMock.h"
#import "YHDevice.h"
@interface YHDeviceTests : XCTestCase
@end
@implementation YHDeviceTests
- (void)setUp {
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
}
- (void)tearDown {
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}
- (void)testExample {
// This is an example of a functional test case.
XCTAssert(YES, @"Pass");
}
@end
... ...
//
// YHErrorFactoryTests.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 "OCMock.h"
#import "YHErrorFactory.h"
@interface YHErrorFactoryTests : XCTestCase
@end
@implementation YHErrorFactoryTests
- (void)setUp {
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
}
- (void)tearDown {
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}
- (void)testExample {
// This is an example of a functional test case.
XCTAssert(YES, @"Pass");
}
@end
... ...
//
// YHErrorTests.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 "OCMock.h"
#import "YHError.h"
@interface YHErrorTests : XCTestCase
@end
@implementation YHErrorTests
- (void)setUp {
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
}
- (void)tearDown {
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}
- (void)testExample {
// This is an example of a functional test case.
XCTAssert(YES, @"Pass");
}
@end
... ...
//
// YHEventFactoryTests.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 "OCMock.h"
#import "YHEventFactory.h"
@interface YHEventFactoryTests : XCTestCase
@end
@implementation YHEventFactoryTests
- (void)setUp {
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
}
- (void)tearDown {
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}
- (void)testExample {
// This is an example of a functional test case.
XCTAssert(YES, @"Pass");
}
@end
... ...
//
// YHEventTests.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 "OCMock.h"
#import "YHEvent.h"
@interface YHEventTests : XCTestCase
@end
@implementation YHEventTests
- (void)setUp {
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
}
- (void)tearDown {
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}
- (void)testExample {
// This is an example of a functional test case.
XCTAssert(YES, @"Pass");
}
@end
... ...
//
// YHNetworkAssistantTests.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 "OCMock.h"
#import "YHNetworkAssistant.h"
@interface YHNetworkAssistantTests : XCTestCase
@end
@implementation YHNetworkAssistantTests
- (void)setUp {
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
}
- (void)tearDown {
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}
- (void)testExample {
// This is an example of a functional test case.
XCTAssert(YES, @"Pass");
}
@end
... ...
//
// YHNetworkUserAgentTests.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 "OCMock.h"
#import "YHNetworkUserAgent.h"
@interface YHNetworkUserAgentTests : XCTestCase
@end
@implementation YHNetworkUserAgentTests
- (void)setUp {
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
}
- (void)tearDown {
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}
- (void)testExample {
// This is an example of a functional test case.
XCTAssert(YES, @"Pass");
}
@end
... ...
//
// YHStatusFactoryTests.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 "OCMock.h"
#import "YHStatusFactory.h"
@interface YHStatusFactoryTests : XCTestCase
@end
@implementation YHStatusFactoryTests
- (void)setUp {
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
}
- (void)tearDown {
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}
- (void)testExample {
// This is an example of a functional test case.
XCTAssert(YES, @"Pass");
}
@end
... ...
//
// YHStatusTests.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 "OCMock.h"
#import "YHStatus.h"
@interface YHStatusTests : XCTestCase
@end
@implementation YHStatusTests
- (void)setUp {
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
}
- (void)tearDown {
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}
- (void)testExample {
// This is an example of a functional test case.
XCTAssert(YES, @"Pass");
}
@end
... ...