所需积分/C币:10 2018-05-25 13:49:23 3.28MB PDF
收藏 收藏

This book is for software developers who have cursory knowledge of TDD and are looking to gain a thorough understanding of how TDD can benefit them and the applications they produce. Software developers with an intermediate understanding of C# and the .NET Framework and/or a thorough understanding o
Packt BIRMINGHAM- MUMBAI Practical Test-Driven Development using c# 7 Copyright o 2018 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, cxcept in the case of bricf quotations embedded in critical articles or reviews Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information Commissioning Editor: Amarabha Banerjee Acquisition Editor: Shweta Pant Content Development Editor: Aditi gour Technical editor: shweta jadhav Copy Editor: Safis Editing Project Coordinator: Hardik bhind Proofreader: Safis Editing Pratik shirodkar Graphics: Jason monteiro roduction Coordinator: Aparna bhagat First published: February 2018 Production reference: 1090218 Published by Packt Publishing Ltd Livery place 35 Livery street Birmingham B3 2PB. UK ISBN978-1-78839-878-7 Mapt mapt.10 Mapt is an online digital library that gives you full access to over 5,000 books and videos, as well as industry leading tools to help you plan your personal development and advance your career. For more information, please visit our website Why subscribe? Spend less time learning and more time coding with practical eBooks and Videos from over 4, 000 industry professionals Improve your learning with Skill Plans built especially for you e get a free e book or video every month o Mapt is fully searchable Copy and paste, print, and bookmark content PacktPub. com Did you know that Packt offers eBook versions of every book published, with PdfandepubfilesavailableYoucanupgradetotheebookversionatwww.packt Pub. com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at service@packtpub com for more details Atwww.packtpub.comyoucanalsoreadacollectionoffreetechnicalarticlessign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and ebooks Foreword ll be honest when i first looked at the title of this book practical test-Driven Development Using C# 7, i thought do we really need another book outlining the basics of unit testing and TDD? I mean at this point, TDD isn, t really that new, and plenty of authors have written about what TDd is and have given us countless examples of how to score a bowling or a tic-tac-toe game using tdd to drive the creation of the application The problems most developers run into when learning or trying to implement TDD is not understanding what tdd itself is and what"red green refactor means, but how to practically implement it in real-world situations. Most real- world applications are messy and don't conform easily to the usual TDD shoehorn that many well-meaning tdd books and examples try to demonstrate The real difficulty in successfully implementing TDd arises when you try to use it to develop a non-trivial application-an application with databases and multiple layers and external services you need to call As a consultant, I spent a large amount of time teaching teams who were supposedly doing tdd how to actually do tDD. I saw countless examples of teams who would hardcode tests with fake data or call out directly to a database because they didn t really understand what a mock was and how to isolate their tests. Moreover, I found many development teams that understood the basics of TDD, but didn 't understand how to take business requirements and user stories and convert them into working unit tests that they can actually use to develop the system they were trying to create I've never had a difficult time teaching software developers the basics of fdd It's fairly easy to explain how tdd works and how to get started doing it-and there have always been plenty of resources available to teach all that no, what companies paid me the big bucks for was to sit down with their teams and explain all the nuances of tdd. what do you do when you have to mock a class that directly uses the database How do you handle 15 test cases that have different input values but are essentially testing the same thing Where do we start with tdd-which tests do we write first? That's where Practical Test-Driven Development comes into the picture. For the first time ever, all that"real tricky shit, "that I thought only I knew about and was esoteric and complicated to explain in a book, well it's explained--with plenty of examples--right here in the one you are holding When I first cracked open Practical Test-Driven Development, I was amazed Not only did it explain the right concept of what TDd was(a design activity, not a testing one), and give an absolute beginner a step-by-step approach to learning and understanding tdd but it took it far, far from there and showed you how to practically and pragmatically apply the concepts to a real-world, non-trivial application and did it in a way that didn 't try and gloss over the messy stuff Instead, Practical Test-Driven Development plows right into all the nooks and crannies of tdd and tells you exactly the kinds of problem you will encounter and how to get past them Here's the best part--you don ' t even have to know a thing about tdd to get huge value out of this book and become a better tdd practitioner than 90% of software developers who claim they are already doing TDD. Practical Test Driven development is laid out in such a way that it assumes that you don ' t know anything about TDD and shows you step-by-step, example-by-example, everything you need to know to go from complete beginner to expert in a way that i honestly didn 't think was possible until i sat down and read the book myself All in all, I am extremely happy with this book and i have a feeling I'm going to be recommending it as the go-to resources for learning TDD for many years to come every developer should be doing tdd and doing it the right way Therefore, every developer should read this book John sonmez Founder, simple programmer Contributors

试读 127P practical-test-driven-development-c#7
立即下载 低至0.43元/次 身份认证VIP会员低至7折
practical-test-driven-development-c#7 10积分/C币 立即下载

试读结束, 可继续阅读

10积分/C币 立即下载 >