Exemplo n.º 1
0
        public void Test_DecodeVWI_Forward()
        {
            uint vli = Mobi.DecodeVWI(new byte[] { 0x99, 0x84, 0x22, 0x11 }, true, out int i);

            Assert.AreEqual((uint)25, vli);
            Assert.AreEqual(1, i);
        }
Exemplo n.º 2
0
        public void Test_DecodeVWI_Reverse()
        {
            uint vli = Mobi.DecodeVWI(new byte[] { 0x99, 0x84, 0x22, 0x11 }, false, out int i);

            Assert.AreEqual((uint)69905, vli);
            Assert.AreEqual(3, i);
        }