66using System . IO ;
77using System . Linq ;
88using System . Numerics ;
9-
9+ using System . Threading . Tasks ;
10+ using SixLabors . ImageSharp ;
1011using SixLabors . ImageSharp . Formats ;
1112using SixLabors . ImageSharp . PixelFormats ;
1213using Xunit ;
@@ -184,7 +185,7 @@ public TestHeader(TestFormat testFormat)
184185 this . testFormat = testFormat ;
185186 }
186187 }
187- public class TestDecoder : ImageSharp . Formats . IImageDecoder
188+ public class TestDecoder : IImageDecoder
188189 {
189190 private TestFormat testFormat ;
190191
@@ -219,9 +220,16 @@ public Image<TPixel> Decode<TPixel>(Configuration config, Stream stream) where T
219220 public bool IsSupportedFileFormat ( Span < byte > header ) => testFormat . IsSupportedFileFormat ( header ) ;
220221
221222 public Image Decode ( Configuration configuration , Stream stream ) => this . Decode < TestPixelForAgnosticDecode > ( configuration , stream ) ;
223+
224+ public Task < Image < TPixel > > DecodeAsync < TPixel > ( Configuration configuration , Stream stream )
225+ where TPixel : unmanaged, IPixel < TPixel >
226+ => throw new NotImplementedException ( ) ;
227+
228+ public Task < Image > DecodeAsync ( Configuration configuration , Stream stream )
229+ => throw new NotImplementedException ( ) ;
222230 }
223231
224- public class TestEncoder : ImageSharp . Formats . IImageEncoder
232+ public class TestEncoder : IImageEncoder
225233 {
226234 private TestFormat testFormat ;
227235
@@ -238,6 +246,9 @@ public void Encode<TPixel>(Image<TPixel> image, Stream stream) where TPixel : un
238246 {
239247 // TODO record this happened so we can verify it.
240248 }
249+
250+ public Task EncodeAsync < TPixel > ( Image < TPixel > image , Stream stream ) where TPixel : unmanaged, IPixel < TPixel >
251+ => throw new NotImplementedException ( ) ;
241252 }
242253
243254
0 commit comments