public void TestCPGPSRequest() { CPGPSRequest req = new CPGPSRequest(); req.ReturnAddress = 5690820958; byte[] buffer = req.serialize(); CPGPSRequest req2 = new CPGPSRequest(); req2.deserialize(new VRage.ByteStream(buffer, buffer.Length)); Assert.AreEqual(req.MsgType, req2.MsgType); Assert.AreEqual(req.ReturnAddress, req2.ReturnAddress); }
public void TestCPGPSRequest() { CPGPSRequest req = new CPGPSRequest(); req.ReturnAddress = 5690820958; byte[] buffer = req.serialize(); CPGPSRequest req2 = new CPGPSRequest(); req2.deserialize(new VRage.ByteStream(buffer, buffer.Length)); Assert.AreEqual(req.MsgType, req2.MsgType); Assert.AreEqual(req.ReturnAddress, req2.ReturnAddress); }