public void H5Oexists_by_nameTest1() { Assert.IsTrue(H5L.create_soft("/oh my", m_v0_test_file, "AA") >= 0); hid_t gid = H5G.create(m_v0_test_file, "A/B/C", m_lcpl); Assert.IsTrue(gid >= 0); Assert.IsTrue(H5O.exists_by_name(m_v0_test_file, "A/B") > 0); Assert.IsTrue(H5O.exists_by_name(m_v0_test_file, "AA") == 0); Assert.IsTrue( H5O.exists_by_name(m_v0_test_file, "A/B/Caesar") < 0); Assert.IsTrue(H5G.close(gid) >= 0); Assert.IsTrue(H5L.create_soft("/oh my", m_v2_test_file, "AA") >= 0); gid = H5G.create(m_v2_test_file, "A/B/C", m_lcpl); Assert.IsTrue(gid >= 0); Assert.IsTrue(H5O.exists_by_name(m_v2_test_file, "A/B") > 0); Assert.IsTrue(H5O.exists_by_name(m_v2_test_file, "AA") == 0); Assert.IsTrue( H5O.exists_by_name(m_v2_test_file, "A/B/Caesar") < 0); Assert.IsTrue(H5G.close(gid) >= 0); }
public void H5Oexists_by_nameTest2() { Assert.IsFalse( H5O.exists_by_name(Utilities.RandomInvalidHandle(), (string)null) >= 0); }