public void CalculateFletcherSumForTwoByteMessageWithOverflow()
        {
            byte[] message          = new byte[] { 0xF1, 0xF2 };
            byte[] expectedChecksum = new byte[] { 0xE4, 0xD6 };


            byte[] fletcherSum = ChecksumUtils.CalculateFletcher16Checksum(message);

            CollectionAssert.AreEqual(expectedChecksum, fletcherSum);
        }
        public void CalculateFletcherSumForSampleMessage()
        {
            byte[] message          = new byte[] { 0x07, 0x84, 0x09, 0x7E, 0x10, 0x58, 0x01, 0x00 };
            byte[] expectedChecksum = new byte[] { 0x7C, 0xD1 };


            byte[] fletcherSum = ChecksumUtils.CalculateFletcher16Checksum(message);

            CollectionAssert.AreEqual(expectedChecksum, fletcherSum);
        }
        public void CalculateFletcherSumForTwoByteMessage()
        {
            byte[] message          = new byte[] { 0x01, 0x02 };
            byte[] expectedChecksum = new byte[] { 0x03, 0x04 };


            byte[] fletcherSum = ChecksumUtils.CalculateFletcher16Checksum(message);

            CollectionAssert.AreEqual(expectedChecksum, fletcherSum);
        }