Stepping through and debugging code in Unit tests

前端 未结 8 2031
离开以前
离开以前 2020-12-09 01:34

I have not been able to debug or step through unit test.

Here is my sample test code...

using System;
using System.Text;
using System.Collections.Gen         


        
8条回答
  •  借酒劲吻你
    2020-12-09 02:06

    Another solution...

    You need to run and attach the debugger

    Set this line at the first line executed in your test (maybe in the test class constructor)

    System.Diagnostics.Debugger.Launch();
    

    then when debug window open , chose the visual stdio

提交回复
热议问题