public void TestLong() { long dataValue = 1000; _sendBridgeStream.Write(dataValue); var data = _sendBridgeStream.Encode(); var receivePacket = new BridgeStream(data); var sendValue = receivePacket.ReadLong(); Assert.AreEqual(dataValue, sendValue); }