public void PutGetUserHeaderTest() { const string tableName = "PutGetHashTableUserHeader"; const int tableSize = 88; const int keySize = 3; const int valueSize = 10; const int userHeaderSize = 6; PersistentHashTable hashTable = InitTable(tableName, tableSize, keySize, valueSize, userHeaderSize); try { byte[] newUserHeader = new byte[userHeaderSize] { 1, 2, 3, 4, 5, 6 }; hashTable.PutUserHeader(newUserHeader); byte[] actual = hashTable.GetUserHeader(); TestHelper.AssertByteArraysAreSame(newUserHeader, actual); } finally { hashTable.Close(); } }