So, basically here's what I want to do. I'm testing a class and in order to do that I want to redefine "today" (or "now"), meaning that I can test date transitions and other related properties simply by stating, say, "tomorrow is now" and then write my asserts.
My idea is to put a custom Test category on NSDate (NSDate+Test). But, at this moment I'm no longer sure how and where that category will propagate. I mean, will my class-under-test (that uses NSDate) automatically start to use NSDate+Test?
Just to illustrate:
#include "MyClassUnderTest.h"
#include "NSDate+Test.h"
// Will MyClassUnderTest.h see and use NSDate+Test at all times?