private static void TestRightAlignSigned(ushort[] testValues, int bitsStored, int highBit, short[] expectedValues, bool asBytes, bool asOpposingEndian)
        {
            TestRightAlign(ref testValues, bitsStored, highBit, asBytes, asOpposingEndian);
            var newHighBit = highBit - DicomPixelData.GetLowBit(bitsStored, highBit);

            Assert.AreEqual(expectedValues, DicomSignedToSigned(testValues, newHighBit));
        }
        private static void TestRightAlignSigned(byte[] testValues, int bitsStored, int highBit, sbyte[] expectedValues)
        {
            Assert.IsTrue(DicomUncompressedPixelData.ZeroUnusedBits(testValues, bitsStored, highBit));
            Assert.IsTrue(DicomUncompressedPixelData.RightAlign(testValues, bitsStored, highBit));

            Assert.AreEqual(expectedValues, DicomSignedToSigned(testValues, highBit - DicomPixelData.GetLowBit(bitsStored, highBit)));
        }