|
|
@ -21,11 +21,17 @@ namespace SixLabors.ImageSharp.Tests |
|
|
public abstract partial class TestImageProvider<TPixel> : ITestImageProvider, IXunitSerializable |
|
|
public abstract partial class TestImageProvider<TPixel> : ITestImageProvider, IXunitSerializable |
|
|
where TPixel : unmanaged, IPixel<TPixel> |
|
|
where TPixel : unmanaged, IPixel<TPixel> |
|
|
{ |
|
|
{ |
|
|
|
|
|
public TestImageProvider() |
|
|
|
|
|
{ |
|
|
|
|
|
this.Configuration = Configuration.CreateDefaultInstance(); |
|
|
|
|
|
this.Configuration.MemoryAllocator = Configuration.Default.MemoryAllocator; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public PixelTypes PixelType { get; private set; } = typeof(TPixel).GetPixelType(); |
|
|
public PixelTypes PixelType { get; private set; } = typeof(TPixel).GetPixelType(); |
|
|
|
|
|
|
|
|
public virtual string SourceFileOrDescription => string.Empty; |
|
|
public virtual string SourceFileOrDescription => string.Empty; |
|
|
|
|
|
|
|
|
public Configuration Configuration { get; set; } = Configuration.CreateDefaultInstance(); |
|
|
public Configuration Configuration { get; set; } |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Gets the utility instance to provide information about the test image & manage input/output.
|
|
|
/// Gets the utility instance to provide information about the test image & manage input/output.
|
|
|
|