- 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.
推薦閱讀
- ASP.NET Web API:Build RESTful web applications and services on the .NET framework
- Python 3.7網絡爬蟲快速入門
- JavaScript+jQuery開發實戰
- Blockly創意趣味編程
- 零基礎學Python數據分析(升級版)
- MongoDB權威指南(第3版)
- R Deep Learning Cookbook
- Mastering JavaScript Design Patterns(Second Edition)
- NetBeans IDE 8 Cookbook
- Java程序設計案例教程
- Geospatial Development By Example with Python
- 精通MySQL 8(視頻教學版)
- Python青少年趣味編程
- Flask開發Web搜索引擎入門與實戰
- 透視C#核心技術:系統架構及移動端開發