From 685862b20e046662b0c1572b4d4cbe49faa23c0f Mon Sep 17 00:00:00 2001 From: pekspro Date: Mon, 6 Jul 2020 19:28:18 +0200 Subject: [PATCH] Adds unit test for LoadAsync(Configuration configuration, string path). --- ...eTests.Load_FileSystemPath_UseDefaultConfiguration.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/ImageSharp.Tests/Image/ImageTests.Load_FileSystemPath_UseDefaultConfiguration.cs b/tests/ImageSharp.Tests/Image/ImageTests.Load_FileSystemPath_UseDefaultConfiguration.cs index 534cbedab0..77e5679f64 100644 --- a/tests/ImageSharp.Tests/Image/ImageTests.Load_FileSystemPath_UseDefaultConfiguration.cs +++ b/tests/ImageSharp.Tests/Image/ImageTests.Load_FileSystemPath_UseDefaultConfiguration.cs @@ -49,6 +49,15 @@ namespace SixLabors.ImageSharp.Tests } } + [Fact] + public async Task Path_Agnostic_Configuration_Async() + { + using (var img = await Image.LoadAsync(Configuration.Default, this.Path)) + { + VerifyDecodedImage(img); + } + } + [Fact] public void Path_Decoder_Specific() {