Replace Console.WriteLine in NUnit

前端 未结 5 1909
野趣味
野趣味 2020-12-14 14:56

I haven\'t done much with NUnit before, but I just wanted to dump some text to a window in a console type fashion.

e.g. Console.WriteLine("... some infor         


        
5条回答
  •  感动是毒
    2020-12-14 15:42

    In NUnit v3, you can also write to the test results output for debugging with

    TestContext.Out.WriteLine("Message to write to log");
    

提交回复
热议问题