Skip to content
Newer
Older
100644 29 lines (22 sloc) 585 Bytes
665b6c4 Added new HaveValue matcher for key-value-coding compliant expectations.
Luke Redpath authored
1 //
2 // KWHaveValueMatcher.h
3 // Kiwi
4 //
5 // Created by Luke Redpath on 24/01/2011.
6 // Copyright 2011 Allen Ding. All rights reserved.
7 //
8
9 #import <Foundation/Foundation.h>
10 #import "KWMatcher.h"
11
12 @interface KWHaveValueMatcher : KWMatcher {
13 @private
b940a6e @mattdipasquale Convert \t to 4 spaces. Rm trailing whitespace.
mattdipasquale authored
14
665b6c4 Added new HaveValue matcher for key-value-coding compliant expectations.
Luke Redpath authored
15 NSString *expectedKey;
d68f4f6 Extended KVC matcher support to keypaths.
Luke Redpath authored
16 NSString *expectedKeyPath;
665b6c4 Added new HaveValue matcher for key-value-coding compliant expectations.
Luke Redpath authored
17 id expectedValue;
18 }
19
20 #pragma mark -
21 #pragma mark Configuring Matchers
22
23 - (void)haveValue:(id)value forKey:(NSString *)key;
d68f4f6 Extended KVC matcher support to keypaths.
Luke Redpath authored
24 - (void)haveValue:(id)value forKeyPath:(NSString *)keyPath;
665b6c4 Added new HaveValue matcher for key-value-coding compliant expectations.
Luke Redpath authored
25 - (void)haveValueForKey:(NSString *)key;
d68f4f6 Extended KVC matcher support to keypaths.
Luke Redpath authored
26 - (void)haveValueForKeyPath:(NSString *)keyPath;
665b6c4 Added new HaveValue matcher for key-value-coding compliant expectations.
Luke Redpath authored
27
28 @end
Something went wrong with that request. Please try again.