Remco;4309 wrote:Thanks Kaleb. I've met people within the industry with strong opinions on tests always having consistent and deterministic behaviour.
For unit tests, I agree with this. I actually use the current time as an indicator that the date/time doesn't matter nor change the flow of execution. It is in essence what I was implying when I said "when possible." In all other cases I'll stub the value to something appropriate.
Although I had realized that my objects were being ToString'd and that was used in the display of the tests, I had never considered the test data as a part of the name. That's probably an important point and leads to more carefully crafting test data, rather than throwing at a test a bunch of may-be-important pieces of data.
Thanks for the thoughts, and NCrunch!
--Kaleb