[Cuis-dev] Move assertCount initialization to #initialize

Hernán Wilkinson hernan.wilkinson at 10pines.com
Wed Apr 3 06:52:14 PDT 2024


Hi,
 attached is a .cs that moves the initialization of assertCount from #setUp
to #initialize avoiding tests failing when redefining #setUp and not
sending setUp to super.
 I think it is better to have it in #initialize because assertCount is part
of the SUnit framework and not of a test, therefore we can leave #setUp to
initialize test data.

Cheers!
Hernan.

-- 

*Hernán WilkinsonAgile Software Development, Teaching & Coaching*
*Phone: +54-011*-4893-2057
*Twitter: @HernanWilkinson*
*site: http://www.10Pines.com <http://www.10pines.com/>*
Address: Alem 896, Floor 6, Buenos Aires, Argentina
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240403/d96d2695/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 6306-assertCountMovedToinitialize-HernanWilkinson-2024Mar30-20h06m-HAW.001.cs.st
Type: application/octet-stream
Size: 1786 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240403/d96d2695/attachment.obj>


More information about the Cuis-dev mailing list