Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 27675, Code for "Fun with Testing DateUtils"

by Nick Hodges Email: Anonymous


Code to accompany my blog series "Fun with Testing DateUtils"
http://blogs.embarcadero.com/nickhodges?s=fun+with+testing+DateUtils&search.x=0&search.y=0
Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 1.0  to 10.0 181 downloads
Copyright: All rights reserved


Size: 32,708 bytes
Updated on Sat, 17 Apr 2010 20:53:09 GMT
Originally uploaded on Wed, 14 Apr 2010 15:40:51 GMT
SHA1 Hash: A68EF4ACDA302061CBBCD147DDFC4C2F7F295F71
MD5 Hash: 5796410689B291806CF40CB3E55337D7

    Explore the files in this upload

Description
Introduction:

This code accompanies my blog post series called "Fun with Testing DateUtils.pas".

http://blogs.embarcadero.com/nickhodges?s=fun+with+testing+DateUtils&search.x=0&search.y=0

This code contains two files:

DateUtilsUpdates.pas:

This file contains some of the fixes that I've written for the DateUtils.pas unit, as well as three additional functions: DateTimeInRange, DateInRange, and TimeInRange. These fixes will be released in the next version of Delphi (codenamed Fulcrum) and so if you have that version or later, you have no need for this file. You can use this unit as is, or you can update your own copy of DateUtils with it. If you do the latter, you won't be able to compile using the RTL.BPL package.

UnitTest.DateUtils.pas

This file contains a class that can be included in a DUnit project that tests the functionality of much the DateUtils functionality. Note that as is, many of these tests will fail unless the fixes in DateUtilsUpdates.pas are included. All the tests in this unit assume that the fixes in that unit have been applied to DateUtils.pas.

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Server Response from: ETNACDC03