Posts about Software quality

What are exceptions?

This blog has been quiet for a while. I am currently writing a book about localization. Me and my partner are also getting close to release of our new…

ADO.NET Fakes version 2.0

I’ve just updated the API for my ADO.NET Fakes library. The library is a complete ADO.NET driver which is designed to aid you in unit testing.

COM+ done right (refactoring a legacy application)

I’ve been spending a lot of time lately looking into a legacy application which uses COM+, i.e. has classes that inherit ServicedComponent. In this article…

Dealing with exceptions, Logging and displaying error messages

I’ve got a client which is really firm that the user should know what went wrong when exceptions are thrown. So we are displaying error messages like

Small temp file helper for integration tests

I’m writing some integration tests and needed to be able to create/cleanup temp files during the test. So I’ve created a small helper for that (so that the…

When to throw exceptions

I’ve written several posts about exceptions. For instance when you should catch them or how you should design them. In this post I’ll discuss when you should…

The art of creating exceptions

Please take a moment and think about WHY you throw exceptions.

Common mistakes when working with exceptions

This is an evil one, because it’s really easy to do and the compiler does not complain about it (it should be easy for the compiler to spot). The code also…

InvalidOperationException: “Exception” in disguise? Or just the new ApplicationException?

Microsoft added ApplicationException with the idea that all exceptions that you made should derive from it. Fair point, you should be able to handle your own…

Why autogenerated MSTests are bad for you!

MS can generate complete test classes for you that test and access all methods and properties, no matter if they are private or public. Isn’t that awesome?…