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.
35 lines
952 B
35 lines
952 B
// <copyright file="ExifReaderTests.cs" company="James Jackson-South">
|
|
// Copyright (c) James Jackson-South and contributors.
|
|
// Licensed under the Apache License, Version 2.0.
|
|
// </copyright>
|
|
|
|
namespace ImageSharp.Tests
|
|
{
|
|
using System.Collections.ObjectModel;
|
|
using Xunit;
|
|
|
|
public class ExifReaderTests
|
|
{
|
|
[Fact]
|
|
public void Read_DataIsEmpty_ReturnsEmptyCollection()
|
|
{
|
|
ExifReader reader = new ExifReader();
|
|
byte[] data = new byte[] { };
|
|
|
|
Collection<ExifValue> result = reader.Read(data);
|
|
|
|
Assert.Equal(0, result.Count);
|
|
}
|
|
|
|
[Fact]
|
|
public void Read_DataIsMinimal_ReturnsEmptyCollection()
|
|
{
|
|
ExifReader reader = new ExifReader();
|
|
byte[] data = new byte[] { 69, 120, 105, 102, 0, 0 };
|
|
|
|
Collection<ExifValue> result = reader.Read(data);
|
|
|
|
Assert.Equal(0, result.Count);
|
|
}
|
|
}
|
|
}
|
|
|