mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Use struct to define all expected data for media image format tests.
This commit is contained in:
@@ -37,33 +37,20 @@ namespace Aaru.Tests.Images.Commodore64
|
||||
[TestFixture]
|
||||
public class D64 : BlockMediaImageTest
|
||||
{
|
||||
public override string[] _testFiles => new[]
|
||||
{
|
||||
"0 Grad Nord (1985)(Ariolasoft)(de)(Side A).d64.lz"
|
||||
};
|
||||
public override ulong[] _sectors => new ulong[]
|
||||
{
|
||||
// 0 Grad Nord (1985)(Ariolasoft)(de)(Side A).d64.lz
|
||||
683
|
||||
};
|
||||
public override uint[] _sectorSize => new uint[]
|
||||
{
|
||||
// 0 Grad Nord (1985)(Ariolasoft)(de)(Side A).d64.lz
|
||||
256
|
||||
};
|
||||
public override MediaType[] _mediaTypes => new[]
|
||||
{
|
||||
// 0 Grad Nord (1985)(Ariolasoft)(de)(Side A).d64.lz
|
||||
MediaType.CBM_1540
|
||||
};
|
||||
public override string[] _md5S => new[]
|
||||
{
|
||||
// 0 Grad Nord (1985)(Ariolasoft)(de)(Side A).d64.lz
|
||||
"9205f7ccdb19cfbdb0b46d10e40b2a90"
|
||||
};
|
||||
|
||||
public override string _dataFolder =>
|
||||
Path.Combine(Consts.TEST_FILES_ROOT, "Media image formats", "Commodore D64");
|
||||
public override IMediaImage _plugin => new ZZZRawImage();
|
||||
|
||||
public override BlockImageTestExpected[] Tests => new[]
|
||||
{
|
||||
new BlockImageTestExpected
|
||||
{
|
||||
TestFile = "0 Grad Nord (1985)(Ariolasoft)(de)(Side A).d64.lz",
|
||||
MediaType = MediaType.CBM_1540,
|
||||
Sectors = 683,
|
||||
SectorSize = 256,
|
||||
MD5 = "9205f7ccdb19cfbdb0b46d10e40b2a90"
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -37,33 +37,20 @@ namespace Aaru.Tests.Images.Commodore64
|
||||
[TestFixture]
|
||||
public class D81 : BlockMediaImageTest
|
||||
{
|
||||
public override string[] _testFiles => new[]
|
||||
{
|
||||
"Strategiegames #01 (19xx)(-).d81.lz"
|
||||
};
|
||||
public override ulong[] _sectors => new ulong[]
|
||||
{
|
||||
// Strategiegames #01 (19xx)(-).d81.lz
|
||||
3200
|
||||
};
|
||||
public override uint[] _sectorSize => new uint[]
|
||||
{
|
||||
// Strategiegames #01 (19xx)(-).d81.lz
|
||||
256
|
||||
};
|
||||
public override MediaType[] _mediaTypes => new[]
|
||||
{
|
||||
// Strategiegames #01 (19xx)(-).d81.lz
|
||||
MediaType.CBM_35_DD
|
||||
};
|
||||
public override string[] _md5S => new[]
|
||||
{
|
||||
// Strategiegames #01 (19xx)(-).d81.lz
|
||||
"e84d86b63e798747c42b27b58ab88665"
|
||||
};
|
||||
|
||||
public override string _dataFolder =>
|
||||
Path.Combine(Consts.TEST_FILES_ROOT, "Media image formats", "Commodore D81");
|
||||
public override IMediaImage _plugin => new ZZZRawImage();
|
||||
|
||||
public override BlockImageTestExpected[] Tests => new[]
|
||||
{
|
||||
new BlockImageTestExpected
|
||||
{
|
||||
TestFile = "Strategiegames #01 (19xx)(-).d81.lz",
|
||||
MediaType = MediaType.CBM_35_DD,
|
||||
Sectors = 3200,
|
||||
SectorSize = 256,
|
||||
MD5 = "e84d86b63e798747c42b27b58ab88665"
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user