如何在Specta中测试协议和代理?我有以下代码:
#import "Specta.h"
#import "SBSearchService.h"
SpecBegin(SearchService)
describe(@"Search Manager", ^{
__block SBSearchService *searchService;
beforeAll(^{
searchService = [[SBSearchService alloc] init];
searchService.delegate = self;
});
it(@"returns at least 1 result", ^AsyncBlock {
[searchService search:@"mustang"];
});
});
SpecEnd
我想知道指定测试是否符合Specta协议的语法是什么。