📷 A modern, cross-platform, 2D Graphics library for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

30 lines
738 B

// Copyright (c) Six Labors.
// Licensed under the Six Labors Split License.
using SixLabors.ImageSharp.Metadata.Profiles.Exif;
namespace SixLabors.ImageSharp.Tests.Metadata.Profiles.Exif;
[Trait("Profile", "Exif")]
public class ExifReaderTests
{
[Fact]
public void Read_DataIsEmpty_ReturnsEmptyCollection()
{
ExifReader reader = new(Array.Empty<byte>());
IList<IExifValue> result = reader.ReadValues();
Assert.Equal(0, result.Count);
}
[Fact]
public void Read_DataIsMinimal_ReturnsEmptyCollection()
{
ExifReader reader = new(new byte[] { 69, 120, 105, 102, 0, 0 });
IList<IExifValue> result = reader.ReadValues();
Assert.Equal(0, result.Count);
}
}