main
1//
2// KWExampleSuite.h
3// Kiwi
4//
5// Created by Luke Redpath on 17/10/2011.
6// Copyright (c) 2011 Allen Ding. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10#import "KWExampleNodeVisitor.h"
11
12@class KWContextNode;
13@class KWExample;
14@class SenTestCase;
15
16@interface KWExampleSuite : NSObject <KWExampleNodeVisitor> {
17 KWContextNode *rootNode;
18 NSMutableArray *examples;
19}
20- (id)initWithRootNode:(KWContextNode *)contextNode;
21- (void)addExample:(KWExample *)example;
22- (void)markLastExampleAsLastInContext:(KWContextNode *)context;
23- (NSArray *)invocationsForTestCase;
24@end
25
26@interface NSInvocation (KWExampleGroup)
27- (void)kw_setExample:(KWExample *)exampleGroup;
28- (KWExample *)kw_example;
29@end