O'Reilly logo

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

The Art of Unit Testing Video Edition

Video Description

"This book is something special. The chapters build on each other to a startling accumulation of depth. Get ready for a treat."
From the Foreword by Robert C. Martin, cleancoder.com

The Art of Unit Testing, Second Edition guides you step by step from writing your first simple tests to developing robust test sets that are maintainable, readable, and trustworthy. You'll master the foundational ideas and quickly move to high-value subjects like mocks, stubs, and isolation, including frameworks such as Moq, FakeItEasy and Typemock Isolator. You'll explore test patterns and organization, working with legacy code, and even "untestable" code. Along the way, you'll learn about integration testing and techniques and tools for testing databases and other technologies.

Inside:
  • Create readable, maintainable, trustworthy tests
  • Fakes, stubs, mock objects, and isolation (mocking) frameworks
  • Simple dependency injection techniques
  • Refactoring legacy code
The examples in the book use C#, but will benefit anyone using a statically typed language such as Java or C++.

Roy Osherove has been coding for over 15 years, and he consults and trains teams worldwide on the gentle art of unit testing and test-driven development. His blog is at ArtOfUnitTesting.com

The best way to learn unit testing from what is now a classic in the field.
Raphael Faria, LG Electronics

Teaches you the philosophy as well as the nuts and bolts for effective unit testing.
Pradeep Chellappan, Microsoft

When my team members ask me how to write unit tests the right way, I simply answer: Get this book!
Alessandro Campeis, Vimar SpA

The single best resource on unit testing.
Kaleb Pederson, Next IT Corporation

NARRATED BY MARK THOMAS

Table of Contents

  1. PART 1 GETTING STARTED
    1. Chapter 1 Section 1 00:09:58
    2. Chapter 1 Section 2 00:06:55
    3. Chapter 1 Section 3 00:07:25
    4. Chapter 1 Section 4 00:06:59
    5. Chapter 1 Section 5 00:07:24
    6. Chapter 1 Section 6 00:05:41
    7. Chapter 2 Section 1 00:08:22
    8. Chapter 2 Section 2 00:06:03
    9. Chapter 2 Section 3 00:08:16
    10. Chapter 2 Section 4 00:09:45
    11. Chapter 2 Section 5 00:05:32
    12. Chapter 2 Section 6 00:06:08
    13. Chapter 2 Section 7 00:08:29
    14. Chapter 2 Section 8 00:09:27
  2. PART 2 CORE TECHNIQUES
    1. Chapter 3 Section 1 00:06:05
    2. Chapter 3 Section 2 00:04:50
    3. Chapter 3 Section 3 00:07:59
    4. Chapter 3 Section 4 00:10:08
    5. Chapter 3 Section 5 00:15:07
    6. Chapter 3 Section 6 00:03:44
    7. Chapter 3 Section 7 00:08:00
    8. Chapter 4 Section 1 00:09:48
    9. Chapter 4 Section 2 00:06:02
    10. Chapter 4 Section 3 00:03:40
    11. Chapter 4 Section 4 00:05:14
    12. Chapter 4 Section 5 00:05:45
    13. Chapter 5 Section 1 00:05:39
    14. Chapter 5 Section 2 00:09:54
    15. Chapter 5 Section 3 00:08:12
    16. Chapter 5 Section 4 00:06:38
    17. Chapter 5 Section 5 00:09:07
    18. Chapter 6 Section 1 00:09:39
    19. Chapter 6 Section 2 00:07:35
    20. Chapter 6 Section 3 00:04:54
    21. Chapter 6 Section 4 00:07:01
    22. Chapter 6 Section 5 00:07:41
  3. PART 3 THE TEST CODE
    1. Chapter 7 Section 1 00:05:38
    2. Chapter 7 Section 2 00:05:07
    3. Chapter 7 Section 3 00:04:59
    4. Chapter 7 Section 4 00:05:33
    5. Chapter 7 Section 5 00:08:00
    6. Chapter 7 Section 6 00:04:46
    7. Chapter 7 Section 7 00:17:52
    8. Chapter 7 Section 8 00:07:13
    9. Chapter 8 Section 1 00:03:12
    10. Chapter 8 Section 2 00:12:28
    11. Chapter 8 Section 3 00:05:22
    12. Chapter 8 Section 4 00:04:12
    13. Chapter 8 Section 5 00:05:30
    14. Chapter 8 Section 6 00:07:09
    15. Chapter 8 Section 7 00:09:42
    16. Chapter 8 Section 8 00:13:55
    17. Chapter 8 Section 9 00:05:54
    18. Chapter 8 Section 10 00:07:14
    19. Chapter 8 Section 11 00:05:25
    20. Chapter 8 Section 12 00:06:14
  4. PART 4 DESIGN AND PROCESS
    1. Chapter 9 Section 1 00:06:22
    2. Chapter 9 Section 2 00:04:34
    3. Chapter 9 Section 3 00:07:48
    4. Chapter 9 Section 4 00:06:02
    5. Chapter 9 Section 5 00:06:56
    6. Chapter 9 Section 6 00:07:41
    7. Chapter 9 Section 7 00:08:42
    8. Chapter 10 Section 1 00:07:10
    9. Chapter 10 Section 2 00:03:06
    10. Chapter 10 Section 3 00:08:47
    11. Chapter 10 Section 4 00:05:01
    12. Chapter 11 Section 1 00:05:39
    13. Chapter 11 Section 2 00:05:17
    14. Chapter 11 Section 3 00:06:21
    15. Chapter 11 Section 4 00:06:21
    16. Chapter 11 Section 5 00:04:29
    17. Chapter 11 Section 6 00:05:08