mirror of
https://github.com/Sarsoo/IF.Lastfm.git
synced 2024-10-17 07:13:09 +01:00
Fix the test I broke in GetAlbumTopTagsCommandTest
This commit is contained in:
parent
dca94d8ebc
commit
4a7a3c11b6
@ -2,16 +2,12 @@
|
|||||||
using IF.Lastfm.Core.Api.Enums;
|
using IF.Lastfm.Core.Api.Enums;
|
||||||
using IF.Lastfm.Core.Tests.Resources;
|
using IF.Lastfm.Core.Tests.Resources;
|
||||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace IF.Lastfm.Core.Tests.Api.Commands.AlbumApi
|
namespace IF.Lastfm.Core.Tests.Api.Commands.AlbumApi
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
[TestClass]
|
[TestClass]
|
||||||
public class GetAlbumTopTagsCommandTest : CommandTestsBase
|
public class GetAlbumTopTagsCommandTest : CommandTestsBase
|
||||||
{
|
{
|
||||||
@ -31,10 +27,9 @@ public GetAlbumTopTagsCommandTest()
|
|||||||
[TestMethod]
|
[TestMethod]
|
||||||
public void Constructor()
|
public void Constructor()
|
||||||
{
|
{
|
||||||
Assert.AreEqual(_command.Method, "album.gettoptags");
|
Assert.AreEqual(_command.Method, "album.getTopTags");
|
||||||
Assert.AreEqual(_command.Parameters["album"], "Believe");
|
Assert.AreEqual(_command.Parameters["album"], "Believe");
|
||||||
Assert.AreEqual(_command.Parameters["artist"], "Cher");
|
Assert.AreEqual(_command.Parameters["artist"], "Cher");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
@ -49,7 +44,6 @@ public async Task HandleSuccessResponse()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
public async Task HandleEmptyResponse()
|
public async Task HandleEmptyResponse()
|
||||||
{
|
{
|
||||||
@ -75,6 +69,4 @@ public async Task HandleErrorResponse()
|
|||||||
Assert.IsTrue(!parsed.Content.Any());
|
Assert.IsTrue(!parsed.Content.Any());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user