Write line to context instead of console

This commit is contained in:
Pepe Rivera 2019-05-24 15:39:52 -07:00 committed by GitHub
commit 48038bd194
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}
});