From ae379603b7401aa433985334d56bc5cef4e31d18 Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Mon, 16 Dec 2024 21:18:38 +0100 Subject: [PATCH] Updated unit tests due to changes in ImageMagick. --- tests/Magick.NET.Tests/MagickImageTests/TheConstructor.cs | 5 ++--- tests/Magick.NET.Tests/MagickImageTests/TheReadMethod.cs | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/Magick.NET.Tests/MagickImageTests/TheConstructor.cs b/tests/Magick.NET.Tests/MagickImageTests/TheConstructor.cs index eda0ea9850..f79e39fead 100644 --- a/tests/Magick.NET.Tests/MagickImageTests/TheConstructor.cs +++ b/tests/Magick.NET.Tests/MagickImageTests/TheConstructor.cs @@ -240,10 +240,9 @@ public void ShouldUseBaseDirectoryOfCurrentAppDomainWhenFileNameStartsWithTilde( [Fact] public void ShouldNotUseBaseDirectoryOfCurrentAppDomainWhenFileNameIsTilde() { - var exception = Assert.Throws(() => new MagickImage("~")); + var exception = Assert.Throws(() => new MagickImage("~")); - Assert.Contains("error/blob.c/OpenBlob", exception.Message); - Assert.Contains("~", exception.Message); + Assert.Contains("error/constitute.c/ReadImage", exception.Message); } } diff --git a/tests/Magick.NET.Tests/MagickImageTests/TheReadMethod.cs b/tests/Magick.NET.Tests/MagickImageTests/TheReadMethod.cs index dded540188..62364fb4e9 100644 --- a/tests/Magick.NET.Tests/MagickImageTests/TheReadMethod.cs +++ b/tests/Magick.NET.Tests/MagickImageTests/TheReadMethod.cs @@ -479,9 +479,8 @@ public void ShouldNotUseBaseDirectoryOfCurrentAppDomainWhenFileNameIsTilde() { using var image = new MagickImage(); - var exception = Assert.Throws(() => image.Read("~")); - Assert.Contains("~", exception.Message); - Assert.Contains("error/blob.c/OpenBlob", exception.Message); + var exception = Assert.Throws(() => image.Read("~")); + Assert.Contains("error/constitute.c/ReadImage", exception.Message); } [Fact]