5

Test-Driven Development Explained

Test-Driven Development (TDD) is a set of practices on top of unit tests. They alter the way you design your code and you write unit tests. Basically, it is a different approach to writing code than the classical technique of writing code and then testing it after.

It is a cliché to say that TDD is not just doing testing first, but rather than me telling you otherwise, you will decide yourself after going through Chapters 5 and 6.

In this chapter, we will:

  • Go through TDD pillars
  • Implement a software feature following the TDD style
  • Converse the FAQs and criticism around the subject
  • Discuss having TDD with Sintegration testing

By the end of the chapter, you will be able to use TDD to write basic coding tasks ...

Get Pragmatic Test-Driven Development in C# and .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.