I want to be able to display a console window at will in my C# unit tests that I can later address in my code to print statements to. is there a system command to support for this? My intention is debug purposes but I don't want to use log4net or some other text/xml file for accomplishing that.
In computer technology, a console can mean different things depending on the context. It usually means a combination of a display monitor and an input device, usually a keyboard and mouse pair, which allows a user to input commands and receive visual output from a computer or computer system.
Retrieves the window handle used by the console associated with the calling process.
Just use Console.WriteLine. Every unit test runner that I've used has captured console output automatically - you don't need an actual console window for that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With