Checking expected exception message when using MS Test

In Typemock we use both NUnit and MSTest to run our unit tests. This practice enables us to check that Isolator works fine on both unit testing framework. Most of NUnit attributes can be translated fully into MSTest attributes (and vise-versa) there is one attribute we tend to use that works differently in MSTest - … Continue reading Checking expected exception message when using MS Test

How to use a printer from windows7 when you don’t have the needed device driver

At office we have a Xerox printer that don’t have a driver for windows7 (yet?), but I still manage to print from it without any hassle. How – simply by using the incredible XP Mode. The bane of the last two windows OS (Vista and Win7) was lack of driver support, although win7 has better … Continue reading How to use a printer from windows7 when you don’t have the needed device driver

XmlWriter that automatically close elements using IDisposable

System.Xml.XmlWriter provides an easy and lightweight way to write xml strings, unfortunately it has a little gotcha. consider the following xml string (borrowed from IronPython in Action): Using XmlWriter the following code is needed to create that string: Keep in mind the fact that the code above only creates 5 lines of xml, and as … Continue reading XmlWriter that automatically close elements using IDisposable

Getting started with IronPython – Part 4: MiniMax algorithm

After learning the basics of IronPython programming in the previous posts you’re ready for the fourth post – where I’m going to add simple AI logic to the Mancala game. Previous Posts: Part 1 – Where to start Part 2 – Let’s write some code Part 3 -  Unit testing As part of my quest … Continue reading Getting started with IronPython – Part 4: MiniMax algorithm

What to do when DebugBreak won’t let me debug on windows7/Vista

A curious problem that I had today at work: I’m working on a component that suppose to run as another “service”. Because of the environment limitations I could not  just debug using visual studio (F5) and had to set my debug points manually using __debugbreak. I recently installed Windows 7 and so far I enjoy … Continue reading What to do when DebugBreak won’t let me debug on windows7/Vista

How to write a simple DXCore plug-in

DevExpress the creator of Refactor and CodeRush two great visual studio productivity tools provide a free library called DXCore that can be used to create rich plug-ins that can extend visual studio the same way their commercial products do. Until visual studio 2010 will be widely developers can use DXCore to extend visual studio and … Continue reading How to write a simple DXCore plug-in