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); }
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); }