Browse Source

Fix tests

pull/506/head
Jason Nelson 8 years ago
parent
commit
77f0b6b78d
  1. 2
      tests/ImageSharp.Tests/MetaData/Profiles/Exif/ExifProfileTests.cs
  2. 9
      tests/ImageSharp.Tests/MetaData/Profiles/Exif/ExifReaderTests.cs

2
tests/ImageSharp.Tests/MetaData/Profiles/Exif/ExifProfileTests.cs

@ -255,7 +255,7 @@ namespace SixLabors.ImageSharp.Tests
[Fact] [Fact]
public void WriteTooLargeProfile() public void WriteTooLargeProfile()
{ {
StringBuilder junk = new StringBuilder(); var junk = new StringBuilder();
for (int i = 0; i < 65500; i++) for (int i = 0; i < 65500; i++)
{ {
junk.Append("I"); junk.Append("I");

9
tests/ImageSharp.Tests/MetaData/Profiles/Exif/ExifReaderTests.cs

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

Loading…
Cancel
Save