// // OCHamcrest - HCIsNot.h // Copyright 2013 hamcrest.org. See LICENSE.txt // // Created by: Jon Reid, http://qualitycoding.org/ // Docs: http://hamcrest.github.com/OCHamcrest/ // Source: https://github.com/hamcrest/OCHamcrest // #import @interface HCIsNot : HCBaseMatcher { id matcher; } + (instancetype)isNot:(id)aMatcher; - (instancetype)initNot:(id)aMatcher; @end OBJC_EXPORT id HC_isNot(id aMatcher); /** isNot(aMatcher) - Inverts the given matcher to its logical negation. @param aMatcher The matcher to negate. This matcher compares the evaluated object to the negation of the given matcher. If the @a aMatcher argument is not a matcher, it is implicitly wrapped in an @ref equalTo matcher to check for equality, and thus matches for inequality. Examples: @li @ref assertThat(cheese, isNot(equalTo(smelly))) @li @ref assertThat(cheese, isNot(smelly)) (In the event of a name clash, don't \#define @c HC_SHORTHAND and use the synonym @c HC_isNot instead.) @ingroup logical_matchers */ #ifdef HC_SHORTHAND #define isNot HC_isNot #endif