private void PutGetUserHeaderTestAssert(byte[] newUserHeader) { PersistentHeap heap = InitHeap("PutGetHeapUserHeaderTest", newUserHeader.Length); try { heap.PutUserHeader(newUserHeader); byte[] actual = heap.GetUserHeader(); TestHelper.AssertByteArraysAreSame(newUserHeader, actual); } finally { heap.Close(); } }