From 3fdfcd8ee1964b55a8c14485f2fa64cea05f0069 Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Mon, 5 Dec 2016 07:36:07 +1100 Subject: [PATCH] Fix packed pixel tests. --- tests/ImageSharp.Tests/Colors/PackedPixelTests.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/ImageSharp.Tests/Colors/PackedPixelTests.cs b/tests/ImageSharp.Tests/Colors/PackedPixelTests.cs index 583191bfc..14f43b8e6 100644 --- a/tests/ImageSharp.Tests/Colors/PackedPixelTests.cs +++ b/tests/ImageSharp.Tests/Colors/PackedPixelTests.cs @@ -49,10 +49,10 @@ namespace ImageSharp.Tests.Colors new Alpha8(.5F).ToBytes(rgba, 0, ComponentOrder.XYZW); Assert.Equal(rgba, new byte[] { 0, 0, 0, 128 }); - new Alpha8(.5F).ToBytes(rgb, 0, ComponentOrder.ZYX); + new Alpha8(.5F).ToBytes(bgr, 0, ComponentOrder.ZYX); Assert.Equal(bgr, new byte[] { 0, 0, 0 }); - new Alpha8(.5F).ToBytes(rgb, 0, ComponentOrder.ZYXW); + new Alpha8(.5F).ToBytes(bgra, 0, ComponentOrder.ZYXW); Assert.Equal(bgra, new byte[] { 0, 0, 0, 128 }); } @@ -468,7 +468,7 @@ namespace ImageSharp.Tests.Colors r.ToBytes(rgba, 0, ComponentOrder.XYZW); Assert.Equal(rgba, new byte[] { 9, 115, 202, 127 }); - r.PackedValue = 0x7FCA7309; + r.PackedValue = 0xff4af389; r.ToBytes(rgba, 0, ComponentOrder.XYZW); Assert.Equal(rgba, new byte[] { 9, 115, 202, 127 }); }