Skip to content

Commit

Permalink
tests: remove image loading when testings parameters guards/exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Gounlaf committed Mar 8, 2024
1 parent 14e9cc6 commit 40761aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Magick.NET.Tests/MagickImageTests/TheShaveMethod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,23 @@ public class TheShaveMethod
[Fact]
public void ShouldThrowExceptionWhenSizeIsNegative()
{
using var image = new MagickImage(Files.Builtin.Logo);
using var image = new MagickImage();

Assert.Throws<ArgumentException>("leftRight", () => image.Shave(-1));
}

[Fact]
public void ShouldThrowExceptionWhenLeftRightIsNegative()
{
using var image = new MagickImage(Files.Builtin.Logo);
using var image = new MagickImage();

Assert.Throws<ArgumentException>("leftRight", () => image.Shave(-1, 40));
}

[Fact]
public void ShouldThrowExceptionWhenTopBottomIsNegative()
{
using var image = new MagickImage(Files.Builtin.Logo);
using var image = new MagickImage();

Assert.Throws<ArgumentException>("topBottom", () => image.Shave(20, -1));
}
Expand Down

0 comments on commit 40761aa

Please sign in to comment.