Running MSTest In An MTA

Writing deterministic, multi-threaded unit tests may not be your idea of a fun Saturday night, but with a little discipline and knowledge, it can be done, and it sure beats writing multi-dreaded code without the safety net provided by an automated test suite. In this situation, synchronization becomes really important, and the various WaitHandle classes become…

14

Speaking at TechEd Developers 2007

Again this year, I’ll be presenting at TechEd Developers in Barcelona next month. This year, I’ll be doing both a general session on mocks, as well an interactive session on TDD. You can read more on these sessions by using the conference’s Session Search tool and selecting my name (Mark Seemann) in the Speakers dropdown…

7

Race Troubleshooting Using The Console Output In VSTS

It must be my week of discovering the obvious. The other day I was troubleshooting a race condition in my code. I had a unit test that faithfully reproduced the error, but just looking at the code involved didn’t produce any sudden insights into its reasons. The nasty thing about race conditions (and multi-threaded code in…

4

Troubleshooting WCF In Production Environments

WCF is such a nice framework, and its diagnostics capabilities are really comprehensive. Really, I only have two (pseudo-)issues with diagnostics so far: Configuring diagnostics is pretty difficult to do (lots of XML editing involved) Reading trace and message logs is hard. By default, it’s in XML, so it’s ‘human-readable’, but there’s just so much of…

11