简体   繁体   中英

How do I output coloured text from by unit tests in the R# Unit Test Session window in Visual Studio?

How do I output coloured text from by unit tests in the ReSharper Unit Test Session window in Visual Studio. I am using Resharper VS addin which I think produces the Unit Test Window.

I am using this with nunit and wish to use c# Console.Write to generate coloured text to this window.

It is not possible in my opinion. You write text to this window by using Debug.WriteLine() or Console.WriteLine() .
How do you want to pass information about the color? I gave it two tries:

  • HTML is not parsed
  • The richtext format is not parsed

I have no other idea and I don't think that it is working somehow.

我认为这是不可能的,因为log4net ColoredConsoleAppender的输出在Resharper测试运行器中是黑白的。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM