public void TestIntArray() { _sendBridgeStream.Write(new int[] { 10, 11, 12 }); var data = _sendBridgeStream.Encode(); var receivePacket = new BridgeStream(data); var sendValue = receivePacket.ReadIntArray(); var expected = new int[] { 10, 11, 12 }; Assert.AreEqual(expected, sendValue); }