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