Skip to content

Commit

Permalink
Added unit test for #1174.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Apr 10, 2022
1 parent 5198edc commit 2e26c09
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,18 @@ public async Task ShouldReadImage()
}
}

[Fact]
public async Task ShouldUseTheFilename()
{
using (var image = new MagickImage())
{
await image.ReadAsync(Files.ImageMagickICO);
Assert.Equal(64, image.Width);
Assert.Equal(64, image.Height);
Assert.Equal(MagickFormat.Ico, image.Format);
}
}

[Fact]
public async Task ShouldNotUseBaseDirectoryOfCurrentAppDomainWhenFileNameIsTilde()
{
Expand Down

0 comments on commit 2e26c09

Please sign in to comment.