mirror of
https://github.com/ZetaKebab/MpcNET.git
synced 2025-01-14 22:18:43 +00:00
Mpd config with one audio output for each test.
This commit is contained in:
parent
e2ebbe7e14
commit
b7791ab26a
@ -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("}");
|
||||||
|
@ -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]
|
||||||
|
Loading…
Reference in New Issue
Block a user