Ejemplo n.º 1
0
 public void H5Adelete_by_nameTest2()
 {
     Assert.IsFalse(
         H5A.delete_by_name(Utilities.RandomInvalidHandle(), "A", ".")
         >= 0);
     Assert.IsFalse(H5A.delete_by_name(m_v0_test_file, ".", ".") >= 0);
 }
Ejemplo n.º 2
0
        public void H5Adelete_by_nameTest1()
        {
            hid_t att = H5A.create(m_v0_class_file, "DNA", H5T.IEEE_F32BE,
                                   m_space_null);

            Assert.IsTrue(att >= 0);
            Assert.IsTrue(H5A.close(att) >= 0);

            att = H5A.create(m_v2_class_file, "DNA", H5T.IEEE_F32BE,
                             m_space_null);
            Assert.IsTrue(att >= 0);
            Assert.IsTrue(H5A.close(att) >= 0);

            att = H5A.create(m_v0_class_file, "DSA", H5T.IEEE_F32BE,
                             m_space_scalar);
            Assert.IsTrue(att >= 0);
            Assert.IsTrue(H5A.close(att) >= 0);

            att = H5A.create(m_v2_class_file, "DSA", H5T.IEEE_F32BE,
                             m_space_scalar);
            Assert.IsTrue(att >= 0);
            Assert.IsTrue(H5A.close(att) >= 0);

            Assert.IsTrue(H5A.delete_by_name(m_v0_class_file, ".", "DNA") >= 0);
            Assert.IsTrue(H5A.delete_by_name(m_v0_class_file, ".", "DSA") >= 0);
            Assert.IsTrue(H5A.delete_by_name(m_v2_class_file, ".", "DNA") >= 0);
            Assert.IsTrue(H5A.delete_by_name(m_v2_class_file, ".", "DSA") >= 0);
        }