【OCMock单元测试】对[[UIDevice currentDevice] systemVersion]进行模拟
【OCMock单元测试】对[[UIDevice currentDevice] systemVersion]进行模拟
id devMock = OCMPartialMock([UIDevice currentDevice]);
OCMStub([(UIDevice *)devMock systemVersion]).andReturn(@"9.0");
原创
2021-06-02 20:45:47 ·
613 阅读 ·
2 评论