public void CtorOpenTest()
        {
            const int      userHeaderSize = 7;
            string         heapName       = "CtorOpenHeapTest";
            PersistentHeap heap           = InitHeap(heapName, userHeaderSize);

            heap.Close();
            heap = new PersistentHeap(heapName);
            Assert.AreEqual(userHeaderSize, heap.GetUserHeaderSize());
            heap.Close();
        }
        public void CtorCreateTest()
        {
            const int      userHeaderSize = 7;
            PersistentHeap heap           = InitHeap("CtorCreateHeapTest", userHeaderSize);

            Assert.AreEqual(userHeaderSize, heap.GetUserHeaderSize());
            heap.Close();

            const int      userHeaderSize2 = 25;
            PersistentHeap heap2           = InitHeap("CtorCreateHeapTest", userHeaderSize2);

            Assert.AreEqual(userHeaderSize2, heap2.GetUserHeaderSize());
            heap2.Close();
        }
        public void GetUserHeaderSizeTest()
        {
            const int      userHeaderSize = 77;
            PersistentHeap heap           = InitHeap("GetHeapUserHeaderSizeTest", userHeaderSize);

            try
            {
                Assert.AreEqual(userHeaderSize, heap.GetUserHeaderSize());
            }
            finally
            {
                heap.Close();
            }
        }