// /*************************************************************************** // Aaru Data Preservation Suite // ---------------------------------------------------------------------------- // // Filename : Apridisk.cs // Author(s) : Natalia Portillo // // Component : Aaru unit testing. // // --[ License ] -------------------------------------------------------------- // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as // published by the Free Software Foundation, either version 3 of the // License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program. If not, see . // // ---------------------------------------------------------------------------- // Copyright © 2011-2021 Natalia Portillo // ****************************************************************************/ using System.IO; using Aaru.CommonTypes; using Aaru.CommonTypes.Interfaces; using NUnit.Framework; namespace Aaru.Tests.Images { [TestFixture] public class Apridisk : BlockMediaImageTest { public override string DataFolder => Path.Combine(Consts.TEST_FILES_ROOT, "Media image formats", "Apridisk"); public override IMediaImage _plugin => new DiscImages.Apridisk(); public override BlockImageTestExpected[] Tests => new[] { new BlockImageTestExpected { TestFile = "apr00001.dsk.lz", MediaType = MediaType.DOS_35_DS_DD_9, Sectors = 1440, SectorSize = 512, MD5 = "6c264287a3260a6d89e36dfcb1c98dce", Partitions = new[] { new BlockPartitionVolumes { Start = 0, Length = 1440 } } }, new BlockImageTestExpected { TestFile = "apr00002.dsk.lz", MediaType = MediaType.DOS_35_DS_DD_9, Sectors = 1440, SectorSize = 512, MD5 = "dd8e04939baeb0fcdb11ddade60c9a93", Partitions = new[] { new BlockPartitionVolumes { Start = 0, Length = 1440 } } }, new BlockImageTestExpected { TestFile = "apr00006.dsk.lz", MediaType = MediaType.DOS_35_DS_DD_9, Sectors = 1440, SectorSize = 512, MD5 = "89132d303ef6b0ff69f4cfd38e2a22a6", Partitions = new[] { new BlockPartitionVolumes { Start = 0, Length = 1440 } } }, new BlockImageTestExpected { TestFile = "apr00203.dsk.lz", MediaType = MediaType.DOS_35_DS_DD_9, Sectors = 1440, SectorSize = 512, MD5 = "cd34832ca3aa7f55e0dd8ba126372f97", Partitions = new[] { new BlockPartitionVolumes { Start = 0, Length = 1440 } } } }; } }