From d09108aadffcdb48ac8400735cc5e6215d749205 Mon Sep 17 00:00:00 2001 From: Anton Firszov Date: Mon, 8 Nov 2021 22:19:44 +0100 Subject: [PATCH] fix test bug in WrapSystemDrawingBitmap_FromBytes_WhenObserved --- tests/ImageSharp.Tests/Image/ImageTests.WrapMemory.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/ImageSharp.Tests/Image/ImageTests.WrapMemory.cs b/tests/ImageSharp.Tests/Image/ImageTests.WrapMemory.cs index dd1f5b701d..ec9e3450f5 100644 --- a/tests/ImageSharp.Tests/Image/ImageTests.WrapMemory.cs +++ b/tests/ImageSharp.Tests/Image/ImageTests.WrapMemory.cs @@ -5,6 +5,7 @@ using System; using System.Buffers; using System.Drawing; using System.Drawing.Imaging; +using System.IO; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using SixLabors.ImageSharp.Advanced; @@ -176,6 +177,11 @@ namespace SixLabors.ImageSharp.Tests Assert.False(memoryManager.IsDisposed); } + if (!Directory.Exists(TestEnvironment.ActualOutputDirectoryFullPath)) + { + Directory.CreateDirectory(TestEnvironment.ActualOutputDirectoryFullPath); + } + string fn = System.IO.Path.Combine( TestEnvironment.ActualOutputDirectoryFullPath, $"{nameof(this.WrapSystemDrawingBitmap_WhenObserved)}.bmp");