Run specific unit test in Visual Studio

前端 未结 5 2228
余生分开走
余生分开走 2021-02-11 12:29

I have dozens of unit tests, and I\'d like to fix the code I am working on now, but every time I run the tests it takes over 30 seconds to run every unit test (I think reflectio

5条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-11 12:49

    @Andrew M's answer is awesome, but I wanted to know where the keyboard shotcuts come from. All you have to do is:

    1. Right click your test function name.
    2. Select Run Test or Debug Test.

提交回复
热议问题