1
0
mirror of https://github.com/ZetaKebab/MpcNET.git synced 2024-09-16 05:30:09 +00:00

Mpd config with one audio output for each test.

This commit is contained in:
glucaci 2016-12-20 11:11:10 +01:00
parent e2ebbe7e14
commit b7791ab26a
2 changed files with 6 additions and 6 deletions

View File

@ -28,19 +28,19 @@ namespace LibMpcTest
builder.AppendLine("port \"6600\""); builder.AppendLine("port \"6600\"");
builder.AppendLine("audio_output {"); builder.AppendLine("audio_output {");
builder.AppendLine("type \"null\""); builder.AppendLine("type \"null\"");
builder.AppendLine("name \"Output One\""); builder.AppendLine("name \"Enabled output to be disabled\"");
builder.AppendLine("enabled \"true\""); builder.AppendLine("enabled \"true\"");
builder.AppendLine("mixer_type \"none\""); builder.AppendLine("mixer_type \"none\"");
builder.AppendLine("}"); builder.AppendLine("}");
builder.AppendLine("audio_output {"); builder.AppendLine("audio_output {");
builder.AppendLine("type \"null\""); builder.AppendLine("type \"null\"");
builder.AppendLine("name \"Output Two\""); builder.AppendLine("name \"Disabled output to be enabled\"");
builder.AppendLine("enabled \"false\""); builder.AppendLine("enabled \"false\"");
builder.AppendLine("mixer_type \"none\""); builder.AppendLine("mixer_type \"none\"");
builder.AppendLine("}"); builder.AppendLine("}");
builder.AppendLine("audio_output {"); builder.AppendLine("audio_output {");
builder.AppendLine("type \"null\""); builder.AppendLine("type \"null\"");
builder.AppendLine("name \"Output Three\""); builder.AppendLine("name \"Enabled output to be toggled\"");
builder.AppendLine("enabled \"true\""); builder.AppendLine("enabled \"true\"");
builder.AppendLine("mixer_type \"none\""); builder.AppendLine("mixer_type \"none\"");
builder.AppendLine("}"); builder.AppendLine("}");

View File

@ -12,9 +12,9 @@ namespace LibMpcTest
public async Task DisableOutputTest() public async Task DisableOutputTest()
{ {
var responseOutputs = await Mpc.SendAsync(new Commands.Output.Outputs()); var responseOutputs = await Mpc.SendAsync(new Commands.Output.Outputs());
Assert.True(responseOutputs.Response.Body.Single(output => output.Id.Equals(2)).IsEnabled); Assert.True(responseOutputs.Response.Body.Single(output => output.Id.Equals(0)).IsEnabled);
var response = await Mpc.SendAsync(new Commands.Output.DisableOutput(2)); var response = await Mpc.SendAsync(new Commands.Output.DisableOutput(0));
TestOutput.WriteLine("DisableOutputTest Result:"); TestOutput.WriteLine("DisableOutputTest Result:");
TestOutput.WriteLine(JsonConvert.SerializeObject(response, Formatting.Indented)); TestOutput.WriteLine(JsonConvert.SerializeObject(response, Formatting.Indented));
@ -23,7 +23,7 @@ namespace LibMpcTest
Assert.True(response.Response.State.Status.Equals("OK")); Assert.True(response.Response.State.Status.Equals("OK"));
responseOutputs = await Mpc.SendAsync(new Commands.Output.Outputs()); responseOutputs = await Mpc.SendAsync(new Commands.Output.Outputs());
Assert.False(responseOutputs.Response.Body.Single(output => output.Id.Equals(2)).IsEnabled); Assert.False(responseOutputs.Response.Body.Single(output => output.Id.Equals(0)).IsEnabled);
} }
[Fact] [Fact]