mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-20 21:54:25 -04:00
@@ -1,4 +1,3 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using FluentAssertions;
|
||||
using Moq;
|
||||
@@ -19,16 +18,15 @@ namespace NzbDrone.Core.Test.IndexerTests.NewznabTests
|
||||
{
|
||||
Subject.Settings = new NewznabSettings()
|
||||
{
|
||||
BaseUrl = "http://127.0.0.1:1234/",
|
||||
Categories = new [] { 1, 2 },
|
||||
ApiKey = "abcd",
|
||||
BaseUrl = "http://127.0.0.1:1234/",
|
||||
Categories = new[] { 1, 2 },
|
||||
ApiKey = "abcd",
|
||||
};
|
||||
|
||||
_singleAlbumSearchCriteria = new AlbumSearchCriteria
|
||||
{
|
||||
Artist = new Music.Artist { Name = "Alien Ant Farm" },
|
||||
AlbumTitle = "TruANT"
|
||||
|
||||
};
|
||||
|
||||
_capabilities = new NewznabCapabilities();
|
||||
@@ -53,7 +51,7 @@ namespace NzbDrone.Core.Test.IndexerTests.NewznabTests
|
||||
[Test]
|
||||
public void should_search_by_artist_and_album_if_supported()
|
||||
{
|
||||
_capabilities.SupportedAudioSearchParameters = new[] { "q", "artist", "album"};
|
||||
_capabilities.SupportedAudioSearchParameters = new[] { "q", "artist", "album" };
|
||||
|
||||
var results = Subject.GetSearchRequests(_singleAlbumSearchCriteria);
|
||||
results.GetTier(0).Should().HaveCount(1);
|
||||
|
||||
Reference in New Issue
Block a user