Skip to content

Commit

Permalink
Updated unit tests due to changes in ImageMagick.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Dec 16, 2024
1 parent 887cae8 commit ae37960
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions tests/Magick.NET.Tests/MagickImageTests/TheConstructor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,9 @@ public void ShouldUseBaseDirectoryOfCurrentAppDomainWhenFileNameStartsWithTilde(
[Fact]
public void ShouldNotUseBaseDirectoryOfCurrentAppDomainWhenFileNameIsTilde()
{
var exception = Assert.Throws<MagickBlobErrorException>(() => new MagickImage("~"));
var exception = Assert.Throws<MagickMissingDelegateErrorException>(() => new MagickImage("~"));

Assert.Contains("error/blob.c/OpenBlob", exception.Message);
Assert.Contains("~", exception.Message);
Assert.Contains("error/constitute.c/ReadImage", exception.Message);
}
}

Expand Down
5 changes: 2 additions & 3 deletions tests/Magick.NET.Tests/MagickImageTests/TheReadMethod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -479,9 +479,8 @@ public void ShouldNotUseBaseDirectoryOfCurrentAppDomainWhenFileNameIsTilde()
{
using var image = new MagickImage();

var exception = Assert.Throws<MagickBlobErrorException>(() => image.Read("~"));
Assert.Contains("~", exception.Message);
Assert.Contains("error/blob.c/OpenBlob", exception.Message);
var exception = Assert.Throws<MagickMissingDelegateErrorException>(() => image.Read("~"));
Assert.Contains("error/constitute.c/ReadImage", exception.Message);
}

[Fact]
Expand Down

0 comments on commit ae37960

Please sign in to comment.