Browse Source

Fixed a build error

pull/1574/head
Sergio Pedri 6 years ago
parent
commit
23a80a3483
  1. 3
      src/ImageSharp/Common/Extensions/StreamExtensions.cs
  2. 2
      tests/ImageSharp.Tests/Metadata/Profiles/Exif/ExifProfileTests.cs

3
src/ImageSharp/Common/Extensions/StreamExtensions.cs

@ -4,6 +4,9 @@
using System; using System;
using System.IO; using System.IO;
using SixLabors.ImageSharp.Memory; using SixLabors.ImageSharp.Memory;
#if !SUPPORTS_SPAN_STREAM
using System.Buffers;
#endif
namespace SixLabors.ImageSharp namespace SixLabors.ImageSharp
{ {

2
tests/ImageSharp.Tests/Metadata/Profiles/Exif/ExifProfileTests.cs

@ -394,7 +394,7 @@ namespace SixLabors.ImageSharp.Tests
public void ProfileToByteArray() public void ProfileToByteArray()
{ {
// Arrange // Arrange
byte[] exifBytesWithoutExifCode = ExifConstants.LittleEndianByteOrderMarker; byte[] exifBytesWithoutExifCode = ExifConstants.LittleEndianByteOrderMarker.ToArray();
ExifProfile expectedProfile = CreateExifProfile(); ExifProfile expectedProfile = CreateExifProfile();
var expectedProfileTags = expectedProfile.Values.Select(x => x.Tag).ToList(); var expectedProfileTags = expectedProfile.Values.Select(x => x.Tag).ToList();

Loading…
Cancel
Save