1
0
mirror of https://github.com/ZetaKebab/MpcNET.git synced 2025-07-01 08:47:36 +00:00

Use only one Client and one Server for all Tests. Output tests.

This commit is contained in:
glucaci
2016-12-20 10:46:40 +01:00
parent 8c3dbecd71
commit 918dc5141a
7 changed files with 164 additions and 79 deletions

View File

@ -26,8 +26,8 @@ namespace LibMpc
public string FormatResponse(IList<KeyValuePair<string, string>> response)
{
// TODO:
return response.ToString();
// Response should be empty.
return string.Join(", ", response);
}
}
@ -47,8 +47,8 @@ namespace LibMpc
public string FormatResponse(IList<KeyValuePair<string, string>> response)
{
// TODO:
return response.ToString();
// Response should be empty.
return string.Join(", ", response);
}
}
@ -69,7 +69,7 @@ namespace LibMpc
{
var outputId = int.Parse(response[i].Value);
var outputName = response[i + 1].Value;
var outputEnabled = bool.Parse(response[i + 2].Value);
var outputEnabled = response[i + 2].Value == "1";
result.Add(new MpdOutput(outputId, outputName, outputEnabled));
}