RE: How do I unit test a Dispose method ?

<[email protected]> 04 Feb 2014 23:58:00 -0800
Newsgroups gmane.comp.programming.test-driven-development
Message-ID <[email protected]>
Hi Gishu
 

 Sorry if my reply is out of context - I've been having trouble finding all the replies in the new (?) Yahoo group UI....
 

 In general - the idea is the tests drive your design.
 Here it sounds like you have a predefined design (a Connection wrapping your disposable SecireString member) and now you want to test iot (after the code is written).
 Did I understand that correctly?
 

 Either way - TDDing this would probably produce a whole different design, depending on your requirements... I'd love to give it a go - could you give some more context? as to how you ended up with this design and what the requirements are?
 

 Best,
 Avi