Skip to content

Commit

Permalink
Added extra unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Nov 18, 2023
1 parent 8ef262f commit 0615461
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/Magick.NET.Tests/MagickImageTests/TheDeskewMethod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ public void ShouldUseAutoCrop()
Threshold = new Percentage(10),
};
using var image = new MagickImage(Files.LetterJPG);
image.Deskew(settings);
var angle = image.Deskew(settings);

Assert.InRange(angle, 7.01, 7.02);
Assert.Equal(480, image.Width);
Assert.Equal(577, image.Height);
}
Expand All @@ -74,6 +75,8 @@ public void ShouldReturnTheAngle()
var angle = image.Deskew(new Percentage(10));

Assert.InRange(angle, 7.01, 7.02);
Assert.Equal(546, image.Width);
Assert.Equal(579, image.Height);
}
}
}

0 comments on commit 0615461

Please sign in to comment.