public void H5Sset_extent_simpleTest1() { hid_t space = H5S.create(H5S.class_t.NULL); Assert.IsTrue(space > 0); hsize_t[] dims = { 10, 20, 30 }; Assert.IsTrue( H5S.set_extent_simple(space, 3, dims, null) >= 0); Assert.IsTrue(H5S.close(space) >= 0); }
public void H5Sset_extent_simpleTest2() { Assert.IsFalse( H5S.set_extent_simple(Utilities.RandomInvalidHandle(), 3, null, null) >= 0); }