Re: Abort System.Console.ReadLine [c#]
Posted by ~Ray @ 2007-11-09 19:08:19
| | | View: Flat () | | |
Hello everybody. I undergo one problem:I cannot to abort Console. ReadLine from the other thread without termination of the application. Look at the simple example:
When I try to run nunit-console - it does not finish until there is enter typed. Therefore ncover inform also does not finishCan anybody to help me?P. S. If I try to dress thread. end() on Environment. Exit(0) - there are no results of tests and ncover inform. P. P. S. The Helper method label tested static Main method which contain ReadLine. This example for clarity and ReadLine is nessesary.
Maybe you should use the method to insert a custom string with a StreamReader instance instead of waiting the arrange to be entered in the console manually.
I have seen this methods but I compete with Console. In and Console. Out. After you comment I try to play with Console. SetIn and I received a result. convey you. How I solved:
| | | | | | [ADVERTHERE]Related article:
http://forums.topcoder.com/?module=Message&messageID=864120
0 Comments:
No comments have been posted yet!
|