Re: [fpc-pascal] Re: FPCUnit test + raise E;

2013-09-16 Thread Graeme Geldenhuys
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. _

[fpc-pascal] Re: FPCUnit test + raise E;

2013-09-14 Thread Marcos Douglas
On Sat, Sep 14, 2013 at 10:21 PM, Marcos Douglas wrote: > Hi, > > 1) I have a code like that: > > procedure TghSQLConnector.Connect; > begin > try > FLib.Connect; > except > on E: Exception do > DoOnException(E); > end; > end; > > https://github.com/mdbs99/Greyhound/blob/0.1.8