main
1//
2// Licensed under the terms in License.txt
3//
4// Copyright 2010 Allen Ding. All rights reserved.
5//
6
7#import "KiwiConfiguration.h"
8#import "KWMatching.h"
9
10@interface KWMatcher : NSObject<KWMatching> {
11@protected
12 id subject;
13}
14
15#pragma mark -
16#pragma mark Initializing
17
18- (id)initWithSubject:(id)anObject;
19
20+ (id)matcherWithSubject:(id)anObject;
21
22#pragma mark -
23#pragma mark Properties
24
25@property (nonatomic, readonly) id subject;
26
27#pragma mark -
28#pragma mark Getting Matcher Strings
29
30+ (NSArray *)matcherStrings;
31
32#pragma mark -
33#pragma mark Getting Matcher Compatability
34
35+ (BOOL)canMatchSubject:(id)anObject;
36
37#pragma mark -
38#pragma mark Matching
39
40- (BOOL)evaluate;
41
42#pragma mark -
43#pragma mark Getting Failure Messages
44
45- (NSString *)failureMessageForShould;
46- (NSString *)failureMessageForShouldNot;
47
48@end