public void TestDataDesegWithID() { //public static byte[] tableThree = { 5, 1, 2, 3, 4, 5, 2, 12, 2, 1, 0 }; byte[] b1 = SD.DesegWithIdFromTable(tableThree, 0); byte[] b2 = SD.DesegWithIdFromTable(tableThree, 1); byte[] b3 = SD.DesegWithIdFromTable(tableThree, 2); byte[] seg = SD.Seg(tableThree); byte[] b4 = SD.DesegWithIdFromSeg(seg, 1); Assert.AreEqual(b1, new byte[] { 1, 2, 3, 4, 5 }); Assert.AreEqual(b2, new byte[] { 12, 2 }); Assert.AreEqual(b3, new byte[] { 0 }); Assert.AreEqual(b4, new byte[] { 12, 2 }); }