Пример #1
0
        public void CanReadDataset_ChunkedFixedArrayPaged()
        {
            foreach (var withShuffle in new bool[] { false, true })
            {
                // Arrange
                var version  = H5F.libver_t.LATEST;
                var filePath = TestUtils.PrepareTestFile(version, fileId => TestUtils.AddChunkedDataset_Fixed_Array_Paged(fileId, withShuffle));

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

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