Browse Source

reduce the number of test cases in PngDecoderTests

pull/299/head
Anton Firszov 9 years ago
parent
commit
72d6c49609
  1. 15
      tests/ImageSharp.Tests/Formats/Png/PngDecoderTests.cs

15
tests/ImageSharp.Tests/Formats/Png/PngDecoderTests.cs

@ -7,6 +7,7 @@ using System.Text;
using SixLabors.ImageSharp.Formats;
using SixLabors.ImageSharp.PixelFormats;
using Xunit;
// ReSharper disable InconsistentNaming
namespace SixLabors.ImageSharp.Tests
{
@ -24,7 +25,7 @@ namespace SixLabors.ImageSharp.Tests
};
[Theory]
[WithFileCollection(nameof(TestFiles), PixelTypes)]
[WithFileCollection(nameof(TestFiles), PixelTypes.Rgba32)]
public void Decode<TPixel>(TestImageProvider<TPixel> provider)
where TPixel : struct, IPixel<TPixel>
{
@ -35,6 +36,18 @@ namespace SixLabors.ImageSharp.Tests
}
}
[Theory]
[WithFile(TestImages.Png.Splash, PixelTypes)]
public void Decoder_IsNotBoundToSinglePixelType<TPixel>(TestImageProvider<TPixel> provider)
where TPixel : struct, IPixel<TPixel>
{
using (Image<TPixel> image = provider.GetImage(new PngDecoder()))
{
image.DebugSave(provider);
image.CompareToOriginal(provider, ImageComparer.Exact);
}
}
[Fact]
public void Decode_IgnoreMetadataIsFalse_TextChunckIsRead()
{

Loading…
Cancel
Save