Skip to content

Commit 397352f

Browse files
committed
SixLabors#542: remove pixel checks and base class
as requested by @antonfirsov.
1 parent 3344d3f commit 397352f

1 file changed

Lines changed: 1 addition & 24 deletions

File tree

tests/ImageSharp.Tests/Drawing/FillLinearGradientBrushTests.cs

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
namespace SixLabors.ImageSharp.Tests.Drawing
1717
{
1818
[GroupOutput("Drawing/GradientBrushes")]
19-
public class FillLinearGradientBrushTests : FileTestBase
19+
public class FillLinearGradientBrushTests
2020
{
2121
[Theory]
2222
[WithBlankImages(10, 10, PixelTypes.Rgba32)]
@@ -117,29 +117,6 @@ public void HorizontalGradientWithRepMode<TPixel>(
117117

118118
image.Mutate(x => x.Fill(unicolorLinearGradientBrush));
119119
image.DebugSave(provider, repetitionMode);
120-
121-
using (PixelAccessor<TPixel> sourcePixels = image.Lock())
122-
{
123-
TPixel columnColor0 = sourcePixels[0, 0];
124-
TPixel columnColor23 = sourcePixels[23, 0];
125-
TPixel columnColor42 = sourcePixels[42, 0];
126-
TPixel columnColor333 = sourcePixels[333, 0];
127-
128-
TPixel lastColumnColor = sourcePixels[lastColumnIndex, 0];
129-
130-
for (int i = 0; i < image.Height; i++)
131-
{
132-
// check first and last column:
133-
Assert.Equal(columnColor0, sourcePixels[0, i]);
134-
Assert.Equal(lastColumnColor, sourcePixels[lastColumnIndex, i]);
135-
136-
// check the random colors:
137-
Assert.True(columnColor23.Equals(sourcePixels[23, i]), $"at {i}");
138-
Assert.Equal(columnColor42, sourcePixels[42, i]);
139-
Assert.Equal(columnColor333, sourcePixels[333, i]);
140-
}
141-
}
142-
143120
image.CompareToReferenceOutput(provider, repetitionMode);
144121
}
145122
}

0 commit comments

Comments
 (0)