Hi!
When unit-testing, for instance default control procedures, I would like to to be able to compare the expected output with something else than a static value. It would be nice to compare the test result with the result of a query or even something like NOT NULL.
I need to check if the result of the test matches the current date + 1 month. Since this changes every milisecond I can’t compare this to a static value. It would be great to compare it to:
dateadd(month , 1 , getdate())
But comparing it to NOT NULL would help too, since this at least gives some convidence that the code is behaving as expected.
As it is, I see no way to create a functional unit test for this default code procedure.