123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
-
-
- #import <Foundation/Foundation.h>
-
-
- @interface OCMConstraint : NSObject
-
- + (instancetype)constraint;
- - (BOOL)evaluate:(id)value;
-
-
-
-
-
- + (instancetype)constraintWithSelector:(SEL)aSelector onObject:(id)anObject;
- + (instancetype)constraintWithSelector:(SEL)aSelector onObject:(id)anObject withValue:(id)aValue;
-
-
- @end
-
- @interface OCMAnyConstraint : OCMConstraint
- @end
-
- @interface OCMIsNilConstraint : OCMConstraint
- @end
-
- @interface OCMIsNotNilConstraint : OCMConstraint
- @end
-
- @interface OCMIsNotEqualConstraint : OCMConstraint
- {
- @public
- id testValue;
- }
-
- @end
-
- @interface OCMInvocationConstraint : OCMConstraint
- {
- @public
- NSInvocation *invocation;
- }
-
- @end
-
- @interface OCMBlockConstraint : OCMConstraint
- {
- BOOL (^block)(id);
- }
-
- - (instancetype)initWithConstraintBlock:(BOOL (^)(id))block;
-
- @end
-
-
- #define CONSTRAINT(aSelector) [OCMConstraint constraintWithSelector:aSelector onObject:self]
- #define CONSTRAINTV(aSelector, aValue) [OCMConstraint constraintWithSelector:aSelector onObject:self withValue:(aValue)]
|