mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Add unit tests for writable optical media images.
This commit is contained in:
64
Aaru.Tests/WritableImages/Alcohol/FromAaru.cs
Normal file
64
Aaru.Tests/WritableImages/Alcohol/FromAaru.cs
Normal file
@@ -0,0 +1,64 @@
|
||||
using System.IO;
|
||||
using Aaru.CommonTypes;
|
||||
using Aaru.CommonTypes.Interfaces;
|
||||
using Aaru.DiscImages;
|
||||
|
||||
namespace Aaru.Tests.WritableImages.Alcohol
|
||||
{
|
||||
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 Alcohol120();
|
||||
public override string OutputExtension => "mds";
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user