KWChangeMatcher.h 458 B

123456789101112131415161718192021
  1. //
  2. // KWChangeMatcher.h
  3. // Kiwi
  4. //
  5. // Copyright (c) 2013 Eloy Durán <eloy.de.enige@gmail.com>.
  6. // All rights reserved.
  7. //
  8. #import "KWMatcher.h"
  9. typedef NSInteger (^KWChangeMatcherCountBlock)(void);
  10. @interface KWChangeMatcher : KWMatcher
  11. // Expect _any_ change.
  12. - (void)change:(KWChangeMatcherCountBlock)countBlock;
  13. // Expect changes by a specific amount.
  14. - (void)change:(KWChangeMatcherCountBlock)countBlock by:(NSInteger)expectedDifference;
  15. @end