Browse Source

Fixes background color unit test

Former-commit-id: f3c33e451b2fcf4119136f36829ddf3c6e09329d
Former-commit-id: 81ccf883d7956b8a12f33a53b8d1315922af2498
af/merge-core
Thomas Broust 12 years ago
parent
commit
657a0e72f9
  1. 11
      src/ImageProcessor.UnitTests/ImageFactoryUnitTests.cs

11
src/ImageProcessor.UnitTests/ImageFactoryUnitTests.cs

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

Loading…
Cancel
Save