- C# and .NET Core Test Driven Development
- Ayobami Adewole
- 129字
- 2021-06-25 22:00:30
Writing the code
After the tests have been written, you should write enough code to implement the feature for the tests you wrote earlier. Bear in mind that the goal here is to try to employ good practices and standards in writing the code to make the test pass. All the approaches that lead to writing bad or stinking code should be avoided.
Try to avoid test overfitting, a situation where you write code just to make the tests pass. Instead you should write the code to implement the feature or user requirements fully, so as to ensure that every possible use case of the feature is covered to avoid situations where the code has different behaviors when executed by the test cases and when in production.
推薦閱讀
- Learn TypeScript 3 by Building Web Applications
- iOS 9 Game Development Essentials
- Maven Build Customization
- Python從菜鳥到高手(第2版)
- Python自動化運維快速入門
- TestNG Beginner's Guide
- 區塊鏈:以太坊DApp開發實戰
- TypeScript實戰指南
- Gradle for Android
- Spring快速入門
- Getting Started with LLVM Core Libraries
- Access 2010中文版項目教程
- Visual Studio 2015高級編程(第6版)
- Couchbase Essentials
- Orleans:構建高性能分布式Actor服務