public void ToSigned24Bit_MinTest()
        {
            const int expected = -8388608; //Max value of 24 bit signed = -2^23

            var bytes = new byte[] { 0, 0, 128 };

            var actual = Bit24Converter.ToSignedInt24(bytes);

            Assert.AreEqual(expected, actual);
        }
        public void ToSigned24Bit_ZeroTest()
        {
            const int expected = 0;

            var bytes = new byte[] { 0, 0, 0 };

            var actual = Bit24Converter.ToSignedInt24(bytes);

            Assert.AreEqual(expected, actual);
        }
        public void ToSigned24Bit_MaxTest()
        {
            const int expected = 8388607; //Max value of 24 bit signed = 2^23 - 1

            var bytes = new byte[] { 255, 255, 127 };

            var actual = Bit24Converter.ToSignedInt24(bytes);

            Assert.AreEqual(expected, actual);
        }