Added tests for device types.

This commit is contained in:
2017-07-10 21:37:03 +01:00
parent 4c5d978f9f
commit 3fcfa7f10d
4 changed files with 26 additions and 55 deletions

View File

@@ -2,7 +2,7 @@
// The Disc Image Chef
// ----------------------------------------------------------------------------
//
// Filename : IomegaJaz.cs
// Filename : PocketZip.cs
// Version : 1.0
// Author(s) : Natalia Portillo
//
@@ -44,22 +44,22 @@ using NUnit.Framework;
namespace DiscImageChef.Tests.Devices
{
[TestFixture]
public class IomegaJaz
public class PocketZip
{
readonly string[] testfiles = {
"jaz1.bin.lz",
"clik!.bin.lz","pocketzip.bin.lz",
};
readonly MediaType[] mediatypes = {
MediaType.Jaz,
MediaType.PocketZip,MediaType.PocketZip,
};
readonly ulong[] sectors = {
2091050,
78882,78882,
};
readonly uint[] sectorsize = {
512,
512,512,
};
[Test]
@@ -67,7 +67,7 @@ namespace DiscImageChef.Tests.Devices
{
for(int i = 0; i < testfiles.Length; i++)
{
string location = Path.Combine(Consts.TestFilesRoot, "devices", "jaz", testfiles[i]);
string location = Path.Combine(Consts.TestFilesRoot, "devices", "pocketzip", testfiles[i]);
Filter filter = new LZip();
filter.Open(location);
ImagePlugin image = new ZZZRawImage();