By the way, I should say that testing can get tricky since just doing a Mixin once will affect the rest of the runtime, so the latter methods actually aren't testing much. For instance, in testNSObjectCategory:
You can comment out the the third line and it'll still work since the classes have already been mixed in in previous tests.
I'm not sure how to solve this without making separate classes per test case. Or, writing a method to remove the effects of a mixin, but I can't see how that could be useful in normal use. Regardless, it's not a huge deal, just kind of cute. :)
By the way, I should say that testing can get tricky since just doing a Mixin once will affect the rest of the runtime, so the latter methods actually aren't testing much. For instance, in
testNSObjectCategory
:You can comment out the the third line and it'll still work since the classes have already been mixed in in previous tests.
I'm not sure how to solve this without making separate classes per test case. Or, writing a method to remove the effects of a mixin, but I can't see how that could be useful in normal use. Regardless, it's not a huge deal, just kind of cute. :)