Unit Testing - not testable code converted to testable code

Posted by imak on Stack Overflow See other posts from Stack Overflow or by imak
Published on 2010-12-23T16:00:39Z Indexed on 2010/12/23 18:54 UTC
Read the original article Hit count: 214

Filed under:
|

I have read so many places is that if your code is not test-able that mean code is not well written. So that makes me start writing a code that is test-able and to start using some unit testing framework.

With this though I start looking for some example with piece of code that is not testable and gradually converted to a testable code. I find tons of examples on unit testing but if someone can provide an example like above it probably can jump start things for me.

TIA

© Stack Overflow or respective owner

Related posts about c#

Related posts about unit-testing