diff --git a/tests/Directory.Build.targets b/tests/Directory.Build.targets
index 9ee9c226d..da21cbb75 100644
--- a/tests/Directory.Build.targets
+++ b/tests/Directory.Build.targets
@@ -48,8 +48,8 @@
-
-
+
+
diff --git a/tests/ImageSharp.Tests/PixelFormats/PixelBlenders/PorterDuffFunctionsTests_TPixel.cs b/tests/ImageSharp.Tests/PixelFormats/PixelBlenders/PorterDuffFunctionsTests_TPixel.cs
index 859be6b20..6706e4077 100644
--- a/tests/ImageSharp.Tests/PixelFormats/PixelBlenders/PorterDuffFunctionsTests_TPixel.cs
+++ b/tests/ImageSharp.Tests/PixelFormats/PixelBlenders/PorterDuffFunctionsTests_TPixel.cs
@@ -29,8 +29,8 @@ namespace SixLabors.ImageSharp.Tests.PixelFormats.PixelBlenders
public void NormalBlendFunction(TestPixel back, TestPixel source, float amount, TestPixel expected)
where TPixel : struct, IPixel
{
- TPixel actual = PorterDuffFunctions.NormalSrcOver((TPixel)back, source, amount);
- VectorAssert.Equal(expected, actual, 2);
+ TPixel actual = PorterDuffFunctions.NormalSrcOver(back.AsPixel(), source.AsPixel(), amount);
+ VectorAssert.Equal(expected.AsPixel(), actual, 2);
}
[Theory]
@@ -38,8 +38,8 @@ namespace SixLabors.ImageSharp.Tests.PixelFormats.PixelBlenders
public void NormalBlendFunctionBlender(TestPixel back, TestPixel source, float amount, TestPixel expected)
where TPixel : struct, IPixel
{
- TPixel actual = new DefaultPixelBlenders.NormalSrcOver().Blend(back, source, amount);
- VectorAssert.Equal(expected, actual, 2);
+ TPixel actual = new DefaultPixelBlenders.NormalSrcOver().Blend(back.AsPixel(), source.AsPixel(), amount);
+ VectorAssert.Equal(expected.AsPixel(), actual, 2);
}
[Theory]
@@ -49,7 +49,7 @@ namespace SixLabors.ImageSharp.Tests.PixelFormats.PixelBlenders
{
var dest = new Span(new TPixel[1]);
new DefaultPixelBlenders.NormalSrcOver().Blend(this.Configuration, dest, back.AsSpan(), source.AsSpan(), AsSpan(amount));
- VectorAssert.Equal(expected, dest[0], 2);
+ VectorAssert.Equal(expected.AsPixel(), dest[0], 2);
}
public static TheoryData