- Greetings! I am Torleif Berger, 25 years old, a Seventh-Day Adventist and currently working as a Software Developer. Have a look around c'',)
Author Archives: Torleif
Interlude follow-up
My blog has been a bit dead for a while, so thought I could (hopefully) kick it off again with a little follow-up on my recent Interlude post. I have now been at LifeStyleTV since the middle of February, and … Continue reading
Disappearing color labels in Mac OS X
Had a tiny fight with Mac OS X the other day, like I often do. This time it was color labels. You probably know (if you have used Mac OS X at all) that you can color label your files. … Continue reading
Interlude
Not much is happening at the moment. Well, actually quite a bit is happening. It’s just that I find myself in a rather non-eventful interlude of some sort. Last Friday (January, 29th) I had my last day at SMS Development … Continue reading
How to check for duplicates
Say you have an IEnumerable<t></t> of some sort and you want to check if it contains any duplicates. How do you do that?
Test-Driven Development: By Example
I earlier wrote about the book, The Art of Unit Testing, which I finished a while ago. That book was very good and was focused on how to write good unit tests. It also mentioned Test-Driven Development, TDD, but not … Continue reading
How to test asynchronous events
The other day I had to test that an event was raised after some asynchronous work had been done. And since I currently am a total test newbie, this was a new thing for me. Say we have this simple … Continue reading
Generics and checking for null
When writing C#, in Visual Studio, using generics… have you ever tried checking for null? I have always found that a bit of a hassle. Say we have this method which returns the subject if it is not null, and … Continue reading
















