diff --git a/tests/Directory.Build.targets b/tests/Directory.Build.targets
index 118005382..e9e93a855 100644
--- a/tests/Directory.Build.targets
+++ b/tests/Directory.Build.targets
@@ -29,7 +29,7 @@
-
+
diff --git a/tests/ImageSharp.Tests/Formats/Tga/TgaTestUtils.cs b/tests/ImageSharp.Tests/Formats/Tga/TgaTestUtils.cs
index 58ed31e61..0f76d9931 100644
--- a/tests/ImageSharp.Tests/Formats/Tga/TgaTestUtils.cs
+++ b/tests/ImageSharp.Tests/Formats/Tga/TgaTestUtils.cs
@@ -18,7 +18,7 @@ namespace SixLabors.ImageSharp.Tests.Formats.Tga
Image image,
bool useExactComparer = true,
float compareTolerance = 0.01f)
- where TPixel : unmanaged, ImageSharp.PixelFormats.IPixel
+ where TPixel : unmanaged, IPixel
{
string path = TestImageProvider.GetFilePathOrNull(provider);
if (path == null)
@@ -39,7 +39,7 @@ namespace SixLabors.ImageSharp.Tests.Formats.Tga
}
public static Image DecodeWithMagick(Configuration configuration, FileInfo fileInfo)
- where TPixel : unmanaged, ImageSharp.PixelFormats.IPixel
+ where TPixel : unmanaged, IPixel
{
using (var magickImage = new MagickImage(fileInfo))
{
@@ -48,7 +48,7 @@ namespace SixLabors.ImageSharp.Tests.Formats.Tga
Assert.True(result.TryGetSinglePixelSpan(out Span resultPixels));
- using (IUnsafePixelCollection pixels = magickImage.GetPixelsUnsafe())
+ using (IPixelCollection pixels = magickImage.GetPixelsUnsafe())
{
byte[] data = pixels.ToByteArray(PixelMapping.RGBA);
diff --git a/tests/ImageSharp.Tests/TestUtilities/ReferenceCodecs/MagickReferenceDecoder.cs b/tests/ImageSharp.Tests/TestUtilities/ReferenceCodecs/MagickReferenceDecoder.cs
index 61016f277..fae3ff5a5 100644
--- a/tests/ImageSharp.Tests/TestUtilities/ReferenceCodecs/MagickReferenceDecoder.cs
+++ b/tests/ImageSharp.Tests/TestUtilities/ReferenceCodecs/MagickReferenceDecoder.cs
@@ -17,7 +17,7 @@ namespace SixLabors.ImageSharp.Tests.TestUtilities.ReferenceCodecs
public static MagickReferenceDecoder Instance { get; } = new MagickReferenceDecoder();
private static void FromRgba32Bytes(Configuration configuration, Span rgbaBytes, IMemoryGroup destinationGroup)
- where TPixel : unmanaged, ImageSharp.PixelFormats.IPixel
+ where TPixel : unmanaged, IPixel
{
foreach (Memory m in destinationGroup)
{
@@ -32,7 +32,7 @@ namespace SixLabors.ImageSharp.Tests.TestUtilities.ReferenceCodecs
}
private static void FromRgba64Bytes(Configuration configuration, Span rgbaBytes, IMemoryGroup destinationGroup)
- where TPixel : unmanaged, ImageSharp.PixelFormats.IPixel
+ where TPixel : unmanaged, IPixel
{
foreach (Memory m in destinationGroup)
{
@@ -47,17 +47,17 @@ namespace SixLabors.ImageSharp.Tests.TestUtilities.ReferenceCodecs
}
public Task> DecodeAsync(Configuration configuration, Stream stream)
- where TPixel : unmanaged, ImageSharp.PixelFormats.IPixel
+ where TPixel : unmanaged, IPixel
=> Task.FromResult(this.Decode(configuration, stream));
public Image Decode(Configuration configuration, Stream stream)
- where TPixel : unmanaged, ImageSharp.PixelFormats.IPixel
+ where TPixel : unmanaged, IPixel
{
using var magickImage = new MagickImage(stream);
var result = new Image(configuration, magickImage.Width, magickImage.Height);
MemoryGroup resultPixels = result.GetRootFramePixelBuffer().FastMemoryGroup;
- using (IUnsafePixelCollection pixels = magickImage.GetPixelsUnsafe())
+ using (IPixelCollection pixels = magickImage.GetPixelsUnsafe())
{
if (magickImage.Depth == 8)
{