示例#1
0
        public void UpdateRecordLengthCheckDoesNotRequireRelocation()
        {
            // create the initial index and convert to bytes.
            var dataIndex = new DataIndex(1, 1, 100, 100);
            Assert.IsFalse(dataIndex.RequiresRelocation);

            dataIndex.UpdateRecordLength(200);
            Assert.IsFalse(dataIndex.RequiresRelocation);
        }
示例#2
0
        public void UpdateRecordLengthNoPaddingFactorCheckDoesRequireRelocation()
        {
            // create the initial index and convert to bytes.
            var dataIndex = new DataIndex(1, 1, 100, 0);
            Assert.IsFalse(dataIndex.RequiresRelocation);

            dataIndex.UpdateRecordLength(101);
            Assert.IsTrue(dataIndex.RequiresRelocation);
        }