-
Greetings! I am Torleif Berger, 24 years old, a Seventh-Day Adventist and currently working as a software developer. Otherwise, not much to tell. Although I do juggle a bit...
-
Async Best practices Big Int Blogging Books C# Collatz conjecture Command line Embedded Resources Events Factorization Fibonacci Genders Hashing Java Latex Mac Math Media Men MySql Nerd Null NUnit Palindromes Plugins Primes Pythagorean triplets Python Sieve of Atkin Sieve of Eratosthenes Snippet Sorting Sql Subversion TDD Threading Tools Triangle Numbers Tutorial Unit-Testing Unix WinForms WordPress YouTube
WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.
Tag Archives: TDD
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 shell of a class:
public class Worker
{
public event EventHandler<eventargs> Done;
public void Start()
[...]
The Art of Unit Testing
Have you gone through three years of computer science bachelor degree fun (or anything similar) and pretty much not heard a word about testing? Or have you heard from all your teachers that testing is extremely important, but never learned how to even write one? That has been the case for me. Testing is important, [...]
Project Euler: Just two tiny notes
Just two things I felt like mentioning:
Thing number one
I got tired of the page 2 stuff. So, I swapped all the <!–nextpage–> things with <!–more–> and a header. Which means that the solution will now be on the same page as the problem. (Although not on the index page).
Thing number two
My brother puts his whole [...]


















Test-Driven Development: By Example