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

Test Driven Development

If you look as a purist at the TDD principles, you'd say that TDD is a technique for developing software based on a set of small development cycles, where each cycle consists of a test case that defines the code requirements and the code that will satisfy these requirements. TDD is also known as red-green-refactor because the lifecycle of a test includes three simple steps:

  • Write the test and the assertions and fail them (red).
  • Implement the code to pass the assertions (green).
  • Refactor the code and test it again.

This type of approach may look strange to you at the beginning, but you will realize that if you write the code that identifies an application requirement before the requirement has been written in code, the ...

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