Skip to content

Commit

Permalink
Corrected unit test due to fixes in ImageMagick.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Mar 22, 2020
1 parent dd02dfb commit 3ed158c
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,26 +40,27 @@ public void ShouldThrowExceptionWhenSettingsIsNull()
}

[TestMethod]
public void ShouldMergeTheImages()
public void ShouldApplyTheOperatorToTheImages()
{
using (IMagickImageCollection collection = new MagickImageCollection())
{
collection.Read(Files.RoseSparkleGIF);

collection.Complex(new ComplexSettings()
collection.Complex(new ComplexSettings
{
Operator = ComplexOperator.Conjugate,
SignalToNoiseRatio = 5.5,
});

Assert.AreEqual(2, collection.Count);

collection[1].Clamp();
#if Q8
ColorAssert.AreEqual(new MagickColor("#db638b"), collection[1], 10, 10);
ColorAssert.AreEqual(new MagickColor("#abb4ba01"), collection[1], 10, 10);

#elif Q16 || Q16HDRI
ColorAssert.AreEqual(new MagickColor("#2c2c2b2b2b2b"), collection[1], 10, 10);
#elif Q16
ColorAssert.AreEqual(new MagickColor("#aaabb3b4b9ba0001"), collection[1], 10, 10);
#elif Q16HDRI
collection[1].Clamp();
ColorAssert.AreEqual(new MagickColor("#0000000000000000"), collection[1], 10, 10);
#else
#error Not implemented!
#endif
Expand Down

0 comments on commit 3ed158c

Please sign in to comment.