Skip to Content
Pragmatic Test-Driven Development in C# and .NET
book

Pragmatic Test-Driven Development in C# and .NET

by Adam Tibi
September 2022
Intermediate to advanced
372 pages
7h 56m
English
Packt Publishing

Overview

Test-driven development (TDD) offers a systematic way to write better, cleaner code, and this book, "Pragmatic Test-Driven Development in C# and .NET," serves as your practical guide to mastering it. You will learn how to implement TDD using familiar tools like Visual Studio and frameworks such as ASP.NET Core and Entity Framework in genuine software scenarios, from foundational concepts to advanced strategies.

What this Book will help me do

  • Understand and effectively implement unit tests using xUnit and dependency injection.
  • Master the use of test doubles and mocking with frameworks such as NSubstitute.
  • Build robust TDD-based .NET applications incorporating domain-driven design and SOLID principles.
  • Combine TDD with modern development practices, including working with databases, APIs, and CI/CD pipelines.
  • Develop the leadership and technical advocacy skills needed to encourage TDD adoption within your team or organization.

Author(s)

Adam Tibi, a seasoned software engineer with years of experience in the .NET ecosystem, is passionate about sharing his knowledge of practical software development methodologies. With hands-on expertise in TDD and domain-driven design, he aims to break down complex concepts into actionable strategies for developers. Adam enjoys teaching and works to inspire confidence and understanding in his readers.

Who is it for?

This book is designed for mid to senior-level .NET developers looking to implement TDD as part of their toolkit. It assumes familiarity with object-oriented programming and the basics of C#, but does not require prior experience with TDD. Ideal for developers aiming to improve code quality via unit testing, this book also serves as a guide for those advocating for TDD adoption within their organizations.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

High-Performance Programming in C# and .NET

High-Performance Programming in C# and .NET

Jason Alls

Publisher Resources

ISBN: 9781803230191