public void H5Arename_by_nameTest2() { Assert.IsFalse( H5A.rename_by_name( Utilities.RandomInvalidHandle(), ".", "foo", "bar") >= 0); Assert.IsFalse( H5A.rename_by_name(m_v0_test_file, ".", "foo", "bar") >= 0); }
public void H5Arename_by_nameTest1() { hid_t att = H5A.create(m_v2_test_file, "A", H5T.IEEE_F64LE, m_space_scalar); Assert.IsTrue(att >= 0); Assert.IsTrue(H5A.close(att) >= 0); Assert.IsTrue(H5A.rename_by_name(m_v2_test_file, ".", "A", "new A") >= 0); Assert.IsFalse( H5A.rename_by_name(m_v2_test_file, ".", "A", "new A") >= 0); att = H5A.create(m_v0_test_file, "A", H5T.IEEE_F64LE, m_space_scalar); Assert.IsTrue(att >= 0); Assert.IsTrue(H5A.close(att) >= 0); Assert.IsTrue( H5A.rename_by_name(m_v0_test_file, ".", "A", "new A") >= 0); }