Skip to content

Commit c99b9fa

Browse files
committed
Updated unit test due to changes in ImageMagick.
1 parent 7bbf664 commit c99b9fa

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ public void ShouldReturnTheAttributeNames()
2121
var names = image.AttributeNames;
2222
var allNames = string.Join(",", names);
2323

24-
Assert.Equal(6, names.Count());
25-
Assert.Equal("date:create,date:modify,date:timestamp,foo,jpeg:colorspace,jpeg:sampling-factor", allNames);
24+
Assert.Equal(7, names.Count());
25+
Assert.Equal("date:create,date:modify,date:timestamp,foo,jpeg:colorspace,jpeg:sampling-factor,mime:type", allNames);
2626
}
2727
}
2828
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public void ShouldBeStoredAsItxtInPngFileWhenStringContainsNonAnsiCharacters()
6363
Assert.Equal(comment, image.Comment);
6464

6565
pngText = image.GetAttribute("png:text");
66-
Assert.Equal("3 tEXt/zTXt/iTXt chunks were found", pngText);
66+
Assert.Equal("4 tEXt/zTXt/iTXt chunks were found", pngText);
6767
}
6868
}
6969
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ public void ShouldReturnBase64EncodedString()
1919
var base64 = image.ToBase64();
2020

2121
Assert.NotNull(base64);
22-
Assert.Equal(11752, base64.Length);
22+
Assert.Equal(11796, base64.Length);
2323

2424
var bytes = Convert.FromBase64String(base64);
2525

2626
Assert.NotNull(bytes);
27-
Assert.Equal(8814, bytes.Length);
27+
Assert.Equal(8845, bytes.Length);
2828
}
2929

3030
[Fact]

tests/Magick.NET.Tests/Optimizers/PngOptimizerTests/TheLosslessCompressMethod.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class WithFileInfoFileNameOrStream : TheLosslessCompressMethod
1919
public void ShouldCompressLossless()
2020
{
2121
var result = AssertLosslessCompressSmaller(Files.SnakewarePNG);
22-
Assert.Equal(8684, result);
22+
Assert.Equal(8715, result);
2323
}
2424

2525
[Fact]

0 commit comments

Comments
 (0)