mirror of https://github.com/SixLabors/ImageSharp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
781 B
26 lines
781 B
// Copyright (c) Six Labors and contributors.
|
|
// Licensed under the Apache License, Version 2.0.
|
|
|
|
using Xunit;
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Processing.Transforms
|
|
{
|
|
using SixLabors.ImageSharp.Processing;
|
|
using SixLabors.ImageSharp.Processing.Processors.Transforms;
|
|
|
|
public class FlipTests : BaseImageOperationsExtensionTest
|
|
{
|
|
|
|
[Theory]
|
|
[InlineData(FlipMode.None)]
|
|
[InlineData(FlipMode.Horizontal)]
|
|
[InlineData(FlipMode.Vertical)]
|
|
public void Flip_degreesFloat_RotateProcessorWithAnglesSetAndExpandTrue(FlipMode flip)
|
|
{
|
|
this.operations.Flip(flip);
|
|
FlipProcessor flipProcessor = this.Verify<FlipProcessor>();
|
|
|
|
Assert.Equal(flip, flipProcessor.FlipMode);
|
|
}
|
|
}
|
|
}
|
|
|