Browse Source

changed assertion in Rgba32_ToRgb24 to check each color channel separately

pull/603/head
popow 8 years ago
parent
commit
03faf82ff0
  1. 4
      tests/ImageSharp.Tests/PixelFormats/Rgba32Tests.cs

4
tests/ImageSharp.Tests/PixelFormats/Rgba32Tests.cs

@ -193,7 +193,9 @@ namespace SixLabors.ImageSharp.Tests.PixelFormats
rgba.ToRgb24(ref actual);
// assert
Assert.Equal(expected, actual);
Assert.Equal(expected.R, actual.R);
Assert.Equal(expected.G, actual.G);
Assert.Equal(expected.B, actual.B);
}
[Fact]

Loading…
Cancel
Save