示例#1
0
 public void H5EpushTest1()
 {
     Assert.IsTrue(
         H5E.push(H5E.DEFAULT, "hello.c", "sqrt", 77, H5E.ERR_CLS,
                  H5E.NONE_MAJOR, H5E.NONE_MINOR, "Hello, World!") >= 0);
     Assert.IsTrue(
         H5E.get_num(H5E.DEFAULT).ToInt32() > 0);
 }
示例#2
0
        public void H5Eget_numTest1()
        {
            hid_t est = H5E.get_current_stack();

            Assert.IsTrue(est >= 0);
            ssize_t size = H5E.get_num(est);

            Assert.IsTrue(size.ToInt32() >= 0);
            Assert.IsTrue(H5E.close_stack(est) >= 0);
        }
示例#3
0
 public void H5Eget_numTest2()
 {
     Assert.IsFalse(
         H5E.get_num(Utilities.RandomInvalidHandle()).ToInt32() >= 0);
 }