天天看点

iOS单元测试框架Kiwi for iOS

iOS单元测试框架Kiwi for iOS

  示例代码:

describe(@"team", ^{

context(@"when newly created", ^{

it(@"should have a name", ^{

id team = [team team];

[[team.name should] equal:@"black hawks"];

});

it(@"should have 11 players", ^{

[[[team should] have:11] players];

 最新内容请见作者的github页:http://qaseven.github.io/

继续阅读