Пример #1
0
        public void H5Odecr_refcountTest1()
        {
            hid_t gid = H5G.create(m_v0_test_file, "A/B/C", m_lcpl);

            Assert.IsTrue(gid >= 0);

            // Don't try this at home!
            Assert.IsTrue(H5O.decr_refcount(gid) >= 0);

            Assert.IsTrue(H5G.close(gid) >= 0);

            gid = H5G.create(m_v2_test_file, "A/B/C", m_lcpl);
            Assert.IsTrue(gid >= 0);

            // Don't try this at home!
            Assert.IsTrue(H5O.decr_refcount(gid) >= 0);

            Assert.IsTrue(H5G.close(gid) >= 0);
        }
Пример #2
0
 public void H5Odecr_refcountTest2()
 {
     Assert.IsFalse(
         H5O.decr_refcount(Utilities.RandomInvalidHandle()) >= 0);
 }