• Test Driven Development


    Recently, I start realize the benefits of TDD, it really could give me a chance to think about how others people gonna use my API, how should I design it.

    So normally, Create a falling test case first(Simulate how user will use the API), then start implement the method to make the test case pass(keep things as simple as possible), after that, refactor the method, improve the internal implementation without changing the external behavior.

    Principle:

    • One logical assertion per test.
    • Keep test code maintainable and Don’t repeat yourself.
    • Test could be independent, could run in any order.
    Assembly Unit Test Assembly
    Namespace Namespace_Test Folder
    Class Class_Test Folder
    Behavior… Test Class…
    Happy Coding Everyday~ 快乐编码,享受生活~
  • 相关阅读:
    Lucas 定理
    C语言II博客作业04
    C语言II博客作业03
    C语言II博客作业02
    C语言II博客作业01
    学期总结
    First project
    C语言I博客作业08
    C语言I博客作业07
    C语言I博客作业06
  • 原文地址:https://www.cnblogs.com/tedzhang/p/3117186.html
Copyright © 2020-2023  润新知