mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 22:23:29 -07:00
Write line to context instead of console
This commit is contained in:
parent
6dcfd74a16
commit
48038bd194
1 changed files with 3 additions and 2 deletions
|
@ -40,9 +40,10 @@ namespace CalculatorUITestFramework
|
|||
|
||||
this.windowsDriverService.OutputDataReceived += new DataReceivedEventHandler((sender, e) =>
|
||||
{
|
||||
if (!String.IsNullOrEmpty(e.Data))
|
||||
var outputData = e.Data?.Replace("\0", string.Empty);
|
||||
if (!String.IsNullOrEmpty(outputData))
|
||||
{
|
||||
Console.WriteLine(e.Data);
|
||||
context.WriteLine(outputData);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue