How to start unit-test old and new code?

前端 未结 5 1941
谎友^
谎友^ 2021-02-05 09:43

I admit that I have almost none experience of unittesting. I did a try with DUnit a while ago but gave up because there was so many dependencies between classes in my applicatio

5条回答
  •  抹茶落季
    2021-02-05 10:13

    When you work with legacy code, mock objetcs are really usefull to build unit tests.

    Take a look at this question regarding Delphi and mocks: What is your favorite Delphi mocking library?

提交回复
热议问题