Skip to content

Commit

Permalink
Build fixes for the Q16-HDRI build.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Jul 27, 2024
1 parent e955419 commit f75f7f4
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tests/Magick.NET.Tests/MagickImageTests/TheClampMethod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ public void ShouldClampThePixelsToTheQuantumRange()
using var pixels = image.GetPixelsUnsafe();
var pixel = pixels.GetPixel(0, 0);

Assert.Equal(Quantum.Max, pixel.GetChannel(image.ChannelOffset(PixelChannel.Cyan)));
Assert.Equal(Quantum.Max, pixel.GetChannel(image.ChannelOffset(PixelChannel.Magenta)));
Assert.Equal(Quantum.Max, pixel.GetChannel(image.ChannelOffset(PixelChannel.Yellow)));
Assert.Equal(Quantum.Max, pixel.GetChannel(image.ChannelOffset(PixelChannel.Black)));
Assert.Equal(Quantum.Max, pixel.GetChannel(image.ChannelOffset(PixelChannel.Alpha)));
Assert.Equal(Quantum.Max, pixel.GetChannel(image.ChannelOffset(PixelChannel.Cyan).Value));
Assert.Equal(Quantum.Max, pixel.GetChannel(image.ChannelOffset(PixelChannel.Magenta).Value));
Assert.Equal(Quantum.Max, pixel.GetChannel(image.ChannelOffset(PixelChannel.Yellow).Value));
Assert.Equal(Quantum.Max, pixel.GetChannel(image.ChannelOffset(PixelChannel.Black).Value));
Assert.Equal(Quantum.Max, pixel.GetChannel(image.ChannelOffset(PixelChannel.Alpha).Value));
#endif
}

Expand All @@ -39,11 +39,11 @@ public void ShouldClampThePixelsToTheQuantumRangeForTheSpecifiedChannel()
using var pixels = image.GetPixelsUnsafe();
var pixel = pixels.GetPixel(0, 0);

Assert.Equal(value, pixel.GetChannel(image.ChannelOffset(PixelChannel.Cyan)));
Assert.Equal(value, pixel.GetChannel(image.ChannelOffset(PixelChannel.Magenta)));
Assert.Equal(Quantum.Max, pixel.GetChannel(image.ChannelOffset(PixelChannel.Yellow)));
Assert.Equal(Quantum.Max, pixel.GetChannel(image.ChannelOffset(PixelChannel.Black)));
Assert.Equal(value, pixel.GetChannel(image.ChannelOffset(PixelChannel.Alpha)));
Assert.Equal(value, pixel.GetChannel(image.ChannelOffset(PixelChannel.Cyan).Value));
Assert.Equal(value, pixel.GetChannel(image.ChannelOffset(PixelChannel.Magenta).Value));
Assert.Equal(Quantum.Max, pixel.GetChannel(image.ChannelOffset(PixelChannel.Yellow).Value));
Assert.Equal(Quantum.Max, pixel.GetChannel(image.ChannelOffset(PixelChannel.Black).Value));
Assert.Equal(value, pixel.GetChannel(image.ChannelOffset(PixelChannel.Alpha).Value));
#endif
}
}
Expand Down

0 comments on commit f75f7f4

Please sign in to comment.