BIBLIO is the largest independent book marketplace in the world, with over 100 million books.

Skip to content

The Art of Unit Testing: With Examples in C#
Stock photo: cover may vary

The Art of Unit Testing: With Examples in C# Paperback - 2013 - 2nd Edition

by Roy Osherove

Add to wish list

Reader reviews for The Art of Unit Testing: With Examples in C#

From the publisher

Summary

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.

About this Book

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 getting enough 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 unit tests to building complete test sets that are maintainable, readable, and trustworthy. You'll move quickly to more complicated subjects like mocks and stubs, while learning to use isolation (mocking) frameworks like Moq, FakeItEasy, and Typemock Isolator. You'll explore test patterns and organization, refactor code applications, and learn how to test "untestable" code. Along the way, you'll learn about integration testing and techniques for testing with databases.

The examples in the book use C#, but will benefit anyone using a statically typed language such as Java or C++.

Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.

What's Inside

  • Create readable, maintainable, trustworthy tests
  • Fakes, stubs, mock objects, and isolation (mocking) frameworks
  • Simple dependency injection techniques
  • Refactoring legacy code

About the Author

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.

Table of Contents

    PART 1 GETTING STARTED
    1. The basics of unit testing
    2. A first unit test
    3. PART 2 CORE TECHNIQUES
    4. Using stubs to break dependencies
    5. Interaction testing using mock objects
    6. Isolation (mocking) frameworks
    7. Digging deeper into isolation frameworks
    8. PART 3 THE TEST CODE
    9. Test hierarchies and organization
    10. The pillars of good unit tests
    11. PART 4 DESIGN AND PROCESS
    12. Integrating unit testing into the organization
    13. Working with legacy code
    14. Design and testability

Details

  • Title The Art of Unit Testing: With Examples in C#
  • Author Roy Osherove
  • Binding Paperback
  • Edition number 2nd
  • Edition 2
  • Pages 296
  • Volumes 1
  • Language ENG
  • Publisher Manning Publications
  • Publication date 2013-12
  • Illustrated Yes
  • ISBN 9781617290893 / 1617290890
  • Weight 1.12 lbs (0.51 kg)
  • Dimensions 9.25 x 7.38 x 0.7 in (23.50 x 18.75 x 1.78 cm)
  • Category Computers - Languages / Programming

About the author

AUTHOR BIO

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.

More Copies for Sale

The Art of Unit Testing: With Examples in C#

The Art of Unit Testing: With Examples in C#

by Osherove, Roy

  • Used
  • Very good
  • Paperback
Condition
Very good
Binding
Paperback
ISBN 10 / ISBN 13
9781617290893 / 1617290890
Quantity available
6
Seller
Item price
A$1.64
A$16.37 Delivery to USA

Show details

Description:
Paperback. Very Good.
Add to wish list
Item price
A$1.64
A$16.37 Delivery to USA
The Art of Unit Testing: with examples in C#
Stock photo: cover may vary

The Art of Unit Testing: with examples in C#

by Osherove, Roy

  • Used
  • Very good
  • Paperback
Condition
Very good
Binding
Paperback
ISBN 10 / ISBN 13
9781617290893 / 1617290890
Quantity available
1
Seller
Item price
A$4.24
A$5.76 Delivery to USA

Show details

Description:
Manning Publications, 2013-12-07. Paperback. Very Good. 0.8000 in x 9.1000 in x 7.3000 in.
Add to wish list
Item price
A$4.24
A$5.76 Delivery to USA
The Art of Unit Testing: With Examples in C#
Stock photo: cover may vary

The Art of Unit Testing: With Examples in C#

by Roy Osherove

  • Used
  • Acceptable
  • Paperback
Condition
Acceptable
Binding
Paperback
ISBN 10 / ISBN 13
9781617290893 / 1617290890
Quantity available
3
Seller
Item price
A$9.49
Free Delivery to USA

Show details

Description:
Manning Publications Co. LLC, 2013. Paperback. Acceptable. Readable copy. Pages may have considerable notes/highlighting. ~ ThriftBooks: Read More, Spend Less.Dust jacket quality is not guaranteed.
Add to wish list
Item price
A$9.49
Free Delivery to USA
The Art of Unit Testing

The Art of Unit Testing

by Osherove, Roy

  • Used
  • Very good
  • Paperback
