Welcome to MSDN Blogs Sign in | Join | Help

November 2008 - Posts

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 if
Posted by ploeh | 1 Comments

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 :)
Posted by ploeh | 0 Comments
Filed under:

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 Plop(
Posted by ploeh | 4 Comments

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
Posted by ploeh | 1 Comments

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
Posted by ploeh | 8 Comments

Assert.Throws

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
Posted by ploeh | 4 Comments
Filed under:
 
Page view tracker