| The Art of Unit Testing, Second Edition with Examples in .NET ![]() Roy Osherove MEAP Began: June 2012 Softbound print: August 2013 (est.) | 375 pages ISBN: 9781617290893 |
||||
| Pre-Order options* | ||||
| Order today and start reading The Art of Unit Testing, Second Edition today through MEAP | ||||
| MEAP + Ebook only - $35.99 | ||||
| MEAP + Print book (includes Ebook) when available - $44.99 | ||||
| * For more information, please see the MEAP FAQs page. | ||||
| About MEAP Release Date Estimates | ||||
| Every purchase includes a free ebook of the previous edition! | ||||
Table of Contents, MEAP Chapters & Resources
| Table of Contents | Resources |
|
PART 1: GETTING STARTED
1 The basics of unit testing - FREE 2 A first unit test - AVAILABLE PART 2: CORE TECHNIQUES 3 Using stubs to break dependencies - AVAILABLE 4 Interaction testing using mock objects - AVAILABLE 5 Isolation (mocking) frameworks - AVAILABLE PART 3: THE TEST CODE 6 Digging deeper into isolation frameworks - AVAILABLE 7 Test hierarchies and organization - AVAILABLE 8 The pillars of good unit tests - AVAILABLE PART 4: DESIGN AND PROCESS 9 Integrating unit testing into the organization 10 Working with legacy code APPENDIXES A Design and testability B Extra tools and frameworks |
|
DESCRIPTION
You know you *should* be unit testing. So why aren't you doing it? If you're new to unit testing, if you find unit testing tedious, or if you're just not seeing the payoff for the effort you put into it, keep reading.
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.
WHAT'S INSIDE
- How to create readable, maintainable, trustworthy tests
- Fakes, Stubs, mock objects, and isolation frameworks
- Simple Dependency Injection techniques
- Refactoring techniques for legacy code for testability
- Working with .NET tools, including NUnit, Moq, FakeItEasy and Typemock Isolator
- Differences between proxy based and profiler based isolation (mocking) frameworks
- Database Integration Testing
The examples in the book use C#, but will benefit anyone using a statically typed language such as Java or C++. This book is a revised and expanded second edition of the bestseller The Art of Unit Testing (Manning 2009).
About the Author
Roy Osherove consults and trains teams worldwide on the gentle art of unit testing and test-driven development, and trains team leaders how to lead better at 5whys.com. He tweets at @RoyOsherove and has many videos about unit testing at ArtOfUnitTesting.com. His testing blog is at http://osherove.com/blog.
About the Early Access Version
This Early Access version of The Art of Unit Testing, Second Edition enables you to receive new chapters as they are being written. You can also interact with the authors to ask questions, provide feedback and errata, and help shape the final manuscript on the Author Online
Want to learn More?
Sign up to read more content when it is released and to receive news about this book.



