0%

Book Description

Unit testing, done right, can mean the diff erence between a failed project and a successful one, between a maintainable code base and a code base that no one dares touch, and between getting home at 2 AM or getting home in time for dinner, even before a release deadline.

The Art of Unit Testing builds on top of what's already been written about this important topic. It guides you step by step from simple tests to tests that are maintainable, readable, and trustworthy. It covers advanced subjects like mocks, stubs, and frameworks such as Typemock Isolator and Rhino Mocks. And you'll learn about advanced test patterns and organization, working with legacy code and even untestable code. The book discusses tools you need when testing databases and other technologies. It's written for .NET developers but others will also benefit from this book.

WHAT'S INSIDE THE BOOK:

  • How to create readable, maintainable, trustworthy tests

  • Stubs, mock objects, and automated frameworks

  • Working with .NET tools, including NUnit, Rhino Mocks and Typemock Isolator

Table of Contents

  1. Copyright
  2. Dedication
  3. Brief Table of Contents
  4. Table of Contents
  5. List of Figures
  6. List of Tables
  7. List of Listings
  8. Early Praise for The Art of Unit Testing
  9. Foreword
  10. Preface
  11. Acknowledgments
  12. About this book
  13. About the cover illustration
  14. Part 1. Getting started
  15. Chapter 1. The basics of unit testing
  16. Chapter 2. A first unit test
  17. Part 2. Core techniques
  18. Chapter 3. Using stubs to break dependencies
  19. Chapter 4. Interaction testing using mock objects
  20. Chapter 5. Isolation (mock object) frameworks
  21. Part 3. The test code
  22. Chapter 6. Test hierarchies and organization
  23. Chapter 7. The pillars of good tests
  24. Part 4. Design and process
  25. Chapter 8. Integrating unit testing into the organization
  26. Chapter 9. Working with legacy code
  27. Appendix A. Design and testability
  28. Appendix B. Extra tools and frameworks
  29. Test Review Guidelines
  30. Index
3.146.221.144