May 2011
Intermediate to advanced
352 pages
9h 18m
English
Now that you've seen how the TDD methodology can be applied to a project and the tools that Visual Studio provides to implement TDD, let's take a look at the TimeTracker application and see how to test the various layers of the application.
You may already understand, from reading this chapter, that even though the TDD technique is very helpful, it is also verbose and time-consuming; in fact, the common rule of TDD is that you will end up writing 45% code more in the tests than in the production code. So, for instance, if your production code consists of 100 lines, you will probably end up with 245 lines—100 lines of production code + 145 lines of testing code. Of course, this example is purely theoretical.
Read now
Unlock full access