From cd6f8773801c389facf143a4af88d7388fab317f Mon Sep 17 00:00:00 2001 From: glucaci Date: Fri, 16 Dec 2016 11:58:28 +0100 Subject: [PATCH] Get output from test --- LibMpcTest/LibMpcTest.cs | 6 +++--- LibMpcTest/MpdServerTest.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/LibMpcTest/LibMpcTest.cs b/LibMpcTest/LibMpcTest.cs index 4bab938..447b5bc 100644 --- a/LibMpcTest/LibMpcTest.cs +++ b/LibMpcTest/LibMpcTest.cs @@ -27,11 +27,11 @@ namespace LibMpcTest var connected = Task.Run(async () => await _mpc.ConnectAsync()).Result; if (connected) { - _output.WriteLine("Connected to MPD."); + Console.Out.WriteLine("Connected to MPD."); } else { - _output.WriteLine("Could not connect to MPD."); + Console.Out.WriteLine("Could not connect to MPD."); } } @@ -40,7 +40,7 @@ namespace LibMpcTest { var response = await _mpc.SendAsync(new Commands.Reflection.TagTypes()); - _output.WriteLine(JsonConvert.SerializeObject(response, Formatting.Indented)); + Console.Out.WriteLine(JsonConvert.SerializeObject(response, Formatting.Indented)); Assert.True(response.Response.Body.Keys.Contains("tagtypes")); Assert.True(response.Response.Body.Values.Any()); diff --git a/LibMpcTest/MpdServerTest.cs b/LibMpcTest/MpdServerTest.cs index d0b8b69..07563c1 100644 --- a/LibMpcTest/MpdServerTest.cs +++ b/LibMpcTest/MpdServerTest.cs @@ -27,7 +27,7 @@ namespace LibMpcTest } }; - Console.WriteLine($"Starting Server: {Process.StartInfo.FileName} {Process.StartInfo.Arguments}"); + Console.Out.WriteLine($"Starting Server: {Process.StartInfo.FileName} {Process.StartInfo.Arguments}"); Process.Start(); LogOutput = Process.StandardOutput.ReadToEnd();