mirror of
https://github.com/Sarsoo/IF.Lastfm.git
synced 2024-10-17 07:13:09 +01:00
Check error code is correct in track shouts command tests
This commit is contained in:
parent
1e6aa46f49
commit
311b98da8b
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user