MXGSynchronizeTest 1.1.0

MXGSynchronizeTest 1.1.0

测试已测试
语言语言 Obj-CObjective C
许可证 MIT
发布最新发布2014年12月

Max Goedjen 维护。



  • 作者
  • Max Goedjen

使用 CocoaPods 安装


target :MyAppTests, :exclusive => true do
    pod 'MXGSynchronizeTest'
end

导入到测试中

#import <MXGSynchronizeTest/XCTest+MXGSynchronizeTest.h>

测试

[XCTest mxg_synchronizeTest:^(BOOL *finished) {
    [MXGSomeService loadDataWithCompletion:^(id someObject, NSError *error) {
        XCTAssertNil(error, @"Error should be nil");
        XCTAssertNotNil(someObject, @"Response object should not be nil");
        *finished = YES;
    }];
}];