When code processes dates based on the current date, testing should cover edge cases such as leap years as well as the more frequent month and year boundaries.
In our code we always get the current date deep down in our classes using DateTime.Now
(.NET, in our case).
How can you unit test such code?
Is this where Dependency Injection becomes very useful?
Edit
This is a slight aside, but apparently the next version of Typemock will allow faking of DateTime.Now
http://blog.typemock.com/2009/05/mockingfaking-datetimenow-in-unit-tests.html