Click here to Skip to main content
15,891,951 members
Articles / DevOps / Testing

How to make your code more unit test friendly and better

Rate me:
Please Sign up or sign in to vote.
4.57/5 (3 votes)
19 Apr 2010CPOL2 min read 14.9K   5  
How to make your code more unit test friendly (and better)You just simply split your code into small classes and methods while ensuring you follow the principles of Separation Of Concerns and Single Responsibility.If you have a big method you want to unit test, you should use the...

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

No alternatives have been posted.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Vestas Wind System A/S
Denmark Denmark
Mikael has been developing software for more than 20 years. Today he is working for Vestas Wind Systems A/S, doing development mostly in Microsoft Visual Studio.

Comments and Discussions