11// Copyright (c) Six Labors.
22// Licensed under the Six Labors Split License.
33
4- using System ;
54using SixLabors . ImageSharp . PixelFormats ;
65using SixLabors . ImageSharp . Processing ;
76using 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}
0 commit comments