Should Unit Tests be in their own project in a .Net Solution

前端 未结 5 1634
攒了一身酷
攒了一身酷 2020-12-31 00:52

Should I start a new project for my unit tests? That would mean that I would get two executables correct? Then I am worried about the namespace organization. Would I be able

5条回答
  •  有刺的猬
    2020-12-31 01:53

    Yes. Create a unit test project for each solution project.

    There will only be a single executable. The units tests are held in a DLL.

    Why not append 'UnitTests' to the relevant namespace.

提交回复
热议问题