KWMatchVerifier.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 "KWExpectationType.h"
  8. #import "KWVerifying.h"
  9. @class KWCallSite;
  10. @class KWMatcherFactory;
  11. @protocol KWMatching;
  12. @protocol KWReporting;
  13. @interface KWMatchVerifier : NSObject<KWVerifying>
  14. #pragma mark - Properties
  15. @property (nonatomic, readonly) KWExpectationType expectationType;
  16. @property (nonatomic, readonly) KWMatcherFactory *matcherFactory;
  17. @property (nonatomic, readonly) id<KWReporting> reporter;
  18. @property (nonatomic, strong) id subject;
  19. #pragma mark - Initializing
  20. - (id)initForShouldWithCallSite:(KWCallSite *)aCallSite matcherFactory:(KWMatcherFactory *)aMatcherFactory reporter:(id<KWReporting>)aReporter;
  21. - (id)initForShouldNotWithCallSite:(KWCallSite *)aCallSite matcherFactory:(KWMatcherFactory *)aMatcherFactory reporter:(id<KWReporting>)aReporter;
  22. - (id)initWithExpectationType:(KWExpectationType)anExpectationType callSite:(KWCallSite *)aCallSite matcherFactory:(KWMatcherFactory *)aMatcherFactory reporter:(id<KWReporting>)aReporter;
  23. + (id<KWVerifying>)matchVerifierWithExpectationType:(KWExpectationType)anExpectationType callSite:(KWCallSite *)aCallSite matcherFactory:(KWMatcherFactory *)aMatcherFactory reporter:(id<KWReporting>)aReporter;
  24. - (void)verifyWithMatcher:(id<KWMatching>)aMatcher;
  25. @end