public void EncodeBitstuffDecode() { var message = "???"; var coder = new BitstuffCoder(new BaseCoder()); var res = coder.Decode(coder.Encode(message)); Assert.AreEqual(message, res); }
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); } }