.NET

  • TDD and CodeRush

    TDD as a Practice The essence of Test Driven Development (TDD) can be summarized most succinctly as “red, green, refactor”. Following this practice will tend to make your code more reliable, cleaner, and better designed. It is no magic bullet, but you doing TDD is better at programming than you not doing it. However, a…

  • Poor Man’s Automoq in .NET 4

    So, the other day I mentioned to a coworker that I was working on a tool that would wrap moq and provide expressive test double names. I then mentioned the tool AutoMoq, and he showed me something that he was doing. It’s very simple: [TestClass] public class FeatureResetServiceTest { #region Builders private static FeatureResetService BuildTarget(IFeatureLocator…

  • GitHub and Easy Moq

    GitHub Not too long ago, I signed up for GitHub. I had always used subversion for source control when given the choice, but the distributed nature of Git appealed to me, particularly since I often do work on a variety of different machines. GitHub itself appealed to me because it seemed like the perfect venue…