Condition
Very good
Binding
Paperback
ISBN 10 / ISBN 13
9781617290893 / 1617290890
Quantity available
3
Seller
Item price
A$9.49
Free Delivery to USA

Show details

Description:
Manning Publications, 2013. Paperback. Very Good. May have limited writing in cover pages. Pages are unmarked. ~ ThriftBooks: Read More, Spend Less.Dust jacket quality is not guaranteed.
Add to wish list
Item price
A$9.49
Free Delivery to USA
The Art of Unit Testing : With Examples in C#

The Art of Unit Testing : With Examples in C#

by Roy Osherove

  • Used
  • Good
  • Paperback
Condition
Good
Binding
Paperback
ISBN 10 / ISBN 13
9781617290893 / 1617290890
Quantity available
2
Seller
Item price
A$9.49
Free Delivery to USA

Show details

Description:
Manning Publications Company, 2013. Paperback. Good. Disclaimer:A copy that has been read, but remains in clean condition. All pages are intact, and the cover is intact. The spine may show signs of wear. Pages can include limited notes and highlighting, and the copy can include previous owner inscriptions. At ThriftBooks, our motto is: Read More, Spend Less.Dust jacket quality is not guaranteed.
Add to wish list
Item price
A$9.49
Free Delivery to USA
The Art of Unit Testing: with examples in C#
Stock photo: cover may vary

The Art of Unit Testing: with examples in C#

by Osherove, Roy

  • Used
  • Paperback
Condition
Used
Edition
Second
Binding
Paperback
ISBN 10 / ISBN 13
9781617290893 / 1617290890
Quantity available
1
Seller
Item price
A$13.50
Free Delivery to USA

Show details

Description:
Manning Publications, 2013-12-10. Second. paperback. Used: Good. 7.38x0.67x9.25. Buy with confidence. Excellent Customer Service & Return policy.
Add to wish list
Item price
A$13.50
Free Delivery to USA
The Art of Unit Testing: with examples in C#
Stock photo: cover may vary

The Art of Unit Testing: with examples in C#

by Osherove, Roy

  • New
  • Paperback
Condition
New
Edition
Second
Binding
Paperback
ISBN 10 / ISBN 13
9781617290893 / 1617290890
Quantity available
1
Seller
Item price
A$42.64
Free Delivery to USA

Show details

Description:
Manning Publications, 2013-12-10. Second. paperback. New. 7.38x0.67x9.25. Buy with confidence. Excellent Customer Service & Return policy.
Add to wish list
Item price
A$42.64
Free Delivery to USA
The Art of Unit Testing: with examples in C#
Stock photo: cover may vary

The Art of Unit Testing: with examples in C#

by Osherove, Roy

  • Used
  • Good
  • Paperback
Condition
Good
Binding
Paperback
ISBN 10 / ISBN 13
9781617290893 / 1617290890
Quantity available
1
Seller
Item price
A$46.30
Free Delivery to USA

Show details

Description:
paperback. Good. Access codes and supplements are not guaranteed with used items. May be an ex-library book.
Add to wish list
Item price
A$46.30
Free Delivery to USA
Art of Unit Testing

Art of Unit Testing

by Roy Osherove

  • New
  • Paperback
Condition
New
Binding
Paperback
ISBN 10 / ISBN 13
9781617290893 / 1617290890
Quantity available
2
Seller
Item price
A$81.67
A$15.26 Delivery to USA

Show details

Description:
Paperback / softback. New. New Book; Fast Shipping from UK; Not signed; Not First Edition; RETAIL SELLING POINTS A step-by-step guide to unit testing Easily create readable, maintainable, trustworthy tests Great for both novice and experienced unit testers  AUDIENCE This book is written for .NET Developers and anyone else wh
Add to wish list
Item price
A$81.67
A$15.26 Delivery to USA
The Art of Unit Testing: with examples in C#
Stock photo: cover may vary

The Art of Unit Testing: with examples in C#

  • New
Condition
New
ISBN 10 / ISBN 13
9781617290893 / 1617290890
Quantity available
5
Seller
Item price
A$90.60
A$21.66 Delivery to USA

Show details

Description:
New/New. Brand New Original US Edition, Perfect Condition. Printed in English. Excellent Quality, Service and customer satisfaction guaranteed!
Add to wish list
Item price
A$90.60
A$21.66 Delivery to USA