2023-10-05 01:05:23 +01:00
|
|
|
using System.Diagnostics.CodeAnalysis;
|
2021-08-03 02:42:17 +01:00
|
|
|
using System.IO;
|
|
|
|
|
using Aaru.CommonTypes;
|
|
|
|
|
using Aaru.CommonTypes.Interfaces;
|
2023-10-06 01:16:28 +01:00
|
|
|
using Aaru.Images;
|
2021-08-03 02:42:17 +01:00
|
|
|
using Aaru.Tests.WritableImages;
|
|
|
|
|
|
2022-11-15 15:58:43 +00:00
|
|
|
namespace Aaru.Tests.Issues;
|
|
|
|
|
|
2023-10-05 01:05:23 +01:00
|
|
|
[SuppressMessage("ReSharper", "UnusedType.Global")]
|
2022-03-06 13:29:38 +00:00
|
|
|
public class _623 : WritableOpticalMediaImageTest
|
2021-08-03 02:42:17 +01:00
|
|
|
{
|
2022-11-15 15:58:43 +00:00
|
|
|
public override string DataFolder => Path.Combine(Consts.TestFilesRoot, "Issues", "Fixed", "issue623");
|
|
|
|
|
public override IMediaImage InputPlugin => new AaruFormat();
|
|
|
|
|
public override IWritableImage OutputPlugin => new Alcohol120();
|
2022-03-06 13:29:38 +00:00
|
|
|
public override string OutputExtension => "mds";
|
2023-10-03 23:44:33 +01:00
|
|
|
|
2024-05-01 04:39:38 +01:00
|
|
|
public override OpticalImageTestExpected[] Tests =>
|
|
|
|
|
[
|
2022-03-06 13:29:38 +00:00
|
|
|
new OpticalImageTestExpected
|
2021-08-03 02:42:17 +01:00
|
|
|
{
|
2022-03-06 13:29:38 +00:00
|
|
|
TestFile = "alice.aif",
|
|
|
|
|
MediaType = MediaType.CDROM,
|
|
|
|
|
Sectors = 255,
|
|
|
|
|
SectorSize = 2048,
|
2022-03-15 01:37:37 +00:00
|
|
|
LongMd5 = "1bea7f781be0fb3b878de96e965c53a0",
|
|
|
|
|
SubchannelMd5 = "01fef9f42fe53e6256ba713ad237dc8c",
|
2024-05-01 04:39:38 +01:00
|
|
|
Tracks =
|
|
|
|
|
[
|
2022-03-06 13:29:38 +00:00
|
|
|
new TrackInfoTestExpected
|
2021-08-03 02:42:17 +01:00
|
|
|
{
|
2022-03-06 13:29:38 +00:00
|
|
|
Session = 1,
|
|
|
|
|
Start = 0,
|
|
|
|
|
End = 254,
|
|
|
|
|
Pregap = 150,
|
|
|
|
|
Flags = 4
|
2021-08-03 02:42:17 +01:00
|
|
|
}
|
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-08-03 02:42:17 +01:00
|
|
|
}
|