Пример #1
0
        public void ReadFrom_Reads()
        {
            var data = Convert.FromBase64String("DAAAAD4wAAA=");

            var block = new CompressionResourceBlock();

            Assert.Equal(8, block.ReadFrom(data, 0));

            Assert.Equal(12350u, block.DataSize);
            Assert.Equal(12u, block.Offset);
            Assert.Equal(8, block.Size);
        }
Пример #2
0
        public void WriteTo_Throws()
        {
            var block = new CompressionResourceBlock();

            Assert.Throws <NotImplementedException>(() => block.WriteTo(Array.Empty <byte>(), 0));
        }