// Copyright 2017-2018 Alexander Luzgarev using System.IO; namespace MatFileHandler.Tests { /// /// Factory providing the parsed contents of .mat files, /// wrapped in a . /// public class PartialReadMatTestDataFactory : MatTestDataFactory { /// /// Initializes a new instance of the class. /// /// Directory containing test files. public PartialReadMatTestDataFactory(string testDirectory) : base(testDirectory) { } /// /// Read and parse data from a .mat file. /// /// Input stream. /// Parsed contents of the file. protected override IMatFile ReadDataFromStream(Stream stream) { using (var wrapper = new PartialUnseekableReadStream(stream)) { return base.ReadDataFromStream(wrapper); } } } }