Browse Source

Adds strecthed test image

Former-commit-id: 086035112686a1d94c2e8ac130b3e5566936c092
Former-commit-id: 169f2a9287b2a5fd57b2da891feb9a1d3223e5d6
pull/17/head
Thomas Broust 11 years ago
parent
commit
d723d2807b
  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