|
|
|
@ -1,6 +1,7 @@ |
|
|
|
// Copyright (c) Six Labors and contributors.
|
|
|
|
// Licensed under the Apache License, Version 2.0.
|
|
|
|
|
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Collections.ObjectModel; |
|
|
|
using SixLabors.ImageSharp.MetaData.Profiles.Exif; |
|
|
|
using Xunit; |
|
|
|
@ -12,10 +13,10 @@ namespace SixLabors.ImageSharp.Tests |
|
|
|
[Fact] |
|
|
|
public void Read_DataIsEmpty_ReturnsEmptyCollection() |
|
|
|
{ |
|
|
|
ExifReader reader = new ExifReader(); |
|
|
|
var reader = new ExifReader(); |
|
|
|
byte[] data = new byte[] { }; |
|
|
|
|
|
|
|
Collection<ExifValue> result = reader.Read(data); |
|
|
|
IList<ExifValue> result = reader.Read(data); |
|
|
|
|
|
|
|
Assert.Equal(0, result.Count); |
|
|
|
} |
|
|
|
@ -23,10 +24,10 @@ namespace SixLabors.ImageSharp.Tests |
|
|
|
[Fact] |
|
|
|
public void Read_DataIsMinimal_ReturnsEmptyCollection() |
|
|
|
{ |
|
|
|
ExifReader reader = new ExifReader(); |
|
|
|
var reader = new ExifReader(); |
|
|
|
byte[] data = new byte[] { 69, 120, 105, 102, 0, 0 }; |
|
|
|
|
|
|
|
Collection<ExifValue> result = reader.Read(data); |
|
|
|
IList<ExifValue> result = reader.Read(data); |
|
|
|
|
|
|
|
Assert.Equal(0, result.Count); |
|
|
|
} |
|
|
|
|