ploeh blog

Mark Seemann's discontinued .NET blog.

November, 2008

Blog - About

About ploeh blog

Mark Seemann was a software development engineer working for Microsoft in Copenhagen, Denmark. This was his (professional) blog. Please visit the current ploeh blog instead.

All postings are provided "AS IS" with no warranties, and confer no rights. Any opinions expressed in this blog are solely those of the author and not official positions of Microsoft Corporation.

  • ploeh blog

    Anonymous Variables

    This post is an installment in my series on Zero-Friction TDD . Often when writing a unit test, the SUT 's API will force you to create objects that you really don't care about. As an example, take a look at the signature of this constructor: public...
  • ploeh blog

    Zero-Friction TDD

    Writing good code is difficult. Unit tests are written as code, so a corollary to the first sentence is that writing good unit tests is also difficult. TDD (particularly if you interpret the last D as Design ) carries this challenge in abundance, since...
  • ploeh blog

    Naming Direct Output Variables

    In my series of Zero-Friction TDD tips and tricks, it's time to look at naming Direct Output variables. [ TestMethod ] public void DoStuffWillReturnMessage() { // Fixture setup string expectedResult = "ploeh" ; MyClass sut = new MyClass (); // Exercise...
  • ploeh blog

    Ignore Irrelevant Return Values

    This is an installment in my Zero-Friction TDD series. Sometimes, you don't care about the return value from a particular operation. The simplest example is if you want to check that creating a new instance of a specific type will throw an exception...
  • ploeh blog


    • 4 Comments provides the Assert.Throws method for testing exceptions, instead of the ExpectedException attribute. In his original announcement , James Newkirk explains why this is a much better approach, and I can only agree. However, those of us that for...
  • ploeh blog

    Microsoft Dynamics Mobile 1.5 Released

    If you are wondering about what I'm doing these days, we (the Microsoft Dynamics Mobile Team ) just released a new version of Microsoft Dynamics Mobile ! And there was much rejoicing :)
Page 1 of 1 (6 items)