Skip to content

Commit 098a4ae

Browse files
committed
Compare Issue 2217 to reference output
1 parent 34371c7 commit 098a4ae

File tree

2 files changed

+4
-18
lines changed

2 files changed

+4
-18
lines changed

tests/ImageSharp.Tests/Processing/Binarization/AdaptiveThresholdTests.cs

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Six Labors.
22
// Licensed under the Six Labors Split License.
33

4-
using System;
54
using SixLabors.ImageSharp.PixelFormats;
65
using SixLabors.ImageSharp.Processing;
76
using SixLabors.ImageSharp.Processing.Processors.Binarization;
@@ -103,6 +102,7 @@ public void AdaptiveThreshold_SettingUpperLowerWithThresholdLimit_WithRectangle_
103102
[WithFile(TestImages.Png.Bradley01, PixelTypes.Rgba32)]
104103
[WithFile(TestImages.Png.Bradley02, PixelTypes.Rgba32)]
105104
[WithFile(TestImages.Png.Ducky, PixelTypes.Rgba32)]
105+
[WithFile(TestImages.Png.Issue2217, PixelTypes.Rgba32)]
106106
public void AdaptiveThreshold_Works<TPixel>(TestImageProvider<TPixel> provider)
107107
where TPixel : unmanaged, IPixel<TPixel>
108108
{
@@ -126,22 +126,5 @@ public void AdaptiveThreshold_WithRectangle_Works<TPixel>(TestImageProvider<TPix
126126
image.CompareToReferenceOutput(ImageComparer.Exact, provider);
127127
}
128128
}
129-
130-
// https://github.com/SixLabors/ImageSharp/issues/2217
131-
[Theory]
132-
[WithFile(TestImages.Png.Issue2217, PixelTypes.Rgba32)]
133-
public void Issue_2217_AdaptiveThreshold_DoesNotThrowIndexOutOfRangeException<TPixel>(
134-
TestImageProvider<TPixel> provider)
135-
where TPixel : unmanaged, IPixel<TPixel>
136-
{
137-
Exception exception = Record.Exception(() =>
138-
{
139-
using Image<TPixel> image = provider.GetImage();
140-
image.Mutate(img => img.AdaptiveThreshold());
141-
image.DebugSave(provider);
142-
});
143-
144-
Assert.Null(exception);
145-
}
146129
}
147130
}
Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)