1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- //
- // Licensed under the terms in License.txt
- //
- // Copyright 2010 Allen Ding. All rights reserved.
- //
- #import "KiwiConfiguration.h"
- #import "KWMatcher.h"
- #import "KWMatchVerifier.h"
- @interface KWHaveMatcher : KWMatcher
- #pragma mark - Configuring Matchers
- - (void)haveCountOf:(NSUInteger)aCount;
- - (void)haveCountOfAtLeast:(NSUInteger)aCount;
- - (void)haveCountOfAtMost:(NSUInteger)aCount;
- - (void)haveLengthOf:(NSUInteger)aCount;
- - (void)haveLengthOfAtLeast:(NSUInteger)aCount;
- - (void)haveLengthOfAtMost:(NSUInteger)aCount;
- - (void)have:(NSUInteger)aCount itemsForInvocation:(NSInvocation *)anInvocation;
- - (void)haveAtLeast:(NSUInteger)aCount itemsForInvocation:(NSInvocation *)anInvocation;
- - (void)haveAtMost:(NSUInteger)aCount itemsForInvocation:(NSInvocation *)anInvocation;
- @end
- @protocol KWContainmentCountMatcherTerminals
- #pragma mark - Terminals
- - (id)objects;
- - (id)items;
- - (id)elements;
- @end
- #pragma mark - Verifying
- @interface KWMatchVerifier(KWHaveMatcherAdditions)
- #pragma mark - Invocation Capturing Methods
- - (id)have:(NSUInteger)aCount;
- - (id)haveAtLeast:(NSUInteger)aCount;
- - (id)haveAtMost:(NSUInteger)aCount;
- @end
|