Browse Source

fix test bug in WrapSystemDrawingBitmap_FromBytes_WhenObserved

af/UniformUnmanagedMemoryPoolMemoryAllocator-02-MemoryGuards
Anton Firszov 5 years ago
parent
commit
d09108aadf
  1. 6
      tests/ImageSharp.Tests/Image/ImageTests.WrapMemory.cs

6
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");

Loading…
Cancel
Save