Yesterday I came across this question on StackOverflow:Is there a better way to ignore an exception in C# than putting it up in a try catch block and doing nothing in catch? I find this syntax to be cumbersome. For a code block, can't I simply "tag" it in such a way so as runtime … Continue reading How to ignore thrown exceptions
Author: Dror Helper
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
Book review: C# in Depth, Second Edition
When I first picked up C# in Depth I was expecting to be bored. Although I wanted to read it I thought that most of the book will be introductory level C# programming such as you might expect from a book that teaches a single language. I was wrong! So if you’re looking for a … Continue reading Book review: C# in Depth, Second Edition
Don’t avoid difficult tasks
I was late to work yesterday. Everything was going well – I had my year old daughter, her bag, my bag, my car keys and was ready to leave I got to the door and I couldn’t find the house keys… I knew I had them in my hand a minute ago but for the … Continue reading Don’t avoid difficult tasks
Application to install on a new development machine–revisited
As the year draws to its end it’s time to think of the paths we took in the last year… About 4 months ago I wrote a post titled 14 application to install on a new development machine explaining why I installed each an every application on my new and shiny laptop (T510) I got … Continue reading Application to install on a new development machine–revisited
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
Why you fail with TDD
I’ve been working hard the last six months teaching my teammates about unit testing, code reviews, SOLID, SCRUM and anything else I think we can benefit from. I feel lucky – for the most part they are open minded and accept my ideas and try them without prejudice, working this way has enabled better code … Continue reading Why you fail with TDD
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
