mirror of https://github.com/SixLabors/ImageSharp
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.
32 lines
829 B
32 lines
829 B
// Copyright (c) Six Labors and contributors.
|
|
// Licensed under the Apache License, Version 2.0.
|
|
|
|
using System.Collections.Generic;
|
|
using SixLabors.ImageSharp.Metadata.Profiles.Exif;
|
|
using Xunit;
|
|
|
|
namespace SixLabors.ImageSharp.Tests
|
|
{
|
|
public class ExifReaderTests
|
|
{
|
|
[Fact]
|
|
public void Read_DataIsEmpty_ReturnsEmptyCollection()
|
|
{
|
|
var reader = new ExifReader(new byte[] { });
|
|
|
|
IList<ExifValue> result = reader.ReadValues();
|
|
|
|
Assert.Equal(0, result.Count);
|
|
}
|
|
|
|
[Fact]
|
|
public void Read_DataIsMinimal_ReturnsEmptyCollection()
|
|
{
|
|
var reader = new ExifReader(new byte[] { 69, 120, 105, 102, 0, 0 });
|
|
|
|
IList<ExifValue> result = reader.ReadValues();
|
|
|
|
Assert.Equal(0, result.Count);
|
|
}
|
|
}
|
|
}
|
|
|