KWMatcher.h 706 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // Licensed under the terms in License.txt
  3. //
  4. // Copyright 2010 Allen Ding. All rights reserved.
  5. //
  6. #import "KiwiConfiguration.h"
  7. #import "KWMatching.h"
  8. @interface KWMatcher : NSObject<KWMatching>
  9. #pragma mark - Initializing
  10. - (id)initWithSubject:(id)anObject;
  11. + (id)matcherWithSubject:(id)anObject;
  12. #pragma mark - Properties
  13. @property (nonatomic, strong) id subject;
  14. #pragma mark - Getting Matcher Strings
  15. + (NSArray *)matcherStrings;
  16. #pragma mark - Getting Matcher Compatability
  17. + (BOOL)canMatchSubject:(id)anObject;
  18. #pragma mark - Matching
  19. - (BOOL)evaluate;
  20. #pragma mark - Getting Failure Messages
  21. - (NSString *)failureMessageForShould;
  22. - (NSString *)failureMessageForShouldNot;
  23. @end