Check error code is correct in track shouts command tests

This commit is contained in:
Rikki Tooley 2014-10-12 16:34:55 +01:00
parent 1e6aa46f49
commit 311b98da8b

View File

@ -1,4 +1,5 @@
using IF.Lastfm.Core.Api.Commands.TrackApi;
using IF.Lastfm.Core.Api.Enums;
using IF.Lastfm.Core.Tests.Resources;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Linq;
@ -75,6 +76,7 @@ public async override Task HandleErrorResponse()
var parsed = await _command.HandleResponse(response);
Assert.IsFalse(parsed.Success);
Assert.IsTrue(parsed.Error == LastFmApiError.MissingParameters);
Assert.IsNotNull(parsed.Content);
Assert.IsTrue(!parsed.Content.Any());
}