Files
Aaru/Aaru.Tests/Images/DART.cs

116 lines
4.0 KiB
C#
Raw Normal View History

// /***************************************************************************
2020-07-25 02:01:36 +01:00
// Aaru Data Preservation Suite
// ----------------------------------------------------------------------------
//
// Filename : DART.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-12-03 16:07:10 +00:00
// Copyright © 2011-2023 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 Dart : BlockMediaImageTest
{
2022-11-13 05:48:58 +00:00
public override string DataFolder => Path.Combine(Consts.TestFilesRoot, "Media image formats", "DART");
public override IMediaImage Plugin => new DiscImages.Dart();
2022-03-06 13:29:38 +00:00
public override BlockImageTestExpected[] Tests => new[]
{
new BlockImageTestExpected
{
TestFile = "mf1dd_hfs_fast.dart.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_fast.dart.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_fast.dart.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_fast.dart.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
}
2023-10-03 23:44:33 +01:00
#region Unsupported LZH compression
2022-03-06 13:29:38 +00:00
/*
new BlockImageTestExpected
{
TestFile = "mf1dd_hfs_best.dart.lz",
MediaType = MediaType.AppleSonySS,
Sectors = 800,
SectorSize = 512,
MD5 = "eae3a95671d077deb702b3549a769f56"
},
new BlockImageTestExpected
{
TestFile = "mf1dd_mfs_best.dart.lz",
MediaType = MediaType.AppleSonySS,
Sectors = 800,
SectorSize = 512,
MD5 = "c5d92544c3e78b7f0a9b4baaa9a64eec"
},
new BlockImageTestExpected
{
TestFile = "mf2dd_hfs_best.dart.lz",
MediaType = MediaType.AppleSonyDS,
Sectors = 1600,
SectorSize = 512,
MD5 = "a99744348a70b62b57bce2dec9132ced"
},
new BlockImageTestExpected
2017-12-19 20:33:03 +00:00
{
2022-03-06 13:29:38 +00:00
TestFile = "mf2dd_mfs_best.dart.lz",
MediaType = MediaType.AppleSonyDS,
Sectors = 1600,
SectorSize = 512,
MD5 = "93e71b9ecdb39d3ec9245b4f451856d4"
},
*/
2023-10-03 23:44:33 +01:00
#endregion Unsupported LZH compression
2022-03-06 13:29:38 +00:00
};
2017-12-19 20:33:03 +00:00
}