Welcome to MSDN Blogs Sign in | Join | Help

August 2006 - Posts

Test Types

The recent discussion spawned by my former post has prompted me to write this entry about test types. There's not a single clear definition of what a unit test is, so sometimes people approach me with unit testing challenges that don't really relate to
Posted by ploeh | 12 Comments
Filed under:

Volatile Dependencies

Unit testing is all about testing your code in isolation from its dependencies. Why is it important to isolate your code from its dependencies? There may be several reasons: A dependency introduces a requirement to set up and configure the environment
Posted by ploeh | 5 Comments
Filed under:

Speaking At TechEd, Barcelona

TechEd Developers 2006 is in Barcelona in November, and I have had the honor of being invited to deliver a talk on unit testing best practices using Visual Studio 2005 Team System. Since breakout sessions at Microsoft conferences are always one hour and
Posted by ploeh | 7 Comments

How To Dispose Members From Forms

When you create a new Form (or UserControl for that matter), Visual Studio creates it as a partial class, with the designer-generated code going into the *.Designer.cs file. One other piece of code that also goes into the designer code is an override
Posted by ploeh | 17 Comments

Debugging When Property Reads Have Side Effects

The last couple of days, I've been working with some code where there was a side effect when a particular property was read. This made it more cumbersome to debug the code, until a very simple solution dawned on me. It's so stupidly simple that I suspect
Posted by ploeh | 2 Comments
Filed under:
 
Page view tracker