O'Reilly logo

Applied WPF 4 in Context by Raffaele Garofalo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

TDD: the TimeTracker Application

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required