Getting started with Fake Objects – Part 1: why fake is better then mock

If you’ve been writing unit tests for a short while you might have noticed that writing good unit tests is hard. The object under test can be hard to create because it require dependencies that you just cannot provide or some complicated environment is needed just to make the test pass. When writing a unit … Continue reading Getting started with Fake Objects – Part 1: why fake is better then mock

How to run NUnit tests created with VS2010 and .NET 4

Today when writing tests for a new project built using VS2010 I had an interesting problem: NUnit would not run my unit tests because the assembly that contained my unit tests was compiled using a newer version of the .NET runtime. There are several solutions to solve this issue from downgrading my project to use … Continue reading How to run NUnit tests created with VS2010 and .NET 4

Real world unit testing presentation

If you the Israel .NET Developers User Group (IDNDUG) and you’d like to learn more about unit testing you can view my presentation here. I talked about unit tests and how to write good unit tests in the first session. I had a lot of fun and I hope that so did my audience. http://docs.google.com/present/embed?id=dd3zxkh_192g6gkd4gc&interval=5Continue reading Real world unit testing presentation

Why you want to be a Polyglot programmer

Polyglot programming defined From Wikipedia: Polyglot (person), someone who aptly and with a high level of fluency uses many languages. The word derives from the Ancient Greek πολύγλωττος (poluglōttos, “'many-tongued, polyglot'”), from πολύς (polus, “many”) + γλῶττα (glōtta, “'tongue, language'”) The term was (probably) coined by Niel Ford in his blog post Polyglot Programming (from … Continue reading Why you want to be a Polyglot programmer

Two (and a half) development links from the past

There are quite a few link blogs out there, like Alvin Ashcraft's Morning Dew, The Morning Brew and Tech Tweets. These sites help to stay on the bleeding edge by providing new links daily. Perhaps I’m getting nostalgic because of the new year, instead of posting links from the last week I’d like to post … Continue reading Two (and a half) development links from the past

How to unit test “un-testable” code (in a nutshell)

Not being able to unit test an essential scenario is one of the reasons developers stop unit testing their code. In fact most of the time when a team decides not to use TDD (Test Driven Development) is because it seems as if they won’t be able to test the production code using unit tests. … Continue reading How to unit test “un-testable” code (in a nutshell)