From 976aad30792b84a74f8ab17c86a598f91c9300fc Mon Sep 17 00:00:00 2001 From: popow Date: Sat, 23 Jun 2018 17:17:56 +0200 Subject: [PATCH] using defined exif constants in the TestProfileToByteArrayWorks Test --- .../MetaData/Profiles/Exif/ExifProfileTests.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/ImageSharp.Tests/MetaData/Profiles/Exif/ExifProfileTests.cs b/tests/ImageSharp.Tests/MetaData/Profiles/Exif/ExifProfileTests.cs index 98113f392..2192d134e 100644 --- a/tests/ImageSharp.Tests/MetaData/Profiles/Exif/ExifProfileTests.cs +++ b/tests/ImageSharp.Tests/MetaData/Profiles/Exif/ExifProfileTests.cs @@ -7,6 +7,7 @@ using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; +using SixLabors.ImageSharp.Formats.Jpeg.Components.Decoder; using SixLabors.ImageSharp.MetaData; using SixLabors.ImageSharp.MetaData.Profiles.Exif; using SixLabors.ImageSharp.PixelFormats; @@ -357,8 +358,8 @@ namespace SixLabors.ImageSharp.Tests public void TestProfileToByteArrayWorks(bool includeExifIdCode) { // arrange - byte[] exifBytesWithExifCode = new byte[] { 69, 120, 105, 102, 0, 0, 73, 73, 42, 0}; - byte[] exifBytesWithoutExifCode = new byte[] { 73, 73, 42, 0 }; + byte[] exifBytesWithExifCode = ProfileResolver.ExifMarker.Concat(ExifConstants.LittleEndianByteOrderMarker).ToArray(); + byte[] exifBytesWithoutExifCode = ExifConstants.LittleEndianByteOrderMarker; var profile = new ExifProfile(exifBytesWithExifCode); // act