Skip to content

Commit

Permalink
Fixing UnitTest build in .NET Framework 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
koszeggy committed Feb 6, 2022
1 parent f20ef1b commit ccdb5d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions KGySoft.Drawing.UnitTest/UnitTests/Imaging/GifEncoderTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ public void ApngToGifTest(string dir, bool allowDelta, bool prequantize)
{
IEnumerable<IReadableBitmapData> FramesIterator()
{
foreach (string file in Directory.EnumerateFiles(dir, "*.png"))
foreach (string file in Directory.GetFiles(dir, "*.png"))
{
using Bitmap bmp = new Bitmap(file);
using IReadableBitmapData bitmapData = bmp.GetReadableBitmapData();
Expand Down Expand Up @@ -743,9 +743,9 @@ public void BeginEncodeAnimationTest(int cancelAfter, bool? reportOverallProgres
public void EncodeAnimationHighColorFromFile(string? quantizer, byte tolerance)
{
//using var bmp = new Bitmap(@"D:\Dokumentumok\Képek\Formats\GifHighColor_Anim.gif");
using var bmp = new Bitmap(@"D:\Dokumentumok\Képek\Formats\GifTrueColor_Anim.gif");
//using var bmp = new Bitmap(@"D:\Dokumentumok\Képek\Formats\GifTrueColor_Anim.gif");
//using var bmp = new Bitmap(@"D:\Dokumentumok\Képek\Formats\gif4bit_anim.gif");
//using var bmp = new Bitmap(@"..\..\..\..\KGySoft.Drawing\Help\Images\GifAnimationTrueColor.gif");
using var bmp = new Bitmap(@"..\..\..\..\KGySoft.Drawing\Help\Images\GifAnimationTrueColor.gif");
Bitmap[] frames = bmp.ExtractBitmaps();

IEnumerable<IReadableBitmapData> FramesIterator()
Expand Down

0 comments on commit ccdb5d7

Please sign in to comment.