Ejemplo n.º 1
0
        public void ReadInts32Test()
        {
            // Well formed data
            byte[] streamData =
            {
                // Left
                100, 0, 0, 0,
                // Top
                1,   0, 0, 0,
                // Right
                200, 0, 0, 0,
                // Bottom
                55,  0, 0, 0,
            };
            WangStream wangStream = new WangStream(streamData);

            int[] data = new int[4];
            wangStream.ReadInts32(data, 4);
            Assert.AreEqual(100, data[0]);
            Assert.AreEqual(1, data[1]);
            Assert.AreEqual(200, data[2]);
            Assert.AreEqual(55, data[3]);
        }