public void H5Fget_filesizeTest2() { hsize_t size = 0; Assert.IsFalse(H5F.get_filesize(Utilities.RandomInvalidHandle(), ref size) >= 0); }
public void H5Fget_filesizeTest1() { hsize_t size = 0; Assert.IsTrue(H5F.get_filesize(m_v0_class_file, ref size) >= 0); Assert.IsTrue(H5F.get_filesize(m_v2_class_file, ref size) >= 0); Assert.IsTrue(H5F.get_filesize(m_v0_test_file, ref size) >= 0); // the next two are "empty" and have a predictable size #if HDF5_VER1_10 Assert.IsTrue(size == 65536, String.Format("File size: {0}", size)); #else Assert.IsTrue(size == 2144, String.Format("File size: {0}", size)); #endif Assert.IsTrue(H5F.get_filesize(m_v2_test_file, ref size) >= 0); #if HDF5_VER1_10 Assert.IsTrue(size == 65536, String.Format("File size: {0}", size)); #else Assert.IsTrue(size == 2096, String.Format("File size: {0}", size)); #endif }