Browse Source

Fixed tests

pull/1012/head
Peter Tribe 7 years ago
parent
commit
ba08c64755
  1. 8
      tests/ImageSharp.Tests/Formats/Png/PngEncoderTests.cs

8
tests/ImageSharp.Tests/Formats/Png/PngEncoderTests.cs

@ -225,14 +225,14 @@ namespace SixLabors.ImageSharp.Tests.Formats.Png
appendPngColorType: true, appendPngColorType: true,
appendPixelType: true, appendPixelType: true,
appendPngBitDepth: true, appendPngBitDepth: true,
optimized: true); optimizeMethod: PngOptimizeMethod.All);
} }
} }
[Theory] [Theory]
[WithFile(TestImages.Png.Palette8Bpp, nameof(PaletteLargeOnly), PixelTypes.Rgba32)] [WithFile(TestImages.Png.Palette8Bpp, nameof(PaletteLargeOnly), PixelTypes.Rgba32)]
public void PaletteColorType_WuQuantizer<TPixel>(TestImageProvider<TPixel> provider, int paletteSize) public void PaletteColorType_WuQuantizer<TPixel>(TestImageProvider<TPixel> provider, int paletteSize)
where TPixel : struct, IPixel<TPixel> where TPixel : struct, IPixel<TPixel>
{ {
foreach (PngInterlaceMode interlaceMode in InterlaceMode) foreach (PngInterlaceMode interlaceMode in InterlaceMode)
{ {
@ -391,7 +391,7 @@ namespace SixLabors.ImageSharp.Tests.Formats.Png
bool appendCompressionLevel = false, bool appendCompressionLevel = false,
bool appendPaletteSize = false, bool appendPaletteSize = false,
bool appendPngBitDepth = false, bool appendPngBitDepth = false,
bool optimized = false) PngOptimizeMethod optimizeMethod = PngOptimizeMethod.None)
where TPixel : struct, IPixel<TPixel> where TPixel : struct, IPixel<TPixel>
{ {
using (Image<TPixel> image = provider.GetImage()) using (Image<TPixel> image = provider.GetImage())
@ -404,7 +404,7 @@ namespace SixLabors.ImageSharp.Tests.Formats.Png
BitDepth = bitDepth, BitDepth = bitDepth,
Quantizer = new WuQuantizer(paletteSize), Quantizer = new WuQuantizer(paletteSize),
InterlaceMethod = interlaceMode, InterlaceMethod = interlaceMode,
Optimized = optimized, OptimizeMethod = optimizeMethod,
}; };
string pngColorTypeInfo = appendPngColorType ? pngColorType.ToString() : string.Empty; string pngColorTypeInfo = appendPngColorType ? pngColorType.ToString() : string.Empty;

Loading…
Cancel
Save