Beispiel #1
0
        public void TestIntList()
        {
            _sendBridgeStream.Write(new List <int>()
            {
                10, 11, 12
            });
            var data = _sendBridgeStream.Encode();

            var receivePacket = new BridgeStream(data);
            var sendValue     = receivePacket.ReadIntList();
            var expected      = new List <int>()
            {
                10, 11, 12
            };

            Assert.AreEqual(expected, sendValue);
        }
Beispiel #2
0
 public void Read(BridgeStream stream)
 {
     matchId     = stream.ReadInt();
     playerIds   = stream.ReadIntList();
     playerNames = stream.ReadStringList();
 }