KWExampleSuite.h 764 B

12345678910111213141516171819202122232425262728293031
  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. #import <Foundation/Foundation.h>
  9. #import "KWExampleNodeVisitor.h"
  10. @class KWContextNode;
  11. @class KWExample;
  12. @interface KWExampleSuite : NSObject <KWExampleNodeVisitor, NSFastEnumeration>
  13. - (id)initWithRootNode:(KWContextNode *)contextNode;
  14. - (void)addExample:(KWExample *)example;
  15. - (void)markLastExampleAsLastInContext:(KWContextNode *)context;
  16. @property (nonatomic, readonly) NSMutableArray *examples;
  17. #pragma mark - Example selector names
  18. - (NSString *)nextUniqueSelectorName:(NSString *)name;
  19. @end
  20. @interface NSInvocation (KWExampleGroup)
  21. @property (nonatomic, setter = kw_setExample:) KWExample *kw_example;
  22. @end