Browse Source

drop FileTestBase usage in ResizeTests

pull/888/head
Anton Firszov 7 years ago
parent
commit
9861084a8d
  1. 9
      tests/ImageSharp.Tests/Processing/Processors/Transforms/ResizeTests.cs

9
tests/ImageSharp.Tests/Processing/Processors/Transforms/ResizeTests.cs

@ -15,7 +15,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Transforms
{
public class ResizeTests : FileTestBase
public class ResizeTests
{
public static readonly string[] CommonTestImages = { TestImages.Png.CalliphoraPartial };
@ -31,6 +31,11 @@ namespace SixLabors.ImageSharp.Tests.Processing.Processors.Transforms
nameof(KnownResamplers.Lanczos5),
};
private const PixelTypes DefaultPixelType = PixelTypes.Rgba32;
private const PixelTypes CommonNonDefaultPixelTypes =
PixelTypes.Rgba32 | PixelTypes.Bgra32 | PixelTypes.RgbaVector;
[Theory]
[WithFileCollection(nameof(CommonTestImages), nameof(AllResamplerNames), DefaultPixelType, 0.5f, null, null)]
[WithFileCollection(nameof(CommonTestImages), nameof(SmokeTestResamplerNames), DefaultPixelType, 0.3f, null, null)]
@ -185,7 +190,7 @@ namespace SixLabors.ImageSharp.Tests.Processing.Processors.Transforms
image.Mutate(x => x.Resize(image.Width / 2, image.Height / 2, KnownResamplers.Bicubic));
// Comparer fights decoder with gif-s. Could not use CompareToReferenceOutput here :(
image.DebugSave(provider, extension: Extensions.Gif);
image.DebugSave(provider, extension: "gif");
}
}

Loading…
Cancel
Save