Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 614
AnthonyLambert Avatar asked Mar 11 '10 17:03

AnthonyLambert


1 Answers

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.

like image 147
tanascius Avatar answered Sep 29 '22 10:09

tanascius