Files
Aaru/Aaru.Tests/Images/Apridisk.cs

109 lines
3.6 KiB
C#
Raw Normal View History

2021-02-22 05:02:01 +00:00
// /***************************************************************************
// 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/>.
//
// ----------------------------------------------------------------------------
2024-05-01 04:17:32 +01:00
// Copyright © 2011-2024 Natalia Portillo
2021-02-22 05:02:01 +00:00
// ****************************************************************************/
using System.IO;
using Aaru.CommonTypes;
using Aaru.CommonTypes.Interfaces;
2021-02-22 05:02:01 +00:00
using NUnit.Framework;
namespace Aaru.Tests.Images;
2022-03-06 13:29:38 +00:00
[TestFixture]
public class Apridisk : BlockMediaImageTest
2021-02-22 05:02:01 +00:00
{
2022-11-13 05:48:58 +00:00
public override string DataFolder => Path.Combine(Consts.TestFilesRoot, "Media image formats", "Apridisk");
public override IMediaImage Plugin => new Aaru.Images.Apridisk();
2021-02-22 05:02:01 +00:00
2024-05-01 04:39:38 +01:00
public override BlockImageTestExpected[] Tests =>
[
2022-03-06 13:29:38 +00:00
new BlockImageTestExpected
2021-02-22 05:02:01 +00:00
{
2022-03-06 13:29:38 +00:00
TestFile = "apr00001.dsk.lz",
MediaType = MediaType.DOS_35_DS_DD_9,
Sectors = 1440,
SectorSize = 512,
2022-03-15 01:37:37 +00:00
Md5 = "6c264287a3260a6d89e36dfcb1c98dce",
2024-05-01 04:39:38 +01:00
Partitions =
[
2022-03-06 13:29:38 +00:00
new BlockPartitionVolumes
{
2022-03-06 13:29:38 +00:00
Start = 0,
Length = 1440
}
2024-05-01 04:39:38 +01:00
]
2022-03-06 13:29:38 +00:00
},
new BlockImageTestExpected
{
TestFile = "apr00002.dsk.lz",
MediaType = MediaType.DOS_35_DS_DD_9,
Sectors = 1440,
SectorSize = 512,
2022-03-15 01:37:37 +00:00
Md5 = "dd8e04939baeb0fcdb11ddade60c9a93",
2024-05-01 04:39:38 +01:00
Partitions =
[
2022-03-06 13:29:38 +00:00
new BlockPartitionVolumes
{
2022-03-06 13:29:38 +00:00
Start = 0,
Length = 1440
}
2024-05-01 04:39:38 +01:00
]
2022-03-06 13:29:38 +00:00
},
new BlockImageTestExpected
{
TestFile = "apr00006.dsk.lz",
MediaType = MediaType.DOS_35_DS_DD_9,
Sectors = 1440,
SectorSize = 512,
2022-03-15 01:37:37 +00:00
Md5 = "89132d303ef6b0ff69f4cfd38e2a22a6",
2024-05-01 04:39:38 +01:00
Partitions =
[
2022-03-06 13:29:38 +00:00
new BlockPartitionVolumes
{
2022-03-06 13:29:38 +00:00
Start = 0,
Length = 1440
}
2024-05-01 04:39:38 +01:00
]
2022-03-06 13:29:38 +00:00
},
new BlockImageTestExpected
{
TestFile = "apr00203.dsk.lz",
MediaType = MediaType.DOS_35_DS_DD_9,
Sectors = 1440,
SectorSize = 512,
2022-03-15 01:37:37 +00:00
Md5 = "cd34832ca3aa7f55e0dd8ba126372f97",
2024-05-01 04:39:38 +01:00
Partitions =
[
2022-03-06 13:29:38 +00:00
new BlockPartitionVolumes
{
2022-03-06 13:29:38 +00:00
Start = 0,
Length = 1440
}
2024-05-01 04:39:38 +01:00
]
2022-03-06 13:29:38 +00:00
}
2024-05-01 04:39:38 +01:00
];
2021-02-22 05:02:01 +00:00
}