mirror of https://github.com/SixLabors/ImageSharp
2 changed files with 44 additions and 1 deletions
@ -0,0 +1,35 @@ |
|||
// <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); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue