コード例 #1
0
        public void TestLengthFromSegData()
        {
            Assert.AreEqual(SD.PreLenOfFirstSegFromTable(tableThree), 1);
            Assert.AreEqual(SD.PreLenOfFirstSegFromData(tableThree, 6), 1);
            Assert.AreEqual(SD.PreLenOfFirstSegFromData(tableThree, 9), 1);

            Assert.AreEqual(SD.BodyLenOfFirstSegFromTable(tableThree), 5);
            Assert.AreEqual(SD.BodyLenOfFirstSegFromData(tableThree, 6), 2);
            Assert.AreEqual(SD.BodyLenOfFirstSegFromData(tableThree, 9), 1);
        }