예제 #1
0
 public void Test_EncodeVWI_Forward()
 {
     byte[] vli = Mobi.EncodeVWI(69905, true);
     CollectionAssert.AreEqual(vli, new byte[] { 0x4, 0x22, 0x91 });
 }
예제 #2
0
 public void Test_EncodeVWI_Reverse()
 {
     byte[] vli = Mobi.EncodeVWI(69905, false);
     CollectionAssert.AreEqual(vli, new byte[] { 0x84, 0x22, 0x11 });
 }