C# and .NET Core Test Driven Development: Dive into TDD to create flexible, maintainable, and production-ready .NET Core applications
暫譯: C# 與 .NET Core 測試驅動開發:深入 TDD 以創建靈活、可維護且準備投入生產的 .NET Core 應用程式
Ayobami Adewole
- 出版商: Packt Publishing
- 出版日期: 2018-05-18
- 售價: $1,840
- 貴賓價: 9.5 折 $1,748
- 語言: 英文
- 頁數: 300
- 裝訂: Paperback
- ISBN: 1788292480
- ISBN-13: 9781788292481
-
相關分類:
C#、TDD 測試導向開發
海外代購書籍(需單獨結帳)
買這商品的人也買了...
-
$250$225 -
$2,120$2,014 -
$520$364 -
$700Professional Scrum Development with Microsoft Visual Studio 2012 (Paperback)
-
$580$522 -
$450$351 -
$1,620$1,539 -
$403系統分析與設計:敏捷迭代方法(原書第6版)
-
$3,370$3,202 -
$958深度學習
-
$650$507 -
$454JSON 實戰
-
$269大數據技術
-
$398$299 -
$460$391 -
$420$332 -
$599$473 -
$800$680 -
$400$316 -
$780$616 -
$2,024Learning Blazor: Build Single-Page Apps with Webassembly and C# (Paperback)
-
$726FFmpeg 入門詳解 — SDK 二次開發與直播美顏原理及應用
-
$534$507 -
$720$562 -
$880$695
商品描述
Key Features
- Offers practical advice in creating tests to quickly detect and resolve issues when writing portable code
- Uncovers code integration issues that improve code quality by using continuous integration
- Set up and use data-driven unit testing to verify your code over a range on inputs
Book Description
This book enables developers to create robust, production-ready C# 7 and .NET Core applications by establishing a professional test-driven development process. To do this, we will begin by learning the stages of the TDD lifecycle, some best practices, and some anti-patterns.
After covering the basics of TDD in the first chapter, we will get right into creating our ASP.NET Core MVC sample application. We will learn how to write testable code with SOLID principles, and will set up dependency injection for our sample application. Next, we will take a good look at the xUnit testing framework, and learn how to use its attributes and assertions. When we start writing our tests, we will learn what "Fact" vs. "Theory" means in .NET Core unit testing, as well as how to use each. When we get the basic in place, we will learn how to create data-driven unit tests and how to mock dependencies in our code. We will learn the differences between running and debugging our tests on .NET Core on LINUX, versus Windows and Visual Studio. We will wrap up by creating a healthy continuous integration process for our sample application, using GitHub, TeamCity, and Cake. Finally, we will modify the CI build to test, version, and package our sample application.
What you will learn
- Write flexible, maintainable, verifiable code for .NET Core
- Learn how to write testable code using SOLID principles and dependency injections
- Recognize the characteristics of a good unit test
- How to structure and group your unit test
- Use mock objects to handle dependencies
- How to set up a continuous integration process from end-to-end
商品描述(中文翻譯)
**主要特點**
- 提供實用建議,幫助快速檢測和解決撰寫可攜式程式碼時的問題
- 揭示透過持續整合改善程式碼品質的程式碼整合問題
- 設置並使用資料驅動的單元測試,以驗證您的程式碼在各種輸入下的表現
**書籍描述**
本書使開發人員能夠通過建立專業的測試驅動開發(TDD)流程,創建穩健的、可投入生產的 C# 7 和 .NET Core 應用程式。為此,我們將首先學習 TDD 生命週期的各個階段、一些最佳實踐以及一些反模式。
在第一章涵蓋 TDD 基礎知識後,我們將直接開始創建我們的 ASP.NET Core MVC 範例應用程式。我們將學習如何使用 SOLID 原則撰寫可測試的程式碼,並為我們的範例應用程式設置依賴注入。接下來,我們將仔細研究 xUnit 測試框架,並學習如何使用其屬性和斷言。當我們開始撰寫測試時,我們將了解在 .NET Core 單元測試中「Fact」與「Theory」的含義,以及如何使用它們。當基本架構就緒後,我們將學習如何創建資料驅動的單元測試以及如何模擬程式碼中的依賴。我們將學習在 LINUX 上運行和調試 .NET Core 測試與在 Windows 和 Visual Studio 上的區別。我們將通過使用 GitHub、TeamCity 和 Cake 為我們的範例應用程式創建一個健康的持續整合流程來結束本書的內容。最後,我們將修改 CI 構建以測試、版本控制和打包我們的範例應用程式。
**您將學到的內容**
- 為 .NET Core 撰寫靈活、可維護、可驗證的程式碼
- 學習如何使用 SOLID 原則和依賴注入撰寫可測試的程式碼
- 辨識良好單元測試的特徵
- 如何結構和分組您的單元測試
- 使用模擬物件來處理依賴
- 如何從頭到尾設置持續整合流程