Files
Aaru/Aaru.Tests/Images/pce/XDF.cs

64 lines
2.3 KiB
C#
Raw Normal View History

// /***************************************************************************
// Aaru Data Preservation Suite
// ----------------------------------------------------------------------------
//
// Filename : XDF.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-12-19 10:45:18 +00:00
// Copyright © 2011-2025 Natalia Portillo
// ****************************************************************************/
2022-03-15 01:37:37 +00:00
using System.Diagnostics.CodeAnalysis;
using System.IO;
using Aaru.CommonTypes;
using Aaru.CommonTypes.Interfaces;
using Aaru.Images;
using NUnit.Framework;
namespace Aaru.Tests.Images.pce;
2023-10-03 23:44:33 +01:00
[TestFixture]
[SuppressMessage("ReSharper", "InconsistentNaming")]
2022-03-06 13:29:38 +00:00
public class XDF : BlockMediaImageTest
{
2022-11-13 05:48:58 +00:00
public override string DataFolder => Path.Combine(Consts.TestFilesRoot, "Media image formats", "pce", "XDF");
public override IMediaImage Plugin => new ZZZRawImage();
2024-05-01 04:39:38 +01:00
public override BlockImageTestExpected[] Tests =>
[
2022-03-06 13:29:38 +00:00
new BlockImageTestExpected
{
TestFile = "mf2hd_xdf_teledisk.xdf.lz",
MediaType = MediaType.XDF_35,
Sectors = 3680,
SectorSize = 512,
2022-03-15 01:37:37 +00:00
Md5 = "90e8f5022bff8fa90c5148ec35f5d64c"
2022-03-06 13:29:38 +00:00
},
new BlockImageTestExpected
{
2022-03-06 13:29:38 +00:00
TestFile = "mf2hd_xdf.xdf.lz",
MediaType = MediaType.XDF_35,
Sectors = 3680,
SectorSize = 512,
2022-03-15 01:37:37 +00:00
Md5 = "825ca9cdcb2f35ff8bbbda9cb0a27c4d"
2022-03-06 13:29:38 +00:00
}
2024-05-01 04:39:38 +01:00
];
}