Unit testing is an essential instrument in the toolbox of any serious software developer. However, it can sometimes be quite difficult to write a good unit test for a particular piece of code. Having difficulty testing their own or someone else’s code, developers often think that their struggles are caused by a lack of some fundamental testing knowledge or secret unit testing techniques.In this article, I would like to show that unit tests are quite easy; the real problems that complicate unit testing, an

Source: Unit Testing and Coding Best Practices for Unit Tests: A Test-Driven Perspective | Toptal