From 1b009bed9d1ecb7f0cf29653e52c96997adb10e4 Mon Sep 17 00:00:00 2001 From: pekspro Date: Sat, 4 Jul 2020 19:23:27 +0200 Subject: [PATCH] Adds unit test for LoadAsync(Configuration configuration, string path, IImageDecoder decoder). --- ...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 cd0879931..534cbedab 100644 --- a/tests/ImageSharp.Tests/Image/ImageTests.Load_FileSystemPath_UseDefaultConfiguration.cs +++ b/tests/ImageSharp.Tests/Image/ImageTests.Load_FileSystemPath_UseDefaultConfiguration.cs @@ -67,6 +67,15 @@ namespace SixLabors.ImageSharp.Tests } } + [Fact] + public async Task Path_Decoder_Agnostic_Async() + { + using (var img = await Image.LoadAsync(Configuration.Default, this.Path, new BmpDecoder())) + { + VerifyDecodedImage(img); + } + } + [Fact] public void Path_OutFormat_Specific() {