mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-24 22:35:39 -04:00
New: Readarr 0.1
This commit is contained in:
@@ -14,12 +14,12 @@ namespace NzbDrone.Core.Test.IndexerSearchTests
|
||||
[TestFixture]
|
||||
public class ArtistSearchServiceFixture : CoreTest<ArtistSearchService>
|
||||
{
|
||||
private Artist _artist;
|
||||
private Author _artist;
|
||||
|
||||
[SetUp]
|
||||
public void Setup()
|
||||
{
|
||||
_artist = new Artist();
|
||||
_artist = new Author();
|
||||
|
||||
Mocker.GetMock<IArtistService>()
|
||||
.Setup(s => s.GetArtist(It.IsAny<int>()))
|
||||
@@ -37,17 +37,17 @@ namespace NzbDrone.Core.Test.IndexerSearchTests
|
||||
[Test]
|
||||
public void should_only_include_monitored_albums()
|
||||
{
|
||||
_artist.Albums = new List<Album>
|
||||
_artist.Books = new List<Book>
|
||||
{
|
||||
new Album { Monitored = false },
|
||||
new Album { Monitored = true }
|
||||
new Book { Monitored = false },
|
||||
new Book { Monitored = true }
|
||||
};
|
||||
|
||||
Subject.Execute(new ArtistSearchCommand { ArtistId = _artist.Id, Trigger = CommandTrigger.Manual });
|
||||
Subject.Execute(new ArtistSearchCommand { AuthorId = _artist.Id, Trigger = CommandTrigger.Manual });
|
||||
|
||||
Mocker.GetMock<ISearchForNzb>()
|
||||
.Verify(v => v.ArtistSearch(_artist.Id, false, true, false),
|
||||
Times.Exactly(_artist.Albums.Value.Count(s => s.Monitored)));
|
||||
Times.Exactly(_artist.Books.Value.Count(s => s.Monitored)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace NzbDrone.Core.Test.IndexerSearchTests
|
||||
[TestCase("방탄소년단", "방탄소년단")]
|
||||
public void should_replace_some_special_characters_artist(string artist, string expected)
|
||||
{
|
||||
Subject.Artist = new Artist { Name = artist };
|
||||
Subject.Artist = new Author { Name = artist };
|
||||
Subject.ArtistQuery.Should().Be(expected);
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace NzbDrone.Core.Test.IndexerSearchTests
|
||||
[TestCase("Sad Clowns & Hillbillies", "Sad+Clowns+Hillbillies")]
|
||||
[TestCase("¿Quién sabe?", "Quien+sabe")]
|
||||
[TestCase("Seal the Deal & Let’s Boogie", "Seal+the+Deal+Lets+Boogie")]
|
||||
[TestCase("Section.80", "Section80")]
|
||||
[TestCase("Section.80", "Section+80")]
|
||||
public void should_replace_some_special_characters(string album, string expected)
|
||||
{
|
||||
Subject.AlbumTitle = album;
|
||||
|
||||
Reference in New Issue
Block a user