Effective testing styles, patterns, and reliable automation for unit testing, mocking, and integration testing with examples in C#
Vladimir Khorikov
Unit_Testing#
Principles#
Practices#
Patterns#
anti-patterns#
Refactoring#
Radically improve your testing practice and software quality with new testing styles, good patterns, and reliable automation.
Key Features
About The Book
Great testing practices maximize your project quality and delivery speed by identifying bad code early in the development process. Wrong tests will break your code, multiply bugs, and increase time and costs. You owe it to yourself—and your projects—to learn how to do excellent unit testing.
Unit Testing Principles, Patterns and Practices teaches you to design and write tests that target key areas of your code including the domain model. In this clearly written guide, you learn to develop professional-quality tests and test suites and integrate testing throughout the application life cycle. As you adopt a testing mindset, you’ll be amazed at how better tests cause you to write better code.
What You Will Learn
This Book Is Written For
For readers who know the basics of unit testing. Examples are written in C# and can easily be applied to any language.
About the Author
Vladimir Khorikov is an author, blogger, and Microsoft MVP. He has mentored numerous teams on the ins and outs of unit testing.
Table of Contents:
1. The goal of unit testing
2. What is a unit test?
3. The anatomy of a unit test
4. The four pillars of a good unit test
5. Mocks and test fragility
6. Styles of unit testing
7. Refactoring toward valuable unit tests
8. Why integration testing?
9. Mocking best practices
10. Testing the database
11. Unit testing anti-patterns
"This book is an indispensable resource."--Greg Wright, Kainos Software Ltd."Serves as a valuable and humbling encouragement to double down andtest well, something we need no matter how experienced we may be."--Mark Nenadov, BorderConnect"I wish I had this book twenty years ago when I was starting mycareer in software development.--Conor Redmond, Incomm Product Control"This is the kind of book on unit testing I have been waiting on fora long time."--Jeremy Lange, G2
Vladimir Khorikov is the author of Unit Testing Principles, Practices, and Patterns, Pluralsight author, and Microsoft MVP. He has mentored numerous teams on the ins and outs of unit testing.