mirror of
https://github.com/ZetaKebab/MpcNET.git
synced 2025-01-14 22:18:43 +00:00
Get output from test
This commit is contained in:
parent
b3d47b01e6
commit
cd6f877380
@ -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());
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user