Last Updated: February 25, 2016
·
270
· drock

Date based tests

When writing tests for code that is based on a date, try to have your test cases use dates in the past. This makes it more likely your test will be more consistent as we progress into the future.