Browse Source

Adds strecthed test image

Former-commit-id: e7dd960547bb07f434b999865c7d89a4455e1d49
Former-commit-id: c9f3278e7792e7ab0185f455fefa42516dde8d86
pull/17/head
Thomas Broust 11 years ago
parent
commit
17016fd071
  1. 8
      src/ImageProcessor.UnitTests/ImageFactoryUnitTests.cs
  2. 3
      src/ImageProcessor.UnitTests/ImageProcessor.UnitTests.csproj
  3. BIN
      src/ImageProcessor.UnitTests/Images/stretched.jpg

8
src/ImageProcessor.UnitTests/ImageFactoryUnitTests.cs

@ -359,8 +359,10 @@ namespace ImageProcessor.UnitTests
imageFactory.Reset();
AssertionHelpers.AssertImagesAreIdentical(original, imageFactory.Image, "because the image should be reset");
imageFactory.Format(new ImageProcessor.Imaging.Formats.JpegFormat()).Save("./output/filter-" + j++.ToString() + "-image-" + i++.ToString() + ".jpg");
imageFactory.Format(new ImageProcessor.Imaging.Formats.JpegFormat()).Save("./output/filter-" + j++.ToString() + "-image-" + i.ToString() + ".jpg");
}
i++;
}
}
@ -671,8 +673,10 @@ namespace ImageProcessor.UnitTests
imageFactory.Reset();
AssertionHelpers.AssertImagesAreIdentical(original, imageFactory.Image, "because the image should be reset");
imageFactory.Format(new ImageProcessor.Imaging.Formats.JpegFormat()).Save("./output/edgefilter-" + j++.ToString() + "-image-" + i++.ToString() + ".jpg");
imageFactory.Format(new ImageProcessor.Imaging.Formats.JpegFormat()).Save("./output/edgefilter-" + j++.ToString() + "-image-" + i.ToString() + ".jpg");
}
i++;
}
}

3
src/ImageProcessor.UnitTests/ImageProcessor.UnitTests.csproj

@ -134,6 +134,9 @@
<Content Include="Images\color-modes\srgb.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Images\stretched.jpg">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Images\text.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>

BIN
src/ImageProcessor.UnitTests/Images/stretched.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Loading…
Cancel
Save