Browse Source

Fix failing tests

pull/2290/head
Brian Popow 4 years ago
parent
commit
d914c3c400
  1. 6
      tests/ImageSharp.Tests/Formats/Tiff/BigTiffDecoderTests.cs
  2. 2
      tests/ImageSharp.Tests/Metadata/Profiles/Exif/Values/ExifValuesTests.cs

6
tests/ImageSharp.Tests/Formats/Tiff/BigTiffDecoderTests.cs

@ -27,14 +27,10 @@ public class BigTiffDecoderTests : TiffDecoderBaseTester
[WithFile(Indexed8_LZW, PixelTypes.Rgba32)]
[WithFile(MinIsBlack, PixelTypes.Rgba32)]
[WithFile(MinIsWhite, PixelTypes.Rgba32)]
[WithFile(BigTIFFLong8Tiles, PixelTypes.Rgba32)]
public void TiffDecoder_CanDecode<TPixel>(TestImageProvider<TPixel> provider)
where TPixel : unmanaged, IPixel<TPixel> => TestTiffDecoder(provider);
[Theory]
[WithFile(BigTIFFLong8Tiles, PixelTypes.Rgba32)]
public void ThrowsNotSupported<TPixel>(TestImageProvider<TPixel> provider)
where TPixel : unmanaged, IPixel<TPixel> => Assert.Throws<NotSupportedException>(() => provider.GetImage(TiffDecoder));
[Theory]
[WithFile(Damaged_MinIsWhite_RLE, PixelTypes.Rgba32)]
[WithFile(Damaged_MinIsBlack_RLE, PixelTypes.Rgba32)]

2
tests/ImageSharp.Tests/Metadata/Profiles/Exif/Values/ExifValuesTests.cs

@ -64,7 +64,6 @@ public class ExifValuesTests
{ ExifTag.FreeOffsets },
{ ExifTag.FreeByteCounts },
{ ExifTag.ColorResponseUnit },
{ ExifTag.TileOffsets },
{ ExifTag.SMinSampleValue },
{ ExifTag.SMaxSampleValue },
{ ExifTag.JPEGQTables },
@ -92,6 +91,7 @@ public class ExifValuesTests
{ ExifTag.StripOffsets },
{ ExifTag.StripByteCounts },
{ ExifTag.TileByteCounts },
{ ExifTag.TileOffsets },
{ ExifTag.ImageLayer }
};

Loading…
Cancel
Save