Skip to content

Commit

Permalink
Updated unit test due to changes in ImageMagick.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Feb 23, 2025
1 parent 7bbf664 commit c99b9fa
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ public void ShouldReturnTheAttributeNames()
var names = image.AttributeNames;
var allNames = string.Join(",", names);

Assert.Equal(6, names.Count());
Assert.Equal("date:create,date:modify,date:timestamp,foo,jpeg:colorspace,jpeg:sampling-factor", allNames);
Assert.Equal(7, names.Count());
Assert.Equal("date:create,date:modify,date:timestamp,foo,jpeg:colorspace,jpeg:sampling-factor,mime:type", allNames);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public void ShouldBeStoredAsItxtInPngFileWhenStringContainsNonAnsiCharacters()
Assert.Equal(comment, image.Comment);

pngText = image.GetAttribute("png:text");
Assert.Equal("3 tEXt/zTXt/iTXt chunks were found", pngText);
Assert.Equal("4 tEXt/zTXt/iTXt chunks were found", pngText);
}
}
}
4 changes: 2 additions & 2 deletions tests/Magick.NET.Tests/MagickImageTests/TheToBase64Method.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ public void ShouldReturnBase64EncodedString()
var base64 = image.ToBase64();

Assert.NotNull(base64);
Assert.Equal(11752, base64.Length);
Assert.Equal(11796, base64.Length);

var bytes = Convert.FromBase64String(base64);

Assert.NotNull(bytes);
Assert.Equal(8814, bytes.Length);
Assert.Equal(8845, bytes.Length);
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class WithFileInfoFileNameOrStream : TheLosslessCompressMethod
public void ShouldCompressLossless()
{
var result = AssertLosslessCompressSmaller(Files.SnakewarePNG);
Assert.Equal(8684, result);
Assert.Equal(8715, result);
}

[Fact]
Expand Down

0 comments on commit c99b9fa

Please sign in to comment.