mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
109 lines
3.5 KiB
C#
109 lines
3.5 KiB
C#
// /***************************************************************************
|
|
// Aaru Data Preservation Suite
|
|
// ----------------------------------------------------------------------------
|
|
//
|
|
// Filename : Apridisk.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-2025 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.TestFilesRoot, "Media image formats", "Apridisk");
|
|
public override IMediaImage Plugin => new Aaru.Images.Apridisk();
|
|
|
|
public override BlockImageTestExpected[] Tests =>
|
|
[
|
|
new()
|
|
{
|
|
TestFile = "apr00001.dsk.lz",
|
|
MediaType = MediaType.DOS_35_DS_DD_9,
|
|
Sectors = 1440,
|
|
SectorSize = 512,
|
|
Md5 = "6c264287a3260a6d89e36dfcb1c98dce",
|
|
Partitions =
|
|
[
|
|
new BlockPartitionVolumes
|
|
{
|
|
Start = 0,
|
|
Length = 1440
|
|
}
|
|
]
|
|
},
|
|
new()
|
|
{
|
|
TestFile = "apr00002.dsk.lz",
|
|
MediaType = MediaType.DOS_35_DS_DD_9,
|
|
Sectors = 1440,
|
|
SectorSize = 512,
|
|
Md5 = "dd8e04939baeb0fcdb11ddade60c9a93",
|
|
Partitions =
|
|
[
|
|
new BlockPartitionVolumes
|
|
{
|
|
Start = 0,
|
|
Length = 1440
|
|
}
|
|
]
|
|
},
|
|
new()
|
|
{
|
|
TestFile = "apr00006.dsk.lz",
|
|
MediaType = MediaType.DOS_35_DS_DD_9,
|
|
Sectors = 1440,
|
|
SectorSize = 512,
|
|
Md5 = "89132d303ef6b0ff69f4cfd38e2a22a6",
|
|
Partitions =
|
|
[
|
|
new BlockPartitionVolumes
|
|
{
|
|
Start = 0,
|
|
Length = 1440
|
|
}
|
|
]
|
|
},
|
|
new()
|
|
{
|
|
TestFile = "apr00203.dsk.lz",
|
|
MediaType = MediaType.DOS_35_DS_DD_9,
|
|
Sectors = 1440,
|
|
SectorSize = 512,
|
|
Md5 = "cd34832ca3aa7f55e0dd8ba126372f97",
|
|
Partitions =
|
|
[
|
|
new BlockPartitionVolumes
|
|
{
|
|
Start = 0,
|
|
Length = 1440
|
|
}
|
|
]
|
|
}
|
|
];
|
|
} |