Skip to content

Commit

Permalink
Added unit test for infinite rows per strip in tiff image (#583).
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Mar 1, 2020
1 parent 5dcc908 commit f10ca10
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Magick.NET.Tests/Helpers/Files.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ public static class Coders

public static string PlayerPSD => Root + @"Images/Coders/Player.psd";

public static string RowsPerStripTIF => Root + @"Images/Coders/RowsPerStrip.tif";

public static string TestDDS => Root + @"Images/Coders/Test.dds";

public static string TestMNG => Root + @"Images/Coders/Test.mng";
Expand Down
Binary file not shown.
9 changes: 9 additions & 0 deletions tests/Magick.NET.Tests/Shared/Coders/TheTiffCoder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,15 @@ public void ShouldBeAbleToUseFaxCompression()
}
}

[TestMethod]
public void ShouldBeAbleToReadImageWithInfiniteRowsPerStrip()
{
using (IMagickImage image = new MagickImage(Files.Coders.RowsPerStripTIF))
{
Assert.AreEqual(image.Format, MagickFormat.Tiff);
}
}

private static void TestValue(IIptcProfile profile, IptcTag tag, string expectedValue)
{
var value = profile.GetValue(tag);
Expand Down

0 comments on commit f10ca10

Please sign in to comment.