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
 9@protocol KWMatching<NSObject>
10
11#pragma mark -
12#pragma mark Initializing
13
14- (id)initWithSubject:(id)anObject;
15
16#pragma mark -
17#pragma mark Getting Matcher Strings
18
19+ (NSArray *)matcherStrings;
20
21#pragma mark -
22#pragma mark Getting Matcher Compatability
23
24+ (BOOL)canMatchSubject:(id)anObject;
25
26#pragma mark -
27#pragma mark Matching
28
29@optional
30
31- (BOOL)shouldBeEvaluatedAtEndOfExample;
32- (BOOL)willEvaluateMultipleTimes;
33- (void)setWillEvaluateMultipleTimes:(BOOL)shouldEvaluateMultipleTimes;
34
35@required
36
37- (BOOL)evaluate;
38
39#pragma mark -
40#pragma mark Getting Failure Messages
41
42- (NSString *)failureMessageForShould;
43- (NSString *)failureMessageForShouldNot;
44
45@end