mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
64 lines
2.3 KiB
C#
64 lines
2.3 KiB
C#
|
|
using System.IO;
|
||
|
|
using Aaru.CommonTypes;
|
||
|
|
using Aaru.CommonTypes.Interfaces;
|
||
|
|
using Aaru.DiscImages;
|
||
|
|
|
||
|
|
namespace Aaru.Tests.WritableImages.CDRWin
|
||
|
|
{
|
||
|
|
public class FromAaru : WritableOpticalMediaImageTest
|
||
|
|
{
|
||
|
|
public override string DataFolder =>
|
||
|
|
Path.Combine(Consts.TEST_FILES_ROOT, "Media image formats", "AaruFormat", "V1");
|
||
|
|
public override IMediaImage InputPlugin => new DiscImages.AaruFormat();
|
||
|
|
public override IWritableImage OutputPlugin => new CdrWin();
|
||
|
|
public override string OutputExtension => "cue";
|
||
|
|
public override OpticalImageTestExpected[] Tests => new[]
|
||
|
|
{
|
||
|
|
new OpticalImageTestExpected
|
||
|
|
{
|
||
|
|
TestFile = "test_multisession.aif",
|
||
|
|
MediaType = MediaType.CDR,
|
||
|
|
Sectors = 51168,
|
||
|
|
SectorSize = 2048,
|
||
|
|
MD5 = "e2e19cf38891e67a0829d01842b4052e",
|
||
|
|
LongMD5 = "b31f2d228dd564c88ad851b12b43c01d",
|
||
|
|
SubchannelMD5 = "989c696ee5bb336b4ad30474da573925",
|
||
|
|
Tracks = new[]
|
||
|
|
{
|
||
|
|
new TrackInfoTestExpected
|
||
|
|
{
|
||
|
|
Session = 1,
|
||
|
|
Start = 0,
|
||
|
|
End = 8132,
|
||
|
|
Pregap = 150,
|
||
|
|
Flags = 4
|
||
|
|
},
|
||
|
|
new TrackInfoTestExpected
|
||
|
|
{
|
||
|
|
Session = 2,
|
||
|
|
Start = 19383,
|
||
|
|
End = 25959,
|
||
|
|
Pregap = 150,
|
||
|
|
Flags = 4
|
||
|
|
},
|
||
|
|
new TrackInfoTestExpected
|
||
|
|
{
|
||
|
|
Session = 3,
|
||
|
|
Start = 32710,
|
||
|
|
End = 38477,
|
||
|
|
Pregap = 150,
|
||
|
|
Flags = 4
|
||
|
|
},
|
||
|
|
new TrackInfoTestExpected
|
||
|
|
{
|
||
|
|
Session = 4,
|
||
|
|
Start = 45228,
|
||
|
|
End = 51167,
|
||
|
|
Pregap = 150,
|
||
|
|
Flags = 4
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
};
|
||
|
|
}
|
||
|
|
}
|