public void TestFloat() { _sendBridgeStream.Write(10f); var data = _sendBridgeStream.Encode(); var receivePacket = new BridgeStream(data); var sendValue = receivePacket.ReadFloat(); Assert.AreEqual(10f, sendValue); }