We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e127c4 commit 3653403Copy full SHA for 3653403
1 file changed
IronSoftware.Drawing/IronSoftware.Drawing.Common.Tests/UnitTests/AnyBitmapFunctionality.cs
@@ -1046,5 +1046,22 @@ public void Load_TiffImage_ShouldNotIncreaseFileSize()
1046
File.Delete(outputImagePath);
1047
}
1048
1049
+ [Theory]
1050
+ [InlineData("DW-26 MultiPageTif120Input.tiff")]
1051
+ [InlineData("google_large_1500dpi.bmp")]
1052
+ public void DW_34_ShouldNotThrowOutOfMemory(string filename)
1053
+ {
1054
+ string imagePath = GetRelativeFilePath(filename);
1055
+
1056
+ List<AnyBitmap> images = new List<AnyBitmap>();
1057
+ for (int i = 0; i < 50; i++)
1058
1059
+ var bitmap = new AnyBitmap(imagePath);
1060
+ images.Add(bitmap);
1061
+ bitmap.IsImageLoaded().Should().BeFalse();
1062
+ }
1063
1064
+ images.ForEach(bitmap => bitmap.Dispose());
1065
1066
1067
0 commit comments