Files
Aaru/Aaru.Tests/Images/DiskCopy633/NDIF/ROCo.cs

242 lines
7.8 KiB
C#

// /***************************************************************************
// Aaru Data Preservation Suite
// ----------------------------------------------------------------------------
//
// Filename : ROCo.cs
// Author(s) : Natalia Portillo <claunia@claunia.com>
//
// 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/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2011-2023 Natalia Portillo
// ****************************************************************************/
using System.Diagnostics.CodeAnalysis;
using System.IO;
using Aaru.CommonTypes;
using Aaru.CommonTypes.Interfaces;
using Aaru.DiscImages;
using NUnit.Framework;
namespace Aaru.Tests.Images.DiskCopy633.NDIF;
[TestFixture]
[SuppressMessage("ReSharper", "InconsistentNaming")]
public class ROCo : BlockMediaImageTest
{
public override string DataFolder =>
Path.Combine(Consts.TestFilesRoot, "Media image formats", "DiskCopy 6.3.3", "NDIF", "ROCo");
public override IMediaImage Plugin => new Ndif();
public override BlockImageTestExpected[] Tests => new[]
{
new BlockImageTestExpected
{
TestFile = "DC6_RC_DOS_1440.img",
MediaType = MediaType.DOS_35_HD,
Sectors = 2880,
SectorSize = 512,
Md5 = "ff419213080574056ebd9adf7bab3d32",
Partitions = new[]
{
new BlockPartitionVolumes
{
Start = 0,
Length = 2880
}
}
},
new BlockImageTestExpected
{
TestFile = "DC6_RC_DOS_1440.smi",
MediaType = MediaType.DOS_35_HD,
Sectors = 2880,
SectorSize = 512,
Md5 = "ff419213080574056ebd9adf7bab3d32",
Partitions = new[]
{
new BlockPartitionVolumes
{
Start = 0,
Length = 2880
}
}
},
new BlockImageTestExpected
{
TestFile = "DC6_RC_DOS_720.img",
MediaType = MediaType.DOS_35_DS_DD_9,
Sectors = 1440,
SectorSize = 512,
Md5 = "c2be571406cf6353269faa59a4a8c0a4",
Partitions = new[]
{
new BlockPartitionVolumes
{
Start = 0,
Length = 1440
}
}
},
new BlockImageTestExpected
{
TestFile = "DC6_RC_DOS_720.smi",
MediaType = MediaType.DOS_35_DS_DD_9,
Sectors = 1440,
SectorSize = 512,
Md5 = "c2be571406cf6353269faa59a4a8c0a4",
Partitions = new[]
{
new BlockPartitionVolumes
{
Start = 0,
Length = 1440
}
}
},
new BlockImageTestExpected
{
TestFile = "DC6_RC_DOS_DMF.img",
MediaType = MediaType.DMF,
Sectors = 3360,
SectorSize = 512,
Md5 = "92ea7a359957012a682ba126cfdef0ce",
Partitions = new[]
{
new BlockPartitionVolumes
{
Start = 0,
Length = 3360
}
}
},
new BlockImageTestExpected
{
TestFile = "DC6_RC_DOS_DMF.smi",
MediaType = MediaType.DMF,
Sectors = 3360,
SectorSize = 512,
Md5 = "92ea7a359957012a682ba126cfdef0ce",
Partitions = new[]
{
new BlockPartitionVolumes
{
Start = 0,
Length = 3360
}
}
},
new BlockImageTestExpected
{
TestFile = "DC6_RC_HFS_1440.img",
MediaType = MediaType.DOS_35_HD,
Sectors = 2880,
SectorSize = 512,
Md5 = "3160038ca028ccf52ad7863790072145"
},
new BlockImageTestExpected
{
TestFile = "DC6_RC_HFS_1440.smi",
MediaType = MediaType.DOS_35_HD,
Sectors = 2880,
SectorSize = 512,
Md5 = "3160038ca028ccf52ad7863790072145"
},
new BlockImageTestExpected
{
TestFile = "DC6_RC_HFS_800.img",
MediaType = MediaType.AppleSonyDS,
Sectors = 1600,
SectorSize = 512,
Md5 = "5e255c4bc0f6a26ecd27845b37e65aaa"
},
new BlockImageTestExpected
{
TestFile = "DC6_RC_HFS_800.smi",
MediaType = MediaType.AppleSonyDS,
Sectors = 1600,
SectorSize = 512,
Md5 = "5e255c4bc0f6a26ecd27845b37e65aaa"
},
new BlockImageTestExpected
{
TestFile = "DC6_RC_HFS_DMF.img",
MediaType = MediaType.DMF,
Sectors = 3360,
SectorSize = 512,
Md5 = "652dc979c177f2d8e846587158b38478"
},
new BlockImageTestExpected
{
TestFile = "DC6_RC_HFS_DMF.smi",
MediaType = MediaType.DMF,
Sectors = 3360,
SectorSize = 512,
Md5 = "652dc979c177f2d8e846587158b38478"
},
new BlockImageTestExpected
{
TestFile = "DC6_RC_PD_1440.img",
MediaType = MediaType.DOS_35_HD,
Sectors = 2880,
SectorSize = 512,
Md5 = "7975e8cf7579a6848d6fb4e546d1f682"
},
new BlockImageTestExpected
{
TestFile = "DC6_RC_PD_1440.smi",
MediaType = MediaType.DOS_35_HD,
Sectors = 2880,
SectorSize = 512,
Md5 = "7975e8cf7579a6848d6fb4e546d1f682"
},
new BlockImageTestExpected
{
TestFile = "DC6_RC_PD_800.img",
MediaType = MediaType.AppleSonyDS,
Sectors = 1600,
SectorSize = 512,
Md5 = "a72da7aedadbe194c22a3d71c62e4766"
},
new BlockImageTestExpected
{
TestFile = "DC6_RC_PD_800.smi",
MediaType = MediaType.AppleSonyDS,
Sectors = 1600,
SectorSize = 512,
Md5 = "a72da7aedadbe194c22a3d71c62e4766"
},
new BlockImageTestExpected
{
TestFile = "DC6_RC_PD_DMF.img",
MediaType = MediaType.DMF,
Sectors = 3360,
SectorSize = 512,
Md5 = "7fbf0251a93cb36d98e68b7d19624de5"
},
new BlockImageTestExpected
{
TestFile = "DC6_RC_PD_DMF.smi",
MediaType = MediaType.DMF,
Sectors = 3360,
SectorSize = 512,
Md5 = "7fbf0251a93cb36d98e68b7d19624de5"
}
};
}