Comment this code out, this is about to be refactored in next branch.

This commit is contained in:
Joseph Milazzo 2021-01-25 15:46:05 -06:00
parent 21f6889b99
commit cd67f1ed58

View File

@ -5,16 +5,16 @@ namespace API.Tests.Services
{ {
public class ImageProviderTest public class ImageProviderTest
{ {
[Theory] // [Theory]
[InlineData("v10.cbz", "v10.expected.jpg")] // [InlineData("v10.cbz", "v10.expected.jpg")]
[InlineData("v10 - with folder.cbz", "v10 - with folder.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) // public void GetCoverImageTest(string inputFile, string expectedOutputFile)
{ // {
var testDirectory = Path.Join(Directory.GetCurrentDirectory(), "../../../Services/Test Data/ImageProvider"); // var testDirectory = Path.Join(Directory.GetCurrentDirectory(), "../../../Services/Test Data/ImageProvider");
var expectedBytes = File.ReadAllBytes(Path.Join(testDirectory, expectedOutputFile)); // var expectedBytes = File.ReadAllBytes(Path.Join(testDirectory, expectedOutputFile));
// TODO: Implement this with ScannerService // // TODO: Implement this with ScannerService
//Assert.Equal(expectedBytes, ImageProvider.GetCoverImage(Path.Join(testDirectory, inputFile))); // //Assert.Equal(expectedBytes, ImageProvider.GetCoverImage(Path.Join(testDirectory, inputFile)));
} // }
} }
} }