Files
Aaru/Aaru.Tests/Images/DiskCopy42.cs

116 lines
4.1 KiB
C#
Raw Normal View History

// /***************************************************************************
2020-07-25 02:01:36 +01:00
// Aaru Data Preservation Suite
// ----------------------------------------------------------------------------
//
// Filename : DiskCopy42.cs
// Author(s) : Natalia Portillo <claunia@claunia.com>
//
2020-07-25 02:01:36 +01:00
// 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 <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
2022-02-18 10:02:53 +00:00
// Copyright © 2011-2022 Natalia Portillo
// ****************************************************************************/
using System.IO;
2020-02-27 00:33:26 +00:00
using Aaru.CommonTypes;
using Aaru.CommonTypes.Interfaces;
using NUnit.Framework;
namespace Aaru.Tests.Images;
2022-03-06 13:29:38 +00:00
[TestFixture]
public class DiskCopy42 : BlockMediaImageTest
{
public override string DataFolder => Path.Combine(Consts.TestFilesRoot, "Media image formats", "DiskCopy 4.2");
public override IMediaImage Plugin => new DiscImages.DiskCopy42();
2022-03-06 13:29:38 +00:00
public override BlockImageTestExpected[] Tests => new[]
{
2022-03-06 13:29:38 +00:00
new BlockImageTestExpected
{
TestFile = "hfs.dsk.lz",
MediaType = MediaType.AppleSonyDS,
Sectors = 1600,
SectorSize = 512,
2022-03-15 01:37:37 +00:00
Md5 = "2762f41d0379b476042fc62891baac84"
2022-03-06 13:29:38 +00:00
},
new BlockImageTestExpected
{
TestFile = "mf1dd_hfs.img.lz",
MediaType = MediaType.AppleSonySS,
Sectors = 800,
SectorSize = 512,
2022-03-15 01:37:37 +00:00
Md5 = "eae3a95671d077deb702b3549a769f56"
2022-03-06 13:29:38 +00:00
},
new BlockImageTestExpected
{
TestFile = "mf1dd_mfs.img.lz",
MediaType = MediaType.AppleSonySS,
Sectors = 800,
SectorSize = 512,
2022-03-15 01:37:37 +00:00
Md5 = "c5d92544c3e78b7f0a9b4baaa9a64eec"
2022-03-06 13:29:38 +00:00
},
new BlockImageTestExpected
{
TestFile = "mf2dd_hfs.img.lz",
MediaType = MediaType.AppleSonyDS,
Sectors = 1600,
SectorSize = 512,
2022-03-15 01:37:37 +00:00
Md5 = "a99744348a70b62b57bce2dec9132ced"
2022-03-06 13:29:38 +00:00
},
new BlockImageTestExpected
{
TestFile = "mf2dd_mfs.img.lz",
MediaType = MediaType.AppleSonyDS,
Sectors = 1600,
SectorSize = 512,
2022-03-15 01:37:37 +00:00
Md5 = "93e71b9ecdb39d3ec9245b4f451856d4"
2022-03-06 13:29:38 +00:00
},
new BlockImageTestExpected
{
TestFile = "modified.dsk.lz",
MediaType = MediaType.AppleSonyDS,
Sectors = 1600,
SectorSize = 512,
2022-03-15 01:37:37 +00:00
Md5 = "b748f6df3e60e7169d42ec6fcc857ea4"
2022-03-06 13:29:38 +00:00
},
new BlockImageTestExpected
{
TestFile = "pascal800.dsk.lz",
MediaType = MediaType.AppleSonyDS,
Sectors = 1600,
SectorSize = 512,
2022-03-15 01:37:37 +00:00
Md5 = "dbd0ec8a3126236910709faf923adcf2"
2022-03-06 13:29:38 +00:00
},
new BlockImageTestExpected
{
TestFile = "prodos1440.dsk.lz",
MediaType = MediaType.AppleSonyDS,
Sectors = 1600,
SectorSize = 512,
2022-03-15 01:37:37 +00:00
Md5 = "fcf747bd356b48d442ff74adb8f3516b"
2022-03-06 13:29:38 +00:00
},
new BlockImageTestExpected
{
2022-03-06 13:29:38 +00:00
TestFile = "prodos800.dsk.lz",
MediaType = MediaType.AppleSonyDS,
Sectors = 1600,
SectorSize = 512,
2022-03-15 01:37:37 +00:00
Md5 = "fcf747bd356b48d442ff74adb8f3516b"
2022-03-06 13:29:38 +00:00
}
};
2017-12-19 20:33:03 +00:00
}