Vote UpVote

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, ...
Favorite? Off-Topic? Nick Hodges @ 2010-04-16 00:34


Visits: 446
Votes: 0
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)