mirror of
https://github.com/ZetaKebab/MpcNET.git
synced 2025-01-14 22:18:43 +00:00
23 lines
601 B
C#
23 lines
601 B
C#
|
using System.Threading.Tasks;
|
|||
|
using Newtonsoft.Json;
|
|||
|
using Xunit;
|
|||
|
using LibMpc;
|
|||
|
using System.Linq;
|
|||
|
|
|||
|
namespace LibMpcTest
|
|||
|
{
|
|||
|
public partial class LibMpcTest
|
|||
|
{
|
|||
|
[Fact]
|
|||
|
public async Task ListPlaylistsTest()
|
|||
|
{
|
|||
|
var response = await Mpc.SendAsync(new Commands.Playlists.Stored.ListPlaylists());
|
|||
|
|
|||
|
TestOutput.WriteLine($"ListPlaylistsTest Result:");
|
|||
|
TestOutput.WriteLine(JsonConvert.SerializeObject(response, Formatting.Indented));
|
|||
|
|
|||
|
Assert.True(response.Response.Body.Count().Equals(3));
|
|||
|
}
|
|||
|
}
|
|||
|
}
|