FPCUnit and DUnit and FPTest frameworks have special test methods for testing exceptions. In the latter two frameworks it is CheckException(). I know FPCUnit has something similar. I think for the DUnit compatibility interface of FPCUnit I implemented the CheckException method too. G.