CREATING A TEST CASE

We'll start by creating a simple application containing one form.  On this form we will drop one TButton control, as follows:

















We'll add the following code to the Button's OnClick event to raise an exception:
























When we run this code, the following error message is displayed:












Not exactly overly-informative, so let's introduce CodeSite to the equation and see what we discover...