Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

The specific code I'm interested in is in the UpdateDetail procedure in the Invoice app. It's a routine that's used to calculate various values for each line item that's added to an invoice. As I'm sure you'll agree, this is critical business logic. And as I showed in Part 35, it it's buggy code.

Let's take a look at what this embed code is actually trying to accomplish. Here again is the code:

...

I couldn't find any third party unit testing tools for Clarion, so I went ahead and wrote one. Actually this tool is in two parts: an executable application (called ClarionTest) that will search a DLL looking for unit tests to run, and a set of supporting templates you use to create test procedures in a test DLL that is compatible with ClarionTest.

...