public void TestVector3() { _sendBridgeStream.Write(new Vector3(04f, 05f, 06f)); var data = _sendBridgeStream.Encode(); var receivePacket = new BridgeStream(data); var sendValue = receivePacket.ReadVector3(); Assert.AreEqual(04f, sendValue.x); Assert.AreEqual(05f, sendValue.y); Assert.AreEqual(06f, sendValue.z); }