Mockity mock moq

Getting a rare chance to do some serious refactoring and have committed to doing it “right” with TDD. To that end I’ve been introduced to my new friend Moq [1]—a lazy-evaluating object mocking framework. Abstract your objects to interfaces and then create a new Mock object with the interface as its type… and Bob’s your…

Refactoring problems

Refactoring without unit tests is a lot like playing that game where you splay your fingers out on a table and then stab the spaces between the fingers as fast as you can with a really sharp knife in your other hand. Writing unit tests for one-off scripts isn’t really worth the effort. Refactoring one-off…