public void CanReadDataset_Contiguous_With_FillValue_And_AllocationLate() { // Arrange var version = H5F.libver_t.LATEST; var fillValue = 99; var filePath = TestUtils.PrepareTestFile(version, fileId => TestUtils.AddContiguousDatasetWithFillValueAndAllocationLate(fileId, fillValue)); var expected = Enumerable.Range(0, TestData.MediumData.Length) .Select(value => fillValue) .ToArray(); // Act using var root = H5File.OpenReadCore(filePath, deleteOnClose: true); var group = root.Group("fillvalue"); var dataset = group.Dataset($"{LayoutClass.Contiguous}"); var actual = dataset.Read <int>(); // Assert Assert.Equal(expected, actual); }