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