- 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.
推薦閱讀
- FuelPHP Application Development Blueprints
- Spring 5.0 Microservices(Second Edition)
- Kibana Essentials
- FreeSWITCH 1.6 Cookbook
- C#程序設計(慕課版)
- Python Tools for Visual Studio
- Wireshark Network Security
- C語言程序設計
- PLC編程與調試技術(松下系列)
- Express Web Application Development
- Access 2010數據庫應用技術(第2版)
- Java面向對象程序設計
- Android驅動開發權威指南
- Mastering Unreal Engine 4.X
- HTML5 Canvas核心技術:圖形、動畫與游戲開發