diff --git a/tests/ImageSharp.Tests/Drawing/FillLinearGradientBrushTests.cs b/tests/ImageSharp.Tests/Drawing/FillLinearGradientBrushTests.cs index e25a998a55..8946626bc9 100644 --- a/tests/ImageSharp.Tests/Drawing/FillLinearGradientBrushTests.cs +++ b/tests/ImageSharp.Tests/Drawing/FillLinearGradientBrushTests.cs @@ -18,12 +18,12 @@ namespace SixLabors.ImageSharp.Tests.Drawing public void LinearGradientBrushWithEqualColorsReturnsUnicolorImage() { string path = TestEnvironment.CreateOutputDirectory("Fill", "LinearGradientBrush"); - using (var image = new Image(500, 500)) + using (var image = new Image(10, 10)) { LinearGradientBrush unicolorLinearGradientBrush = new LinearGradientBrush( new SixLabors.Primitives.Point(0, 0), - new SixLabors.Primitives.Point(500, 0), + new SixLabors.Primitives.Point(10, 0), new LinearGradientBrush.ColorStop(0, Rgba32.Red), new LinearGradientBrush.ColorStop(1, Rgba32.Red)); @@ -34,8 +34,8 @@ namespace SixLabors.ImageSharp.Tests.Drawing { Assert.Equal(Rgba32.Red, sourcePixels[0, 0]); Assert.Equal(Rgba32.Red, sourcePixels[9, 9]); - Assert.Equal(Rgba32.Red, sourcePixels[199, 149]); - Assert.Equal(Rgba32.Red, sourcePixels[499, 499]); + Assert.Equal(Rgba32.Red, sourcePixels[5, 5]); + Assert.Equal(Rgba32.Red, sourcePixels[3, 8]); } } } @@ -44,9 +44,8 @@ namespace SixLabors.ImageSharp.Tests.Drawing public void HorizontalLinearGradientBrushReturnsUnicolorColumns() { int width = 500; - int height = 500; + int height = 10; int lastColumnIndex = width - 1; - int lastRowIndex = height - 1; string path = TestEnvironment.CreateOutputDirectory("Fill", "LinearGradientBrush"); @@ -60,7 +59,7 @@ namespace SixLabors.ImageSharp.Tests.Drawing new LinearGradientBrush.ColorStop(1, Rgba32.Yellow)); image.Mutate(x => x.Fill(unicolorLinearGradientBrush)); - image.Save($"{path}/horizontalGradient.png"); + image.Save($"{path}/horizontalRedToYellow.png"); using (PixelAccessor sourcePixels = image.Lock()) {