// /*************************************************************************** // Aaru Data Preservation Suite // ---------------------------------------------------------------------------- // // Filename : NHDr0.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 Aaru.DiscImages; using NUnit.Framework; namespace Aaru.Tests.Images { [TestFixture] public class NHDr0 : BlockMediaImageTest { public override string DataFolder => Path.Combine(Consts.TEST_FILES_ROOT, "Media image formats", "T-98 Next"); public override IMediaImage _plugin => new Nhdr0(); public override BlockImageTestExpected[] Tests => new[] { new BlockImageTestExpected { TestFile = "t98n_128.nhd.lz", MediaType = MediaType.GENERIC_HDD, Sectors = 261120, SectorSize = 512, MD5 = "af7c3cfa315b6661300017f865bf26d6" }, new BlockImageTestExpected { TestFile = "t98n_20.nhd.lz", MediaType = MediaType.GENERIC_HDD, Sectors = 40800, SectorSize = 512, MD5 = "bcb390d0b4d12feac29dbadc1a623c99" }, new BlockImageTestExpected { TestFile = "t98n_256.nhd.lz", MediaType = MediaType.GENERIC_HDD, Sectors = 522240, SectorSize = 512, MD5 = "e50e78b3742f5f89dd1a5573ba3141c4" }, new BlockImageTestExpected { TestFile = "t98n_41.nhd.lz", MediaType = MediaType.GENERIC_HDD, Sectors = 83640, SectorSize = 512, MD5 = "007acca6fb53f90728d78f7c40c2b094" }, new BlockImageTestExpected { TestFile = "t98n_512.nhd.lz", MediaType = MediaType.GENERIC_HDD, Sectors = 1044480, SectorSize = 512, MD5 = "42d1cb6fc2a9df39ecd53002edd978d6" }, new BlockImageTestExpected { TestFile = "t98n_65.nhd.lz", MediaType = MediaType.GENERIC_HDD, Sectors = 132600, SectorSize = 512, MD5 = "b53f5b406234663de6c2bdffac88322d" }, new BlockImageTestExpected { TestFile = "t98n_80.nhd.lz", MediaType = MediaType.GENERIC_HDD, Sectors = 163200, SectorSize = 512, MD5 = "fe9ecc6f0b5beb9635a1595155941925" } }; } }