public void GoodFcs16Test()
        {
            const ushort GoodFcs16 = 0xf0b8;

            for (int fcs16Value = 0; fcs16Value <= ushort.MaxValue; ++fcs16Value)
            {
                ushort extraValue = (ushort)(fcs16Value ^ 0xffff); // Complement.
                Assert.AreEqual(GoodFcs16, PppFrameCheckSequenceCalculator.CalculateFrameCheckSequence16((ushort)fcs16Value, new[] { (byte)extraValue, (byte)(extraValue >> 8) }));
            }
        }
        public void RandomFcs16Test()
        {
            Random random = new Random();

            for (int i = 0; i != 100; ++i)
            {
                DataSegment data = random.NextDataSegment(random.Next(1000));
                ushort      fcs  = PppFrameCheckSequenceCalculator.CalculateFrameCheckSequence16(data);
            }
        }