NDC2010: Michael Feathers – The deep synergy between good design and testability

In this session Michael Feathers basically killed the argument based on; I don’t want tests to drive my design with a simple example base on the code smell; Iceberg class. Private methods are really hard to test, and here we Continue reading

Posted in NDC2010 | Tagged design patterns, NDC2010, TDD | 2 Replies

NDC2010: Michael Feathers – Testable C#

This session was basically explaining a simple rule that regardless if you are using TDD; should be followed at all times: Never hide a TUF in a TUC What did Michael mean by that? There are two things that can Continue reading

Posted in NDC2010 | Tagged design patterns, NDC2010, TDD | 1 Reply

Tip: Mocking callbacks using RhinoMocks when lambdas are involved

There is several cool language features available in C# 3.0, one of them is lambdas. It’s a handy tool when you want to execute a few lines of code where a delegate is expected. Fredrik Normén and I chatted about Continue reading

Posted in design patterns | Tagged Lambda, Mock, RhinoMocks, TDD | Leave a reply