Files
Aaru/Aaru.Tests/Images/BlindWrite7.cs

107 lines
3.9 KiB
C#
Raw Normal View History

2021-01-09 03:16:55 +00:00
// /***************************************************************************
// Aaru Data Preservation Suite
// ----------------------------------------------------------------------------
//
// Filename : BlindWrite6.cs
// Author(s) : Natalia Portillo <claunia@claunia.com>
//
// 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/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2011-2021 Natalia Portillo
// ****************************************************************************/
using System.IO;
using Aaru.CommonTypes;
using Aaru.CommonTypes.Interfaces;
2021-01-09 03:16:55 +00:00
using NUnit.Framework;
namespace Aaru.Tests.Images
{
[TestFixture]
public class BlindWrite7 : OpticalMediaImageTest
2021-01-09 03:16:55 +00:00
{
2021-03-03 14:31:56 +00:00
public override string DataFolder =>
Path.Combine(Consts.TEST_FILES_ROOT, "Media image formats", "BlindWrite 7");
public override IMediaImage _plugin => new DiscImages.BlindWrite5();
2021-01-09 03:16:55 +00:00
public override OpticalImageTestExpected[] Tests => new[]
2021-01-09 03:16:55 +00:00
{
new OpticalImageTestExpected
2021-01-09 03:16:55 +00:00
{
TestFile = "report_cdr.B6T",
MediaType = MediaType.CDR,
Sectors = 254265,
SectorSize = 2048,
MD5 = "86b8a763ef6522fccf97f743d7bf4fa3",
LongMD5 = "a292359cce05849dec1d06ae471ecf9e",
Tracks = new[]
{
new TrackInfoTestExpected
{
Session = 1,
Start = 0,
End = 254264,
Pregap = 150,
Flags = 4
}
}
2021-01-09 03:16:55 +00:00
},
new OpticalImageTestExpected
2021-01-09 03:16:55 +00:00
{
TestFile = "report_cdrom.B6T",
MediaType = MediaType.CDROM,
Sectors = 254265,
SectorSize = 2048,
MD5 = "bf4bbec517101d0d6f45d2e4d50cb875",
LongMD5 = "3d3f9cf7d1ba2249b1e7960071e5af46",
Tracks = new[]
{
new TrackInfoTestExpected
{
Session = 1,
Start = 0,
End = 254264,
Pregap = 150,
Flags = 4
}
}
2021-01-09 03:16:55 +00:00
},
new OpticalImageTestExpected
2021-01-09 03:16:55 +00:00
{
TestFile = "report_cdrw.B6T",
MediaType = MediaType.CDRW,
Sectors = 308224,
SectorSize = 2048,
MD5 = "1e55aa420ca8f8ea77d5b597c9cfc19b",
LongMD5 = "3af5f943ddb9427d9c63a4ce3b704db9",
Tracks = new[]
{
new TrackInfoTestExpected
{
Session = 1,
Start = 0,
End = 308223,
Pregap = 150,
Flags = 4
}
}
2021-01-09 03:16:55 +00:00
}
};
}
}