You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
809 B
30 lines
809 B
using System.Linq;
|
|
using FizzWare.NBuilder;
|
|
using FluentAssertions;
|
|
using NUnit.Framework;
|
|
using NzbDrone.Core.MediaFiles;
|
|
using NzbDrone.Core.Test.Framework;
|
|
using VersOne.Epub.Schema;
|
|
|
|
namespace NzbDrone.Core.Test.MediaFiles.AudioTagServiceFixture
|
|
{
|
|
[TestFixture]
|
|
public class EbookTagServiceFixture : CoreTest<EBookTagService>
|
|
{
|
|
[Test]
|
|
public void should_prefer_isbn13()
|
|
{
|
|
var ids = Builder<EpubMetadataIdentifier>
|
|
.CreateListOfSize(2)
|
|
.TheFirst(1)
|
|
.With(x => x.Identifier = "4087738574")
|
|
.TheNext(1)
|
|
.With(x => x.Identifier = "9781455546176")
|
|
.Build()
|
|
.ToList();
|
|
|
|
Subject.GetIsbn(ids).Should().Be("9781455546176");
|
|
}
|
|
}
|
|
}
|