public void EncodeBitstuffDecode() { var message = "???"; var coder = new BitStuffing(); var res = coder.Decode(coder.Encode(message)); Assert.AreNotEqual(message, res); }
public void EncodeDecode() { for (int i = 0; i < 1000; i++) { var message = GenerateRandomMessage(); var coder = new BitStuffing(); var res = coder.Decode(coder.Encode(message)); Assert.AreEqual(message, res); } }