What to do when FakeItEasy throws System.BadImageException

Today I had a weird problem at work. I’ve been working with a new team and they’ve been writing unit tests using FakeItEasy when they got a strange error message:System.BadImageFormatException: … The signature is incorrect.Now I’ve been using FakeItEasy for some time and I never once saw this strange behavior. Googling for the problem only … Continue reading What to do when FakeItEasy throws System.BadImageException

3 Windows Phone 8.1 features I’m already using

Two days ago I couldn’t take it anymore…There was a new and shiny (dev) release for my Windows Phone and I just had to install it. With trembling hands and a heavy heart I’ve installed Preview for Developers on my HTC 8x and dived right into the dreaded “download –> install –> reboot”  cycle which … Continue reading 3 Windows Phone 8.1 features I’m already using

Faking a long running asynchronous call

A few days ago I needed to make sure that a specific method would only get called once no matter how many times it’s caller is invoked. The simplified code looked something like this:public async Task CallLongOperation(){ var result = await _client.LongWebCall(); if (result.Failed) { // log failure and exit } }I needed to make … Continue reading Faking a long running asynchronous call