devxlogo

June 5, 2001

Testing a Business Rule Should Not Have Any Side Effects

Testing a business rule should have no side effects. Avoid err.raise and msgboxes inside business rule tests.Consider this example: public const kMinimumApplicantAge = 18 ‘declared in common modPublic Function IsApplicantAgeEligible(DOB

Be Careful While Calling Exit()

Calling exit() from any where in the program will result in the process getting terminated. For example, if exit() is called from a code in a dll which is loaded