// Copyright (c) Six Labors and contributors. // Licensed under the Apache License, Version 2.0. using SixLabors.ImageSharp.PixelFormats; using SixLabors.ImageSharp.Processing.Processors.Transforms; using Xunit; namespace SixLabors.ImageSharp.Tests.Processing.Transforms { using SixLabors.ImageSharp.Processing; using SixLabors.ImageSharp.Processing.Processors.Transforms; public class PadTest : BaseImageOperationsExtensionTest { [Fact] public void PadWidthHeightResizeProcessorWithCorrectOptionsSet() { int width = 500; int height = 565; IResampler sampler = KnownResamplers.NearestNeighbor; this.operations.Pad(width, height); ResizeProcessorImplementation resizeProcessor = this.Verify>(); Assert.Equal(width, resizeProcessor.Width); Assert.Equal(height, resizeProcessor.Height); Assert.Equal(sampler, resizeProcessor.Sampler); } } }