File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
IronSoftware.Drawing/IronSoftware.Drawing.Common.Tests/UnitTests Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -1046,5 +1046,22 @@ public void Load_TiffImage_ShouldNotIncreaseFileSize()
10461046 File . Delete ( outputImagePath ) ;
10471047 }
10481048
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+ }
10491066 }
10501067}
You can’t perform that action at this time.
0 commit comments