Browse Source

Fixes background color unit test

Former-commit-id: 41893577ccde5efe52bb9d6f90a0b92b3940786e
Former-commit-id: 32b7061a60f14d8f25e11c17cf756b9a00f0aa4d
pull/17/head
Thomas Broust 12 years ago
parent
commit
e3544ac43d
  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