// /*************************************************************************** // Aaru Data Preservation Suite // ---------------------------------------------------------------------------- // // Filename : DiskCopy42.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.DiskCopy633 { [TestFixture] public class DiskCopy42 : BlockMediaImageTest { public override string[] _testFiles => new[] { "DC6_42_DOS_1440.img", "DC6_42_DOS_720.img", "DC6_42_HFS_1440.img", "DC6_42_HFS_800.img", "DC6_42_PD_1440.img", "DC6_42_PD_800.img" }; public override ulong[] _sectors => new ulong[] { // DC6_42_DOS_1440.img 2880, // DC6_42_DOS_720.img 1440, // DC6_42_HFS_1440.img 2880, // DC6_42_HFS_800.img 1600, // DC6_42_PD_1440.img 2880, // DC6_42_PD_800.img 1600 }; public override uint[] _sectorSize => new uint[] { // DC6_42_DOS_1440.img 512, // DC6_42_DOS_720.img 512, // DC6_42_HFS_1440.img 512, // DC6_42_HFS_800.img 512, // DC6_42_PD_1440.img 512, // DC6_42_PD_800.img 512 }; public override MediaType[] _mediaTypes => new[] { // DC6_42_DOS_1440.img MediaType.DOS_35_HD, // DC6_42_DOS_720.img MediaType.DOS_35_DS_DD_9, // DC6_42_HFS_1440.img MediaType.DOS_35_HD, // DC6_42_HFS_800.img MediaType.AppleSonyDS, // DC6_42_PD_1440.img MediaType.DOS_35_HD, // DC6_42_PD_800.img MediaType.AppleSonyDS }; public override string[] _md5S => new[] { // DC6_42_DOS_1440.img "ff419213080574056ebd9adf7bab3d32", // DC6_42_DOS_720.img "c2be571406cf6353269faa59a4a8c0a4", // DC6_42_HFS_1440.img "3160038ca028ccf52ad7863790072145", // DC6_42_HFS_800.img "5e255c4bc0f6a26ecd27845b37e65aaa", // DC6_42_PD_1440.img "7975e8cf7579a6848d6fb4e546d1f682", // DC6_42_PD_800.img "a72da7aedadbe194c22a3d71c62e4766" }; public override string _dataFolder => Path.Combine(Consts.TEST_FILES_ROOT, "Media image formats", "DiskCopy 6.3.3", "DiskCopy 4.2"); public override IMediaImage _plugin => new DiscImages.DiskCopy42(); } }