Browse Source

Fixes background color unit test

Former-commit-id: f3c33e451b2fcf4119136f36829ddf3c6e09329d
Former-commit-id: 81ccf883d7956b8a12f33a53b8d1315922af2498
pull/17/head
Thomas Broust 12 years ago
parent
commit
8b6460887b
  1. 11
      src/ImageProcessor.UnitTests/ImageFactoryUnitTests.cs

11
src/ImageProcessor.UnitTests/ImageFactoryUnitTests.cs

@ -150,12 +150,11 @@ namespace ImageProcessor.UnitTests
[Test]
public void TestApplyEffectBackgroundColor()
{
foreach (ImageFactory imageFactory in this.ListInputImages())
{
Image original = (Image)imageFactory.Image.Clone();
imageFactory.BackgroundColor(Color.Yellow);
AssertImagesAreDifferent(original, imageFactory.Image, "because the background color operation should have been applied on {0}", imageFactory.ImagePath);
}
ImageFactory imageFactory = new ImageFactory();
imageFactory.Load(@"Images\text.png");
Image original = (Image)imageFactory.Image.Clone();
imageFactory.BackgroundColor(Color.Yellow);
AssertImagesAreDifferent(original, imageFactory.Image, "because the background color operation should have been applied on {0}", imageFactory.ImagePath);
}
/// <summary>

Loading…
Cancel
Save