Test-Driven Development (TDD) is an approach to building applications that dictates that you have test code that you write prior to actually implementing the code that will make the test pass.
Search the web for more information about TDD. We will add more links here soon.