Adjusted code to account for folders within directory. Now cover image always gets the first image.

This commit is contained in:
Joseph Milazzo 2021-01-09 14:57:31 -06:00
parent 7bf04dcdac
commit 6b4617bab3
4 changed files with 16 additions and 7 deletions

View file

@ -12,7 +12,7 @@ namespace API.Tests.Services
[Theory]
[InlineData("v10.cbz", "v10.expected.jpg")]
[InlineData("v10 - with folder.cbz", "v10 - with folder.expected.jpg")]
//[InlineData("v10 - nested folder.cbz", "v10 - nested folder.expected.jpg")]
[InlineData("v10 - nested folder.cbz", "v10 - nested folder.expected.jpg")]
public void GetCoverImageTest(string inputFile, string expectedOutputFile)
{
var testDirectory = Path.Join(Directory.GetCurrentDirectory(), "../../../Services/Test Data/ImageProvider");