KWHaveMatcher.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 "KWMatcher.h"
  8. #import "KWMatchVerifier.h"
  9. @interface KWHaveMatcher : KWMatcher
  10. #pragma mark - Configuring Matchers
  11. - (void)haveCountOf:(NSUInteger)aCount;
  12. - (void)haveCountOfAtLeast:(NSUInteger)aCount;
  13. - (void)haveCountOfAtMost:(NSUInteger)aCount;
  14. - (void)haveLengthOf:(NSUInteger)aCount;
  15. - (void)haveLengthOfAtLeast:(NSUInteger)aCount;
  16. - (void)haveLengthOfAtMost:(NSUInteger)aCount;
  17. - (void)have:(NSUInteger)aCount itemsForInvocation:(NSInvocation *)anInvocation;
  18. - (void)haveAtLeast:(NSUInteger)aCount itemsForInvocation:(NSInvocation *)anInvocation;
  19. - (void)haveAtMost:(NSUInteger)aCount itemsForInvocation:(NSInvocation *)anInvocation;
  20. @end
  21. @protocol KWContainmentCountMatcherTerminals
  22. #pragma mark - Terminals
  23. - (id)objects;
  24. - (id)items;
  25. - (id)elements;
  26. @end
  27. #pragma mark - Verifying
  28. @interface KWMatchVerifier(KWHaveMatcherAdditions)
  29. #pragma mark - Invocation Capturing Methods
  30. - (id)have:(NSUInteger)aCount;
  31. - (id)haveAtLeast:(NSUInteger)aCount;
  32. - (id)haveAtMost:(NSUInteger)aCount;
  33. @end