Exemple #1
0
        public void CanReadDataset_Compact()
        {
            TestUtils.RunForAllVersions(version =>
            {
                // Arrange
                var filePath = TestUtils.PrepareTestFile(version, fileId => TestUtils.AddCompactDataset(fileId));

                // Act
                using var root = H5File.OpenReadCore(filePath, deleteOnClose: true);
                var parent     = root.Group("compact");
                var dataset    = parent.Dataset("compact");
                var actual     = dataset.Read <int>();

                // Assert
                Assert.True(actual.SequenceEqual(TestData.SmallData));
            });
        }