How to add RowTest support to MSTest

I’ve blogged (read: complained) about the shortcoming of Microsoft’s unit testing framework in the past – lack of required features such checking exception messages and plain nuisances like its notorious habit of spawning new vsmdi files without any cause. On the other side MSTest has a good integration with Visual Studio that makes it worth … Continue reading How to add RowTest support to MSTest

Find out where is the method that was called unexpectedly using fake objects

Every Isolation/Mocking framework out there can verify that a method of a fake object was called and not less important make sure that certain methods are not called. Let’s say that I want to make sure that a method didn’t encounter any errors during execution but verifying that logger.Error was not called: [TestFixture]public class MyClassTests{ … Continue reading Find out where is the method that was called unexpectedly using fake objects

Aspect Oriented Programming in Python using Decorators

It always amazes me how some tasks are easier using dynamic languages. AOP (Aspect Oriented Programming) is just one more thing that can be done easily using Python – at least to some extent.Python has a powerful language feature that makes it all happen – called “Function Decorator” and this is how you use it:The … Continue reading Aspect Oriented Programming in Python using Decorators

How to migrate your blog from Community Server to Blogger

Welcome to my new blog – I’ve recently left blogs.microsoft.co.il and Community server and while it wasn’t completely pain-free it wasn’t too hard. Why I’ve been contemplating changing my blogging platform for some time now. While I managed to keep on blogging using my previous provider it was becoming more and more of a hassle. … Continue reading How to migrate your blog from Community Server to Blogger

How to: Invoke events inside your production code using Typemock Isolator

 Using Isolate.Invoke.Event enable event driven unit testing by invoking events on fake or “real” object. If you use events to communicate between parts of your application – it’s a feature you need to know and use. In the last couple of months I have been using it a lot but there is one wall I … Continue reading How to: Invoke events inside your production code using Typemock Isolator