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

32 lines
924 B
C#
Raw Permalink Normal View History

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:");
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:");
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
}
}
}