示例#1
0
        public void EncodeBitstuffDecode()
        {
            var message = "???";
            var coder   = new BitstuffCoder(new BaseCoder());

            var res = coder.Decode(coder.Encode(message));

            Assert.AreEqual(message, res);
        }
示例#2
0
        public void EncodeDecode()
        {
            for (int i = 0; i < 1000; i++)
            {
                var message = GenerateRandomMessage();
                var coder   = new BitstuffCoder(new BaseCoder());

                var res = coder.Decode(coder.Encode(message));

                Assert.AreEqual(message, res);
            }
        }