Mads

Home|Mads Toustrup

About Mads Toustrup

This author has not yet filled in any details.
So far Mads Toustrup has created 51 blog entries.

The ScriptCs 101

C# is an awesome language. In this post I’ll write about C# and scripting. To get you into the right context, I’ll kick-off with my personal language journey, just to set the scene, and then I’ll introduce ScriptCs. Introduction I initially came on to C# back in 2005, when C# 2.0 was the latest.

Warm Crocodile Developer Conference 2015

Disclaimer: This is not an Aprils fool. Yesterday I had the pleasure of being announced as speaker for the Warm Crocodile Developer Conference 2015 in Copenhagen. This will be my first major speaker appearance, and I’m very exited and pleased to be given this opportunity. The session will cover some general unit testing approaches, and specifically

Warm Croc Conference – Debriefing

So for the last two days, I had the pleasure of being an attendee at Warm Crocodile Developers Conference. It has indeed been two amazing days. There were a lot new impressions and new friends. In my last post I outlined my expectations to the conference. In this blog post I’ll provide an overview of my

Warm Croc Conference – Expectations

I’ve been so fortunate to receive a ticket for the Warm Crocodile Developer Conference in Copenhagen from my employer d60. The conference is set on January 15th and 16th. The conference is probably the most attractive conference on Danish soil, with respect to the line-up of speakers. To name a few, Scott Hanselman, Udi Dahan, and Greg Young. In this

Assert.Throws<> Over ExpectedException

Writing unit tests that expects a given type of exception under given circumstances is essential for any test suite. Although it is useful to use the correct assertion types when testing for exceptions. In this post I will provide some guidance on why to use Assert.Throws<>() instead of ExpectedException. Using the ExpectedException: In

NUnit Support for AutoFixture

For a more general introduction to AutoFixture, see my previous post. For a long time it has been an xUnit exclusive to utilize AutoData in your test suites. The extensibility model of NUnit, made the migration to NUnit cumbersome, to say the least. Recently, Gert Jansen van Rensburg, made the first serious attempt to solve this. Having followed his battles on GitHub,

Easy Property Notification Verification in MVVM

Currently I’m doing a lot of WPF, we’re profound users of the MVVM pattern. I therefore often find myself writing a lot of unit tests for viewmodels. A, or maybe the, key feature of the MVVM pattern is the property binding between the view and the viewmodel. Once assigned a value to a property, the viewmodel notifies

Continuous Integration with GitHub, TeamCity, Azure Websites and IIS7

The CI objective is to continuously and frequently incorporate changes to the codebase into a centralized build process which may include the automated running of tests, analysis of the code and deployment to target environment(s). Pivotal to this is the version control system as this should be the source of truth for the code

Verify Your Guards With AutoFixture

An important tool in leveraging loosely-coupled components is using dependency injection (DI). A common and wide-spread approach to DI is using constructor injection. Basically, when using constructor injection, all dependencies are injected as parameters through your constructors. This allows strong-typed dependency declarations. It is good practice to follow the Guard Assertion pattern or Guard Clause pattern, like

Danish Developer Conference 2013

The upcoming Danish Developer Conference 2013 (DDC) is my first conference this year. I attended DDC last year, which was the first time that Microsoft Denmark arranged. I thought it was a great success, and delighted to see that Microsoft will setup another round of DDC. This year my employer, d60, will be coffee sponsor and will