From c7606def8939953c23df3b0e89bf26377bfe4492 Mon Sep 17 00:00:00 2001 From: dirk Date: Sat, 22 Oct 2016 11:22:52 +0200 Subject: [PATCH] Use jpeg instead of jpg. Former-commit-id: c6c5334eaff8c57cd508e2388b9287fba8c635b3 Former-commit-id: be669dc053bd6ff9cf4d320bd8e6d5cc5eaa775d Former-commit-id: 2cd963161aa5afe53e6f304c42d2fd4c57383ae7 --- tests/ImageProcessorCore.Tests/FileTestBase.cs | 4 ++-- .../Profiles/Exif/ExifProfileTests.cs | 8 ++++---- .../Profiles/Exif/ExifValueTests.cs | 2 +- tests/ImageProcessorCore.Tests/TestImages.cs | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/ImageProcessorCore.Tests/FileTestBase.cs b/tests/ImageProcessorCore.Tests/FileTestBase.cs index 2da17f37e5..0027127052 100644 --- a/tests/ImageProcessorCore.Tests/FileTestBase.cs +++ b/tests/ImageProcessorCore.Tests/FileTestBase.cs @@ -20,8 +20,8 @@ namespace ImageProcessorCore.Tests { //new TestFile(TestImages.Png.P1), //new TestFile(TestImages.Png.Pd), - new TestFile(TestImages.Jpg.Floorplan), // Perf: Enable for local testing only - new TestFile(TestImages.Jpg.Calliphora), + new TestFile(TestImages.Jpeg.Floorplan), // Perf: Enable for local testing only + new TestFile(TestImages.Jpeg.Calliphora), //new TestFile(TestImages.Jpg.Cmyk), // Perf: Enable for local testing only //new TestFile(TestImages.Jpg.Turtle), //new TestFile(TestImages.Jpg.Fb), // Perf: Enable for local testing only diff --git a/tests/ImageProcessorCore.Tests/Profiles/Exif/ExifProfileTests.cs b/tests/ImageProcessorCore.Tests/Profiles/Exif/ExifProfileTests.cs index 988c7747df..bbcf5a35ef 100644 --- a/tests/ImageProcessorCore.Tests/Profiles/Exif/ExifProfileTests.cs +++ b/tests/ImageProcessorCore.Tests/Profiles/Exif/ExifProfileTests.cs @@ -17,7 +17,7 @@ namespace ImageProcessorCore.Tests [Fact] public void Constructor() { - using (FileStream stream = File.OpenRead(TestImages.Jpg.Calliphora)) + using (FileStream stream = File.OpenRead(TestImages.Jpeg.Calliphora)) { Image image = new Image(stream); @@ -107,7 +107,7 @@ namespace ImageProcessorCore.Tests [Fact] public void ReadWriteInfinity() { - using (FileStream stream = File.OpenRead(TestImages.Jpg.Floorplan)) + using (FileStream stream = File.OpenRead(TestImages.Jpeg.Floorplan)) { Image image = new Image(stream); image.ExifProfile.SetValue(ExifTag.ExposureBiasValue, new SignedRational(double.PositiveInfinity)); @@ -138,7 +138,7 @@ namespace ImageProcessorCore.Tests { Rational[] latitude = new Rational[] { new Rational(12.3), new Rational(4.56), new Rational(789.0) }; - using (FileStream stream = File.OpenRead(TestImages.Jpg.Floorplan)) + using (FileStream stream = File.OpenRead(TestImages.Jpeg.Floorplan)) { Image image = new Image(stream); image.ExifProfile.SetValue(ExifTag.Software, "ImageProcessorCore"); @@ -241,7 +241,7 @@ namespace ImageProcessorCore.Tests private static ExifProfile GetExifProfile() { - using (FileStream stream = File.OpenRead(TestImages.Jpg.Floorplan)) + using (FileStream stream = File.OpenRead(TestImages.Jpeg.Floorplan)) { Image image = new Image(stream); diff --git a/tests/ImageProcessorCore.Tests/Profiles/Exif/ExifValueTests.cs b/tests/ImageProcessorCore.Tests/Profiles/Exif/ExifValueTests.cs index 3ee09c23d7..ad32b8c801 100644 --- a/tests/ImageProcessorCore.Tests/Profiles/Exif/ExifValueTests.cs +++ b/tests/ImageProcessorCore.Tests/Profiles/Exif/ExifValueTests.cs @@ -13,7 +13,7 @@ namespace ImageProcessorCore.Tests { private static ExifValue GetExifValue() { - using (FileStream stream = File.OpenRead(TestImages.Jpg.Floorplan)) + using (FileStream stream = File.OpenRead(TestImages.Jpeg.Floorplan)) { Image image = new Image(stream); diff --git a/tests/ImageProcessorCore.Tests/TestImages.cs b/tests/ImageProcessorCore.Tests/TestImages.cs index 04ef948544..f159fb9438 100644 --- a/tests/ImageProcessorCore.Tests/TestImages.cs +++ b/tests/ImageProcessorCore.Tests/TestImages.cs @@ -21,7 +21,7 @@ namespace ImageProcessorCore.Tests public static string Splash => folder + "splash.png"; } - public static class Jpg + public static class Jpeg { private static readonly string folder = "TestImages/Formats/Jpg/"; public static string Cmyk => folder + "cmyk.jpg";