You need a variant form of .Add
(or of CreateTransaction
) that lets you "inject" a (fake) date, exactly for such testing purposes.
Alex Martelli
2009-05-25 18:06:03
You need a variant form of .Add
(or of CreateTransaction
) that lets you "inject" a (fake) date, exactly for such testing purposes.
You can use the same techniques as described in "How do I unit test for machine specific behaviour?", to inject/use/create/test with specific dates.