0
votes
Fun With Testing DateUtils.pas #8
Nick Hodges
– Okay, first up: I’ve put the tests and updates for DateUtils.pas on CodeCentral. So far, I’ve been writing tests in a pretty organized way. But I write each individual test, one at a time. I often end up writing a lot of “piece-meal” tests by hand. I end up with a lot of code that looks like this: procedure TDateUtilsTests.Test_IncMinuteBeforeEpochAdding; var TestDate, Expected, TestResult: TDateTime; begin TestDate := EncodeDateTime(945, 12, 7, 13, 34, 26, 765); TestResult := IncMinute(TestDate, 1); Expected := EncodeDateTime(945, 12, 7, 13, 35, ...
Statistics
|
Visits by Source |
User Actions |



