ploeh blog

Mark Seemann's discontinued .NET blog.
Posts
  • ploeh blog

    Ignore Irrelevant Return Values

    • 1 Comments
    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

    Microsoft Dynamics Mobile 1.5 Released

    • 0 Comments
    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 :)
  • ploeh blog

    Anonymous Variables

    • 5 Comments
    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

    Naming Direct Output Variables

    • 2 Comments
    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

    Zero-Friction TDD

    • 9 Comments
    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

    Assert.Throws

    • 4 Comments
    xUnit.net 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...
Page 1 of 1 (6 items)