예제 #1
0
        public void ReadBytesTest()
        {
            var stream = new BinaryStream();

            stream.WriteByte(128);
            stream.WriteUInt(0x12345678);
            stream.Reset();
            Assert.True(stream.ReadBytes().Length == 5);
            stream.Reset();
            Assert.False(stream.IsEndOfStream());
            stream.Position = 3;
            Assert.False(stream.IsEndOfStream());
            stream.Position = 4;
            Assert.True(stream.IsEndOfStream());
        }