// Copyright (c) Six Labors and contributors. // Licensed under the Apache License, Version 2.0. using SixLabors.ImageSharp.PixelFormats; using SixLabors.ImageSharp.Processing.Processors; using SixLabors.Primitives; using Xunit; namespace SixLabors.ImageSharp.Tests.Processing.Effects { public class AlphaTest : BaseImageOperationsExtensionTest { [Fact] public void Alpha_amount_AlphaProcessorDefaultsSet() { this.operations.Alpha(0.2f); var processor = this.Verify>(); Assert.Equal(.2f, processor.Value); } [Fact] public void Alpha_amount_rect_AlphaProcessorDefaultsSet() { this.operations.Alpha(0.6f, this.rect); var processor = this.Verify>(this.rect); Assert.Equal(.6f, processor.Value); } } }