File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
tests/Magick.NET.Tests/MagickImageTests Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ]
You can’t perform that action at this time.
0 commit comments