Tag Archives: Unit testing

Unit Testing – Setup pattern (Moq)

In my previous post I mentioned that large unit test setups can be difficult to maintain / understand. This problem can be reduced by following a test pattern. I want to share with you a pattern I use, and I think works really well. In this post I will be using C#, Moq libary and Visual Studio test […]

TDD, where did ‘I’ go wrong – 7 Months on

My last blog post some 7 months ago was ‘TDD, where did ‘I’ go wrong‘, this post will revisit some of the statements I made during that post, comments I received, and examine how the change has worked. So to start off with some background. Since changing our approach to TDD from ‘Method Based’ to ‘API […]

TDD, where did ‘I’ go wrong

I recently watched a talk by Ian Cooper from NDC 2013 titled ‘TDD, where did it all go wrong‘, and it has completely changed how I look at unit testing. This post looks at how I got it so wrong, and the benefits of following Ian’s approach. Method Based Unit Testing – So Wrong … I […]