public void H5Sget_select_boundsTest1() { hsize_t[] dims = { 1, 2, 3 }; hid_t space = H5S.create_simple(dims.Length, dims, dims); Assert.IsTrue(space > 0); Assert.IsTrue(H5S.select_all(space) >= 0); hsize_t[] start = new hsize_t[dims.Length]; hsize_t[] stop = new hsize_t[dims.Length]; Assert.IsTrue(H5S.get_select_bounds(space, start, stop) >= 0); for (int i = 0; i < dims.Length; ++i) { Assert.IsTrue(start[i] == 0); Assert.IsTrue(stop[i] == dims[i] - 1); } Assert.IsTrue(H5S.close(space) >= 0); }
public void H5Sget_select_boundsTest2() { Assert.IsFalse( H5S.get_select_bounds(Utilities.RandomInvalidHandle(), null, null) >= 0); }