Example #1
0
        public void objectsIO()
        {
            MemoryStream buff = new MemoryStream();
            Object[] objects = new Object[] { "hello", 42 };

            XdrCoding.putObjects(buff, objects);

            buff.Position = 0;

            Object[] objectsCopy = XdrCoding.getObjects(buff);

            Assert.IsTrue(objects.SequenceEqual(objectsCopy));
        }