|
16 | 16 | namespace SixLabors.ImageSharp.Tests.Drawing |
17 | 17 | { |
18 | 18 | [GroupOutput("Drawing/GradientBrushes")] |
19 | | - public class FillLinearGradientBrushTests : FileTestBase |
| 19 | + public class FillLinearGradientBrushTests |
20 | 20 | { |
21 | 21 | [Theory] |
22 | 22 | [WithBlankImages(10, 10, PixelTypes.Rgba32)] |
@@ -117,29 +117,6 @@ public void HorizontalGradientWithRepMode<TPixel>( |
117 | 117 |
|
118 | 118 | image.Mutate(x => x.Fill(unicolorLinearGradientBrush)); |
119 | 119 | 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 | | - |
143 | 120 | image.CompareToReferenceOutput(provider, repetitionMode); |
144 | 121 | } |
145 | 122 | } |
|
0 commit comments