[DUG] Mocking Delphi

Richard Vowles richard at developers-inc.co.nz
Tue Oct 20 18:18:40 NZDT 2009


2009/10/20 Jolyon Smith <jsmith at deltics.co.nz>

>  You do of course mean D2010. J
>
Yes :-)

> I had the same thought… all it needs now is someone to convince me that
> spending time creating mocks and testing that the mocks adequately test the
> things I’m really testing is time that couldn’t be better invested in
> creating a robust, practical test environment to actually test the things I
> want to test…. (draws breath) … I might explore the idea further
>
>
>
That simply is the argument for unit testing - which I suppose is always
dependent on whether or not you think it will give you value. You cannot
unit test without mocks as mocks mock the dependent classes.  Mocks simply
serve to prevent you having to implement fakes and managing that extra
code... I suppose I should just try it and see!
-- 
---
Richard Vowles, Technical Advisor
Developers Inc Ltd
web. http://www.developers-inc.co.nz
ph. +64-9-3600231, mob. +64-275-467747, fax. +64-9-3600384
skype. rvowles, LinkedIn, Twitter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20091020/f995206f/attachment.html 


More information about the Delphi mailing list