mirror of https://github.com/SixLabors/ImageSharp
1 changed files with 30 additions and 0 deletions
@ -0,0 +1,30 @@ |
|||||
|
// Copyright (c) Six Labors and contributors.
|
||||
|
// Licensed under the Apache License, Version 2.0.
|
||||
|
|
||||
|
using SixLabors.ImageSharp.Processing; |
||||
|
using SixLabors.ImageSharp.Processing.Processors.Filters; |
||||
|
using Xunit; |
||||
|
|
||||
|
namespace SixLabors.ImageSharp.Tests.Processing.Effects |
||||
|
{ |
||||
|
public class LightnessTest : BaseImageOperationsExtensionTest |
||||
|
{ |
||||
|
[Fact] |
||||
|
public void Lightness_amount_LightnessProcessorDefaultsSet() |
||||
|
{ |
||||
|
this.operations.Lightness(1.5F); |
||||
|
LightnessProcessor processor = this.Verify<LightnessProcessor>(); |
||||
|
|
||||
|
Assert.Equal(.5F, processor.Lightness); |
||||
|
} |
||||
|
|
||||
|
[Fact] |
||||
|
public void Lightness_amount_rect_LightnessProcessorDefaultsSet() |
||||
|
{ |
||||
|
this.operations.Lightness(1.5F, this.rect); |
||||
|
LightnessProcessor processor = this.Verify<LightnessProcessor>(this.rect); |
||||
|
|
||||
|
Assert.Equal(.5F, processor.Lightness); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue