mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-17 21:25:39 -04:00
Method, Variable, Class Renames in Readarr.Core
Co-Authored-By: ta264 <ta264@users.noreply.github.com>
This commit is contained in:
@@ -2,8 +2,8 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using FluentAssertions;
|
||||
using NUnit.Framework;
|
||||
using NzbDrone.Core.Books;
|
||||
using NzbDrone.Core.MetadataSource;
|
||||
using NzbDrone.Core.Music;
|
||||
using NzbDrone.Core.Test.Framework;
|
||||
|
||||
namespace NzbDrone.Core.Test.MetadataSource
|
||||
@@ -30,7 +30,7 @@ namespace NzbDrone.Core.Test.MetadataSource
|
||||
WithSeries("Talking Dead");
|
||||
WithSeries("The Walking Dead");
|
||||
|
||||
_artist.Sort(new SearchArtistComparer("the walking dead"));
|
||||
_artist.Sort(new SearchAuthorComparer("the walking dead"));
|
||||
|
||||
_artist.First().Name.Should().Be("The Walking Dead");
|
||||
}
|
||||
@@ -41,7 +41,7 @@ namespace NzbDrone.Core.Test.MetadataSource
|
||||
WithSeries("Talking Dead");
|
||||
WithSeries("The Walking Dead");
|
||||
|
||||
_artist.Sort(new SearchArtistComparer("walking dead"));
|
||||
_artist.Sort(new SearchAuthorComparer("walking dead"));
|
||||
|
||||
_artist.First().Name.Should().Be("The Walking Dead");
|
||||
}
|
||||
@@ -52,7 +52,7 @@ namespace NzbDrone.Core.Test.MetadataSource
|
||||
WithSeries("The Blacklist");
|
||||
WithSeries("Blacklist");
|
||||
|
||||
_artist.Sort(new SearchArtistComparer("blacklist"));
|
||||
_artist.Sort(new SearchAuthorComparer("blacklist"));
|
||||
|
||||
_artist.First().Name.Should().Be("Blacklist");
|
||||
}
|
||||
@@ -63,7 +63,7 @@ namespace NzbDrone.Core.Test.MetadataSource
|
||||
WithSeries("Blacklist");
|
||||
WithSeries("The Blacklist");
|
||||
|
||||
_artist.Sort(new SearchArtistComparer("the blacklist"));
|
||||
_artist.Sort(new SearchAuthorComparer("the blacklist"));
|
||||
|
||||
_artist.First().Name.Should().Be("The Blacklist");
|
||||
}
|
||||
|
||||
@@ -3,9 +3,9 @@ using System.Collections.Generic;
|
||||
using FluentAssertions;
|
||||
using Moq;
|
||||
using NUnit.Framework;
|
||||
using NzbDrone.Core.Books;
|
||||
using NzbDrone.Core.Exceptions;
|
||||
using NzbDrone.Core.MetadataSource.SkyHook;
|
||||
using NzbDrone.Core.Music;
|
||||
using NzbDrone.Core.Profiles.Metadata;
|
||||
using NzbDrone.Core.Test.Framework;
|
||||
|
||||
@@ -56,20 +56,20 @@ namespace NzbDrone.Core.Test.MetadataSource.SkyHook
|
||||
[Test]
|
||||
public void getting_details_of_invalid_artist()
|
||||
{
|
||||
Assert.Throws<ArtistNotFoundException>(() => Subject.GetAuthorInfo("66c66aaa-6e2f-4930-8610-912e24c63ed1"));
|
||||
Assert.Throws<AuthorNotFoundException>(() => Subject.GetAuthorInfo("66c66aaa-6e2f-4930-8610-912e24c63ed1"));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void getting_details_of_invalid_album()
|
||||
{
|
||||
Assert.Throws<AlbumNotFoundException>(() => Subject.GetBookInfo("66c66aaa-6e2f-4930-8610-912e24c63ed1"));
|
||||
Assert.Throws<BookNotFoundException>(() => Subject.GetBookInfo("66c66aaa-6e2f-4930-8610-912e24c63ed1"));
|
||||
}
|
||||
|
||||
private void ValidateAuthor(Author author)
|
||||
{
|
||||
author.Should().NotBeNull();
|
||||
author.Name.Should().NotBeNullOrWhiteSpace();
|
||||
author.CleanName.Should().Be(Parser.Parser.CleanArtistName(author.Name));
|
||||
author.CleanName.Should().Be(Parser.Parser.CleanAuthorName(author.Name));
|
||||
author.SortName.Should().Be(Parser.Parser.NormalizeTitle(author.Name));
|
||||
author.Metadata.Value.TitleSlug.Should().NotBeNullOrWhiteSpace();
|
||||
author.Metadata.Value.Overview.Should().NotBeNullOrWhiteSpace();
|
||||
|
||||
@@ -3,8 +3,8 @@ using System.Collections.Generic;
|
||||
using FluentAssertions;
|
||||
using Moq;
|
||||
using NUnit.Framework;
|
||||
using NzbDrone.Core.Books;
|
||||
using NzbDrone.Core.MetadataSource.SkyHook;
|
||||
using NzbDrone.Core.Music;
|
||||
using NzbDrone.Core.Profiles.Metadata;
|
||||
using NzbDrone.Core.Test.Framework;
|
||||
using NzbDrone.Test.Common;
|
||||
|
||||
Reference in New Issue
Block a user