public void TestByte() { byte value = 1; _sendBridgeStream.Write(value); var data = _sendBridgeStream.Encode(); var receivePacket = new BridgeStream(data); var sendValue = receivePacket.ReadByte(); Assert.AreEqual((byte)1, sendValue); }