Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Practical Test-Driven Development using C# 7

You're reading from   Practical Test-Driven Development using C# 7 Unleash the power of TDD by implementing real world examples under .NET environment and JavaScript

Arrow left icon
Product type Paperback
Published in Feb 2018
Publisher
ISBN-13 9781788398787
Length 442 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
 Callaway Callaway
Author Profile Icon Callaway
Callaway
 Hunt Hunt
Author Profile Icon Hunt
Hunt
Arrow right icon
View More author details
Toc

Table of Contents (21) Chapters Close

Title Page
Packt Upsell
Foreword
Contributors
Preface
1. Why TDD is Important FREE CHAPTER 2. Setting Up the .NET Test Environment 3. Setting Up a JavaScript Environment 4. What to Know Before Getting Started 5. Tabula Rasa – Approaching an Application with TDD in Mind 6. Approaching the Problem 7. Test-Driving C# Applications 8. Abstract Away Problems 9. Testing JavaScript Applications 10. Exploring Integrations 11. Changes in Requirements 12. The Legacy Problem 13. Unraveling a Mess 14. A Better Foot Forward 1. Other Books You May Enjoy Index

When testing is painful


There may come a time when you may encounter some pain. Perhaps you've forced yourself into a corner with your design. Maybe you're unsure what the next, most interesting test would be. Sure, you didn't mean to, but conceivably you could have taken too great a leap between tests. Whatever the case may be, there may come a time when testing becomes painful.

A spike

If you find that you're stuck or you're debating between options on how to proceed, it might be beneficial to run a spike. A spike is a means with which you can investigate an idea. Give yourself a time-limit or some other limiting metric. Once sufficient knowledge or insight has been gained by the exercise, throw away the results. The purpose of the spike is not to walk away with working code. The goal should be to gain understanding and provide a better idea of a path forward.

Assert first

At times, you may know the next test you want to write without being quite sure how to start. If this happens, start with...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime
Visually different images