21/01/2008

Test Driven Development

A long time from my last post! anyway it's time to learn something interesting about test driven development. I used to design my programs and software in a different way but from now i going to use this stuff in the tutorials. So for .Net i'm using TestDriven.NET a free addond for Visual Studio which let you run your test in a different process inside the IDE. TestDriven.NET use internally NUnit a unit-testing framework for all .Net languages, i recommend you to try this tools to be confortable with. There is a good tutorial about this here. TestDriven.NET and NUnit solve your problems with dynamic testing but when you need to test something like the GUI of a game, a scroll, etc. You need a proper way to do static testing. So i provide you an example of using static testing, a silly application based on the Game class of the XNA framework which test a little HUD. I hope you enjoy with it and discover the new methodology. Stay tuned for the new tutorials, the first one is going to be about the Collada Pipeline, so we'll do an XNA Collada importer and processor.

Static Testing Example (Windows version)