mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +02:00
[Thumbnail providers] Cover errors and edge cases (#23947)
* [Thumbnail providers] Cover errors and edge cases * Add TODO comment * Fix tests
This commit is contained in:
@@ -22,7 +22,7 @@ namespace PdfThumbnailProviderUnitTests
|
||||
public void GetThumbnailValidStreamPDF()
|
||||
{
|
||||
// Act
|
||||
var filePath = "HelperFiles/sample.pdf";
|
||||
var filePath = System.IO.Path.GetFullPath("HelperFiles/sample.pdf");
|
||||
|
||||
PdfThumbnailProvider provider = new PdfThumbnailProvider(filePath);
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace PdfThumbnailProviderUnitTests
|
||||
public void GetThumbnailInValidSizePDF()
|
||||
{
|
||||
// Act
|
||||
var filePath = "HelperFiles/sample.pdf";
|
||||
var filePath = System.IO.Path.GetFullPath("HelperFiles/sample.pdf");
|
||||
|
||||
PdfThumbnailProvider provider = new PdfThumbnailProvider(filePath);
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace PdfThumbnailProviderUnitTests
|
||||
public void GetThumbnailToBigPDF()
|
||||
{
|
||||
// Act
|
||||
var filePath = "HelperFiles/sample.pdf";
|
||||
var filePath = System.IO.Path.GetFullPath("HelperFiles/sample.pdf");
|
||||
|
||||
PdfThumbnailProvider provider = new PdfThumbnailProvider(filePath);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user