Reworked the logic for finding comicinfo to ensure that it finds top-level first and stream lined the logic. (#1008)
This commit is contained in:
parent
c3a6e53cbb
commit
fd46cda7c4
3 changed files with 31 additions and 39 deletions
|
@ -257,6 +257,17 @@ namespace API.Tests.Services
|
|||
Assert.Equal("Junya Inoue", comicInfo.Writer);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ShouldHaveComicInfo_TopLevelFileOnly()
|
||||
{
|
||||
var testDirectory = Path.Join(Directory.GetCurrentDirectory(), "../../../Services/Test Data/ArchiveService/ComicInfos");
|
||||
var archive = Path.Join(testDirectory, "ComicInfo_duplicateInfos.zip");
|
||||
|
||||
var comicInfo = _archiveService.GetComicInfo(archive);
|
||||
Assert.NotNull(comicInfo);
|
||||
Assert.Equal("BTOOOM!", comicInfo.Series);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region CanParseComicInfo
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue