1
0
mirror of https://github.com/ZetaKebab/MpcNET.git synced 2025-07-01 08:47:36 +00:00

Trigger travis to run tests. Sample test implemented.

This commit is contained in:
glucaci
2016-12-13 12:55:24 +01:00
parent d45aff33ee
commit 2880ce2e46
4 changed files with 62 additions and 49 deletions

View File

@ -1,9 +1,9 @@
using LibMpc;
using System;
using System.IO;
using System.Linq;
using System.Net;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Xunit;
using Xunit.Abstractions;
@ -30,6 +30,17 @@ namespace LibMpcTest
}
}
[Fact]
public async Task ListAllTest()
{
var response = await _mpc.SendAsync(new Commands.Reflection.TagTypes());
_output.WriteLine(JsonConvert.SerializeObject(response, Formatting.Indented));
Assert.True(response.Response.Body.Keys.Contains("tagtypes"));
Assert.True(response.Response.Body.Values.Any());
}
public void Dispose()
{
_mpc?.DisconnectAsync().GetAwaiter().GetResult();