Extensions and helping code for testing with NUnit.