Skip to content

Commit ae37960

Browse files
committed
Updated unit tests due to changes in ImageMagick.
1 parent 887cae8 commit ae37960

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

tests/Magick.NET.Tests/MagickImageTests/TheConstructor.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,9 @@ public void ShouldUseBaseDirectoryOfCurrentAppDomainWhenFileNameStartsWithTilde(
240240
[Fact]
241241
public void ShouldNotUseBaseDirectoryOfCurrentAppDomainWhenFileNameIsTilde()
242242
{
243-
var exception = Assert.Throws<MagickBlobErrorException>(() => new MagickImage("~"));
243+
var exception = Assert.Throws<MagickMissingDelegateErrorException>(() => new MagickImage("~"));
244244

245-
Assert.Contains("error/blob.c/OpenBlob", exception.Message);
246-
Assert.Contains("~", exception.Message);
245+
Assert.Contains("error/constitute.c/ReadImage", exception.Message);
247246
}
248247
}
249248

tests/Magick.NET.Tests/MagickImageTests/TheReadMethod.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -479,9 +479,8 @@ public void ShouldNotUseBaseDirectoryOfCurrentAppDomainWhenFileNameIsTilde()
479479
{
480480
using var image = new MagickImage();
481481

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

487486
[Fact]

0 commit comments

Comments
 (0)