2017-04-12 10:11:27 +00:00
|
|
|
namespace MpcNET.Test
|
2017-04-12 09:21:29 +00:00
|
|
|
{
|
2018-05-18 13:14:20 +00:00
|
|
|
using System.Linq;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
|
|
using MpcNET.Tags;
|
|
|
|
|
2017-04-12 09:21:29 +00:00
|
|
|
public partial class LibMpcTest
|
|
|
|
{
|
|
|
|
[TestMethod]
|
|
|
|
public async Task ListAllTest()
|
|
|
|
{
|
2018-09-04 17:45:21 +00:00
|
|
|
var response = await Mpc.SendAsync(new Commands.Database.ListAllCommand());
|
2017-04-12 09:21:29 +00:00
|
|
|
|
|
|
|
TestOutput.WriteLine("ListAllTest Result:");
|
2017-04-13 09:25:19 +00:00
|
|
|
TestOutput.WriteLine(response);
|
2017-04-12 09:21:29 +00:00
|
|
|
|
2018-05-18 13:14:20 +00:00
|
|
|
Assert.IsTrue(response.Response.Content.Count().Equals(7));
|
2017-04-12 09:21:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[TestMethod]
|
|
|
|
public async Task FindGenreTest()
|
|
|
|
{
|
2018-09-04 17:45:21 +00:00
|
|
|
var response = await Mpc.SendAsync(new Commands.Database.FindCommand(MpdTags.Genre, "soundfx"));
|
2017-04-12 09:21:29 +00:00
|
|
|
|
|
|
|
TestOutput.WriteLine("FindGenreTest Result:");
|
2017-04-13 09:25:19 +00:00
|
|
|
TestOutput.WriteLine(response);
|
2017-04-12 09:21:29 +00:00
|
|
|
|
2018-05-18 13:14:20 +00:00
|
|
|
Assert.IsTrue(response.Response.Content.Count().Equals(7));
|
2017-04-12 09:21:29 +00:00
|
|
|
}
|
|
|
|
}
|
2016-12-20 09:46:40 +00:00
|
|
|
}
|