mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
REFACTOR: All refactor in DiscImageChef.Tests.
This commit is contained in:
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class ADFS
|
||||
public class Adfs
|
||||
{
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
@@ -87,7 +87,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||
};
|
||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||
fs.GetInformation(image, wholePart, out string information);
|
||||
fs.GetInformation(image, wholePart, out _);
|
||||
Assert.AreEqual(bootable[i], fs.XmlFSType.Bootable, testfiles[i]);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
|
||||
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class AFFS
|
||||
public class Affs
|
||||
{
|
||||
readonly string[] testfiles = {"amigaos_3.9.adf.lz", "amigaos_3.9_intl.adf.lz"};
|
||||
|
||||
@@ -75,7 +75,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||
};
|
||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||
fs.GetInformation(image, wholePart, out string information);
|
||||
fs.GetInformation(image, wholePart, out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("Amiga FFS", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class AFFS2_RDB
|
||||
public class Affs2Rdb
|
||||
{
|
||||
readonly string[] testfiles = {"amigaos_4.0.vdi.lz"};
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("Amiga FFS2", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class AFFS_MBR
|
||||
public class AffsMbr
|
||||
{
|
||||
readonly string[] testfiles = {"aros.vdi.lz", "aros_intl.vdi.lz"};
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("Amiga FFS", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class AFFS_MBR_RDB
|
||||
public class AffsMbrRdb
|
||||
{
|
||||
readonly string[] testfiles = {"aros.vdi.lz", "aros_intl.vdi.lz"};
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("Amiga FFS", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class AFFS_RDB
|
||||
public class AffsRdb
|
||||
{
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
@@ -87,7 +87,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("Amiga FFS", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class AFS
|
||||
public class Afs
|
||||
{
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
@@ -87,7 +87,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||
};
|
||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||
fs.GetInformation(image, wholePart, out string information);
|
||||
fs.GetInformation(image, wholePart, out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class AFS_MBR
|
||||
public class AfsMbr
|
||||
{
|
||||
readonly string[] testfiles = {"scoopenserver_5.0.7hw.vdi.lz"};
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class AOFS
|
||||
public class Aofs
|
||||
{
|
||||
readonly string[] testfiles = {"amigaos_3.9.adf.lz", "amigaos_3.9_intl.adf.lz"};
|
||||
|
||||
@@ -75,7 +75,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||
};
|
||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||
fs.GetInformation(image, wholePart, out string information);
|
||||
fs.GetInformation(image, wholePart, out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("Amiga OFS", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class AOFS_MBR
|
||||
public class AofsMbr
|
||||
{
|
||||
readonly string[] testfiles = {"aros.vdi.lz", "aros_intl.vdi.lz"};
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("Amiga OFS", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class AOFS_MBR_RDB
|
||||
public class AofsMbrRdb
|
||||
{
|
||||
readonly string[] testfiles = {"aros.vdi.lz", "aros_intl.vdi.lz"};
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("Amiga OFS", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class AOFS_RDB
|
||||
public class AofsRdb
|
||||
{
|
||||
readonly string[] testfiles =
|
||||
{"amigaos_3.9.vdi.lz", "amigaos_3.9_intl.vdi.lz", "aros.vdi.lz", "aros_intl.vdi.lz"};
|
||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("Amiga OFS", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class Atheos_MBR
|
||||
public class AtheosMbr
|
||||
{
|
||||
readonly string[] testfiles = {"syllable_0.6.7.vdi.lz"};
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("AtheOS filesystem", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class BeFS
|
||||
public class BeFs
|
||||
{
|
||||
readonly string[] testfiles = {"beos_r3.1.img.lz", "beos_r4.5.img.lz"};
|
||||
|
||||
@@ -69,7 +69,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
Assert.AreEqual(mediatypes[i], image.ImageInfo.MediaType, testfiles[i]);
|
||||
Assert.AreEqual(sectors[i], image.ImageInfo.Sectors, testfiles[i]);
|
||||
Assert.AreEqual(sectorsize[i], image.ImageInfo.SectorSize, testfiles[i]);
|
||||
Filesystem fs = new DiscImageChef.Filesystems.BeFS();
|
||||
Filesystem fs = new BeFS();
|
||||
Partition wholePart = new Partition
|
||||
{
|
||||
Name = "Whole device",
|
||||
@@ -77,7 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||
};
|
||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||
fs.GetInformation(image, wholePart, out string information);
|
||||
fs.GetInformation(image, wholePart, out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("BeFS", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class BeFS_APM
|
||||
public class BeFsApm
|
||||
{
|
||||
readonly string[] testfiles = {"beos_r3.1.vdi.lz", "beos_r4.5.vdi.lz"};
|
||||
|
||||
@@ -68,7 +68,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
Assert.AreEqual(sectors[i], image.ImageInfo.Sectors, testfiles[i]);
|
||||
Assert.AreEqual(sectorsize[i], image.ImageInfo.SectorSize, testfiles[i]);
|
||||
List<Partition> partitions = Core.Partitions.GetAll(image);
|
||||
Filesystem fs = new DiscImageChef.Filesystems.BeFS();
|
||||
Filesystem fs = new BeFS();
|
||||
int part = -1;
|
||||
for(int j = 0; j < partitions.Count; j++)
|
||||
if(partitions[j].Type == "Be_BFS")
|
||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("BeFS", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class BeFS_GPT
|
||||
public class BeFsGpt
|
||||
{
|
||||
readonly string[] testfiles = {"haiku_hrev51259.vdi.lz"};
|
||||
|
||||
@@ -66,7 +66,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
Assert.AreEqual(sectors[i], image.ImageInfo.Sectors, testfiles[i]);
|
||||
Assert.AreEqual(sectorsize[i], image.ImageInfo.SectorSize, testfiles[i]);
|
||||
List<Partition> partitions = Core.Partitions.GetAll(image);
|
||||
Filesystem fs = new DiscImageChef.Filesystems.BeFS();
|
||||
Filesystem fs = new BeFS();
|
||||
int part = -1;
|
||||
for(int j = 0; j < partitions.Count; j++)
|
||||
if(partitions[j].Type == "Haiku BFS")
|
||||
@@ -77,7 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("BeFS", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class BeFS_MBR
|
||||
public class BeFsMbr
|
||||
{
|
||||
readonly string[] testfiles =
|
||||
{"beos_r3.1.vdi.lz", "beos_r4.5.vdi.lz", "haiku_hrev51259.vdi.lz", "syllable_0.6.7.vdi.lz"};
|
||||
@@ -67,7 +67,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
Assert.AreEqual(sectors[i], image.ImageInfo.Sectors, testfiles[i]);
|
||||
Assert.AreEqual(sectorsize[i], image.ImageInfo.SectorSize, testfiles[i]);
|
||||
List<Partition> partitions = Core.Partitions.GetAll(image);
|
||||
Filesystem fs = new DiscImageChef.Filesystems.BeFS();
|
||||
Filesystem fs = new BeFS();
|
||||
int part = -1;
|
||||
for(int j = 0; j < partitions.Count; j++)
|
||||
if(partitions[j].Type == "0xEB")
|
||||
@@ -78,7 +78,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("BeFS", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class COHERENT
|
||||
public class Coherent
|
||||
{
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
@@ -82,7 +82,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||
};
|
||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||
fs.GetInformation(image, wholePart, out string information);
|
||||
fs.GetInformation(image, wholePart, out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class COHERENT_MBR
|
||||
public class CoherentMbr
|
||||
{
|
||||
readonly string[] testfiles = {"coherentunix_4.2.10.vdi.lz"};
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class DTFS
|
||||
public class Dtfs
|
||||
{
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
@@ -83,7 +83,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||
};
|
||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||
fs.GetInformation(image, wholePart, out string information);
|
||||
fs.GetInformation(image, wholePart, out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class DTFS_MBR
|
||||
public class DtfsMbr
|
||||
{
|
||||
readonly string[] testfiles = {"scoopenserver_5.0.7hw.vdi.lz"};
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class EAFS
|
||||
public class Eafs
|
||||
{
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
@@ -87,7 +87,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||
};
|
||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||
fs.GetInformation(image, wholePart, out string information);
|
||||
fs.GetInformation(image, wholePart, out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class EAFS_MBR
|
||||
public class EafsMbr
|
||||
{
|
||||
readonly string[] testfiles = {"scoopenserver_5.0.7hw.vdi.lz"};
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -38,7 +38,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class F2FS
|
||||
public class F2Fs
|
||||
{
|
||||
readonly string[] testfiles = {"linux.vdi.lz"};
|
||||
|
||||
@@ -68,7 +68,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
Assert.AreEqual(sectorsize[i], image.ImageInfo.SectorSize, testfiles[i]);
|
||||
PartitionPlugin parts = new MBR();
|
||||
Assert.AreEqual(true, parts.GetInformation(image, out List<Partition> partitions, 0), testfiles[i]);
|
||||
Filesystem fs = new DiscImageChef.Filesystems.F2FS();
|
||||
Filesystem fs = new F2FS();
|
||||
int part = -1;
|
||||
for(int j = 0; j < partitions.Count; j++)
|
||||
if(partitions[j].Type == "0x83")
|
||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("F2FS filesystem", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class FAT12
|
||||
public class Fat12
|
||||
{
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
@@ -1724,7 +1724,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||
};
|
||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||
fs.GetInformation(image, wholePart, out string information);
|
||||
fs.GetInformation(image, wholePart, out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("FAT12", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class FAT12_APM
|
||||
public class Fat12Apm
|
||||
{
|
||||
readonly string[] testfiles = {"macosx_10.11.vdi.lz"};
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("FAT12", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class FAT12_GPT
|
||||
public class Fat12Gpt
|
||||
{
|
||||
readonly string[] testfiles = {"macosx_10.11.vdi.lz"};
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("FAT12", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class FAT12_MBR
|
||||
public class Fat12Mbr
|
||||
{
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
@@ -138,7 +138,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
List<Partition> partitions = Core.Partitions.GetAll(image);
|
||||
Filesystem fs = new FAT();
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[0]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[0], out string information);
|
||||
fs.GetInformation(image, partitions[0], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("FAT12", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class FAT16
|
||||
public class Fat16
|
||||
{
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
@@ -131,7 +131,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||
};
|
||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||
fs.GetInformation(image, wholePart, out string information);
|
||||
fs.GetInformation(image, wholePart, out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("FAT16", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class FAT16_APM
|
||||
public class Fat16Apm
|
||||
{
|
||||
readonly string[] testfiles = {"macosx_10.11.vdi.lz"};
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("FAT16", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class FAT16_Atari
|
||||
public class Fat16Atari
|
||||
{
|
||||
readonly string[] testfiles = {"tos_1.04.vdi.lz", "tos_1.04_small.vdi.lz"};
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("FAT16", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class FAT16_GPT
|
||||
public class Fat16Gpt
|
||||
{
|
||||
readonly string[] testfiles = {"macosx_10.11.vdi.lz"};
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("FAT16", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class FAT16_MBR
|
||||
public class Fat16Mbr
|
||||
{
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
@@ -140,7 +140,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
List<Partition> partitions = Core.Partitions.GetAll(image);
|
||||
Filesystem fs = new FAT();
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[0]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[0], out string information);
|
||||
fs.GetInformation(image, partitions[0], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("FAT16", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class FAT16_RDB
|
||||
public class Fat16Rdb
|
||||
{
|
||||
readonly string[] testfiles = {"amigaos_3.9.vdi.lz"};
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("FAT16", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class FAT32_APM
|
||||
public class Fat32Apm
|
||||
{
|
||||
readonly string[] testfiles = {"macosx_10.11.vdi.lz"};
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("FAT32", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class FAT32_GPT
|
||||
public class Fat32Gpt
|
||||
{
|
||||
readonly string[] testfiles = {"macosx_10.11.vdi.lz"};
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("FAT32", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class FAT32_MBR
|
||||
public class Fat32Mbr
|
||||
{
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
@@ -104,7 +104,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
List<Partition> partitions = Core.Partitions.GetAll(image);
|
||||
Filesystem fs = new FAT();
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[0]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[0], out string information);
|
||||
fs.GetInformation(image, partitions[0], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("FAT32", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class HAMMER_MBR
|
||||
public class HammerMbr
|
||||
{
|
||||
readonly string[] testfiles = {"dflybsd_3.6.1.vdi.lz", "dflybsd_4.0.5.vdi.lz"};
|
||||
|
||||
@@ -78,7 +78,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("HAMMER", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class HFS
|
||||
public class Hfs
|
||||
{
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
@@ -87,7 +87,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||
};
|
||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||
fs.GetInformation(image, wholePart, out string information);
|
||||
fs.GetInformation(image, wholePart, out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("HFS", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class HFSPlus_APM
|
||||
public class HfsPlusApm
|
||||
{
|
||||
// Missing Darwin 1.4.1
|
||||
readonly string[] testfiles =
|
||||
@@ -113,7 +113,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("HFS+", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class HFSPlus_GPT
|
||||
public class HfsPlusGpt
|
||||
{
|
||||
readonly string[] testfiles = {"macosx_10.11.vdi.lz", "macosx_10.11_journal.vdi.lz"};
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("HFS+", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
// Mising Darwin 6.0.2 wrapped
|
||||
[TestFixture]
|
||||
public class HFSPlus_MBR
|
||||
public class HfsPlusMbr
|
||||
{
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
@@ -92,7 +92,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("HFS+", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class HFSX_APM
|
||||
public class HfsxApm
|
||||
{
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
@@ -87,7 +87,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("HFSX", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class HFSX_GPT
|
||||
public class HfsxGpt
|
||||
{
|
||||
readonly string[] testfiles = {"macosx_10.11.vdi.lz", "macosx_10.11_journal.vdi.lz"};
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("HFSX", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class HFSX_MBR
|
||||
public class HfsxMbr
|
||||
{
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
@@ -84,7 +84,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("HFSX", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class HFS_APM
|
||||
public class HfsApm
|
||||
{
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
@@ -118,7 +118,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("HFS", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class HFS_CDROM
|
||||
public class HfsCdrom
|
||||
{
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
@@ -83,7 +83,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("HFS", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class HFS_MBR
|
||||
public class HfsMbr
|
||||
{
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
@@ -81,7 +81,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("HFS", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class HFS_RDB
|
||||
public class HfsRdb
|
||||
{
|
||||
readonly string[] testfiles = {"amigaos_3.9.vdi.lz"};
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("HFS", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class HPFS
|
||||
public class Hpfs
|
||||
{
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
@@ -87,9 +87,9 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
Assert.AreEqual(sectors[i], image.ImageInfo.Sectors, testfiles[i]);
|
||||
Assert.AreEqual(sectorsize[i], image.ImageInfo.SectorSize, testfiles[i]);
|
||||
List<Partition> partitions = Core.Partitions.GetAll(image);
|
||||
Filesystem fs = new DiscImageChef.Filesystems.HPFS();
|
||||
Filesystem fs = new HPFS();
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[0]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[0], out string information);
|
||||
fs.GetInformation(image, partitions[0], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("HPFS", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class HTFS
|
||||
public class Htfs
|
||||
{
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
@@ -83,7 +83,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||
};
|
||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||
fs.GetInformation(image, wholePart, out string information);
|
||||
fs.GetInformation(image, wholePart, out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class HTFS_MBR
|
||||
public class HtfsMbr
|
||||
{
|
||||
readonly string[] testfiles = {"scoopenserver_5.0.7hw.vdi.lz"};
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class ISO9660
|
||||
public class Iso9660
|
||||
{
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
@@ -134,7 +134,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||
};
|
||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||
fs.GetInformation(image, wholePart, out string information);
|
||||
fs.GetInformation(image, wholePart, out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("ISO9660", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class JFS2
|
||||
public class Jfs2
|
||||
{
|
||||
readonly string[] testfiles = {"linux.vdi.lz", "linux_caseinsensitive.vdi.lz"};
|
||||
|
||||
@@ -78,7 +78,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("JFS filesystem", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -32,7 +32,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class LFS_MBR
|
||||
public class LfsMbr
|
||||
{
|
||||
readonly string[] testfiles = {"netbsd_1.6.vdi.lz"};
|
||||
|
||||
@@ -75,7 +75,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("LFS", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class LisaFS
|
||||
public class LisaFs
|
||||
{
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
@@ -99,7 +99,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||
};
|
||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||
fs.GetInformation(image, wholePart, out string information);
|
||||
fs.GetInformation(image, wholePart, out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("LisaFS", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||
};
|
||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||
fs.GetInformation(image, wholePart, out string information);
|
||||
fs.GetInformation(image, wholePart, out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("Locus filesystem", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class MFS
|
||||
public class Mfs
|
||||
{
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
@@ -85,7 +85,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||
};
|
||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||
fs.GetInformation(image, wholePart, out string information);
|
||||
fs.GetInformation(image, wholePart, out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("MFS", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class MINIXv1
|
||||
public class MinixV1
|
||||
{
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
@@ -78,7 +78,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||
};
|
||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||
fs.GetInformation(image, wholePart, out string information);
|
||||
fs.GetInformation(image, wholePart, out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual(types[i], fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class MINIXv1_MBR
|
||||
public class MinixV1Mbr
|
||||
{
|
||||
readonly string[] testfiles = {"linux.vdi.lz", "minix_3.1.2a.vdi.lz"};
|
||||
|
||||
@@ -75,7 +75,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual(types[i], fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class MINIXv2
|
||||
public class MinixV2
|
||||
{
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
@@ -78,7 +78,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||
};
|
||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||
fs.GetInformation(image, wholePart, out string information);
|
||||
fs.GetInformation(image, wholePart, out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual(types[i], fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class MINIXv2_MBR
|
||||
public class MinixV2Mbr
|
||||
{
|
||||
readonly string[] testfiles = {"minix_3.1.2a.vdi.lz"};
|
||||
|
||||
@@ -75,7 +75,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual(types[i], fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class MINIXv3
|
||||
public class MinixV3
|
||||
{
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
@@ -78,7 +78,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||
};
|
||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||
fs.GetInformation(image, wholePart, out string information);
|
||||
fs.GetInformation(image, wholePart, out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual(types[i], fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class MINIXv3_MBR
|
||||
public class MinixV3Mbr
|
||||
{
|
||||
readonly string[] testfiles = {"minix_3.1.2a.vdi.lz"};
|
||||
|
||||
@@ -75,7 +75,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual(types[i], fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class NILFS2
|
||||
public class Nilfs2
|
||||
{
|
||||
readonly string[] testfiles = {"linux.vdi.lz"};
|
||||
|
||||
@@ -66,7 +66,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
Assert.AreEqual(sectors[i], image.ImageInfo.Sectors, testfiles[i]);
|
||||
Assert.AreEqual(sectorsize[i], image.ImageInfo.SectorSize, testfiles[i]);
|
||||
List<Partition> partitions = Core.Partitions.GetAll(image);
|
||||
Filesystem fs = new DiscImageChef.Filesystems.NILFS2();
|
||||
Filesystem fs = new NILFS2();
|
||||
int part = -1;
|
||||
for(int j = 0; j < partitions.Count; j++)
|
||||
if(partitions[j].Type == "0x83")
|
||||
@@ -77,7 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("NILFS2 filesystem", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class NTFS_GPT
|
||||
public class NtfsGpt
|
||||
{
|
||||
readonly string[] testfiles = {"haiku_hrev51259.vdi.lz"};
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("NTFS", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class NTFS_MBR
|
||||
public class NtfsMbr
|
||||
{
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
@@ -89,7 +89,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("NTFS", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -32,7 +32,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class NWFS386
|
||||
public class Nwfs386
|
||||
{
|
||||
readonly string[] testfiles = {"netware_3.12.vdi.lz"};
|
||||
|
||||
@@ -75,7 +75,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("NWFS386", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -32,7 +32,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class OCFS2
|
||||
public class Ocfs2
|
||||
{
|
||||
readonly string[] testfiles = {"linux.vdi.lz"};
|
||||
|
||||
@@ -75,7 +75,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("OCFS2", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class PFS3_RDB
|
||||
public class Pfs3Rdb
|
||||
{
|
||||
readonly string[] testfiles = {"uae.vdi.lz"};
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("PFS v3", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class ProDOS_APM
|
||||
public class ProdosApm
|
||||
{
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
@@ -85,7 +85,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("ProDOS", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class QNX4
|
||||
public class Qnx4
|
||||
{
|
||||
readonly string[] testfiles =
|
||||
{"qnx_4.24_dsdd.img.lz", "qnx_4.24_dshd.img.lz", "qnx_4.24_mf2dd.img.lz", "qnx_4.24_mf2hd.img.lz"};
|
||||
@@ -65,7 +65,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
Assert.AreEqual(mediatypes[i], image.ImageInfo.MediaType, testfiles[i]);
|
||||
Assert.AreEqual(sectors[i], image.ImageInfo.Sectors, testfiles[i]);
|
||||
Assert.AreEqual(sectorsize[i], image.ImageInfo.SectorSize, testfiles[i]);
|
||||
Filesystem fs = new DiscImageChef.Filesystems.QNX4();
|
||||
Filesystem fs = new QNX4();
|
||||
Partition wholePart = new Partition
|
||||
{
|
||||
Name = "Whole device",
|
||||
@@ -73,7 +73,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||
};
|
||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||
fs.GetInformation(image, wholePart, out string information);
|
||||
fs.GetInformation(image, wholePart, out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("QNX4 filesystem", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class QNX4_MBR
|
||||
public class Qnx4Mbr
|
||||
{
|
||||
readonly string[] testfiles = {"qnx_4.24.vdi.lz"};
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
Assert.AreEqual(sectors[i], image.ImageInfo.Sectors, testfiles[i]);
|
||||
Assert.AreEqual(sectorsize[i], image.ImageInfo.SectorSize, testfiles[i]);
|
||||
List<Partition> partitions = Core.Partitions.GetAll(image);
|
||||
Filesystem fs = new DiscImageChef.Filesystems.QNX4();
|
||||
Filesystem fs = new QNX4();
|
||||
int part = -1;
|
||||
for(int j = 0; j < partitions.Count; j++)
|
||||
if(partitions[j].Type == "0x4D")
|
||||
@@ -73,7 +73,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("QNX4 filesystem", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class ReFS_MBR
|
||||
public class ReFsMbr
|
||||
{
|
||||
readonly string[] testfiles = {"win10.vdi.lz"};
|
||||
|
||||
@@ -81,7 +81,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
/*
|
||||
Filesystem fs = new DiscImageChef.Filesystems.ReFS();
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("ReFS", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -75,7 +75,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual(reiserversion[i], fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("Reiser 4 filesystem", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class SFS_MBR
|
||||
public class SfsMbr
|
||||
{
|
||||
readonly string[] testfiles = {"aros.vdi.lz"};
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("SmartFileSystem", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class SFS_MBR_RDB
|
||||
public class SfsMbrRdb
|
||||
{
|
||||
readonly string[] testfiles = {"aros.vdi.lz"};
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("SmartFileSystem", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class SFS_RDB
|
||||
public class SfsRdb
|
||||
{
|
||||
readonly string[] testfiles = {"uae.vdi.lz", "aros.vdi.lz", "amigaos_4.0.vdi.lz", "amigaos_4.0_sfs2.vdi.lz"};
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("SmartFileSystem", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -88,7 +88,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||
};
|
||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||
fs.GetInformation(image, wholePart, out string information);
|
||||
fs.GetInformation(image, wholePart, out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class SysV_MBR
|
||||
public class SysVMbr
|
||||
{
|
||||
readonly string[] testfiles =
|
||||
{"att_unix_svr4v2.1.vdi.lz", "att_unix_svr4v2.1_2k.vdi.lz", "scoopenserver_5.0.7hw.vdi.lz"};
|
||||
@@ -80,7 +80,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class SysV_RDB
|
||||
public class SysVRdb
|
||||
{
|
||||
readonly string[] testfiles = {"amix.vdi.lz"};
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class UDF
|
||||
public class Udf
|
||||
{
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
@@ -105,7 +105,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
Assert.AreEqual(true, image.OpenImage(filter), testfiles[i]);
|
||||
Assert.AreEqual(sectors[i], image.ImageInfo.Sectors, testfiles[i]);
|
||||
Assert.AreEqual(sectorsize[i], image.ImageInfo.SectorSize, testfiles[i]);
|
||||
Filesystem fs = new DiscImageChef.Filesystems.UDF();
|
||||
Filesystem fs = new UDF();
|
||||
Partition wholePart = new Partition
|
||||
{
|
||||
Name = "Whole device",
|
||||
@@ -113,7 +113,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||
};
|
||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||
fs.GetInformation(image, wholePart, out string information);
|
||||
fs.GetInformation(image, wholePart, out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual(udfversion[i], fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class UFS
|
||||
public class Ufs
|
||||
{
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
@@ -86,7 +86,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||
};
|
||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||
fs.GetInformation(image, wholePart, out string information);
|
||||
fs.GetInformation(image, wholePart, out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class UFS_APM
|
||||
public class UfsApm
|
||||
{
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
@@ -87,7 +87,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class UFS_MBR
|
||||
public class UfsMbr
|
||||
{
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
@@ -122,7 +122,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class UFS_NeXT
|
||||
public class UfsNeXt
|
||||
{
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
@@ -83,7 +83,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class UFS_NeXT_Floppy
|
||||
public class UfsNeXtFloppy
|
||||
{
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
@@ -85,7 +85,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class UFS_RDB
|
||||
public class UfsRdb
|
||||
{
|
||||
readonly string[] testfiles = {"amix.vdi.lz"};
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class UFS_Suni86
|
||||
public class UfsSuni86
|
||||
{
|
||||
readonly string[] testfiles = {"solaris_7.vdi.lz"};
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class unixbfs
|
||||
public class Unixbfs
|
||||
{
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
@@ -81,7 +81,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||
};
|
||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||
fs.GetInformation(image, wholePart, out string information);
|
||||
fs.GetInformation(image, wholePart, out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("BFS", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class unixbfs_mbr
|
||||
public class UnixbfsMbr
|
||||
{
|
||||
readonly string[] testfiles = {"linux.vdi.lz"};
|
||||
|
||||
@@ -75,7 +75,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("BFS", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class UNIXBFS_RDB
|
||||
public class UnixbfsRdb
|
||||
{
|
||||
readonly string[] testfiles = {"amix.vdi.lz"};
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class XENIX
|
||||
public class Xenix
|
||||
{
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
@@ -83,7 +83,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||
};
|
||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||
fs.GetInformation(image, wholePart, out string information);
|
||||
fs.GetInformation(image, wholePart, out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class XENIX_MBR
|
||||
public class XenixMbr
|
||||
{
|
||||
readonly string[] testfiles = {"xenix_2.3.2d.vdi.lz", "xenix_2.3.4h.vdi.lz", "scoopenserver_5.0.7hw.vdi.lz"};
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class XFS_MBR
|
||||
public class XfsMbr
|
||||
{
|
||||
readonly string[] testfiles = {"linux.vdi.lz"};
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("XFS filesystem", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class ZFS
|
||||
public class Zfs
|
||||
{
|
||||
readonly string[] testfiles = {"netbsd_7.1.vdi.lz"};
|
||||
|
||||
@@ -64,7 +64,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
Assert.AreEqual(true, image.OpenImage(filter), testfiles[i]);
|
||||
Assert.AreEqual(sectors[i], image.ImageInfo.Sectors, testfiles[i]);
|
||||
Assert.AreEqual(sectorsize[i], image.ImageInfo.SectorSize, testfiles[i]);
|
||||
Filesystem fs = new DiscImageChef.Filesystems.ZFS();
|
||||
Filesystem fs = new ZFS();
|
||||
Partition wholePart = new Partition
|
||||
{
|
||||
Name = "Whole device",
|
||||
@@ -72,7 +72,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||
};
|
||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||
fs.GetInformation(image, wholePart, out string information);
|
||||
fs.GetInformation(image, wholePart, out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("ZFS filesystem", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -38,7 +38,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class btrfs
|
||||
public class Btrfs
|
||||
{
|
||||
readonly string[] testfiles = {"linux.vdi.lz"};
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("B-tree file system", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class exFAT_APM
|
||||
public class ExFatApm
|
||||
{
|
||||
readonly string[] testfiles = {"macosx_10.11.vdi.lz"};
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("exFAT", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
||||
namespace DiscImageChef.Tests.Filesystems
|
||||
{
|
||||
[TestFixture]
|
||||
public class exFAT_GPT
|
||||
public class ExFatGpt
|
||||
{
|
||||
readonly string[] testfiles = {"macosx_10.11.vdi.lz"};
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
|
||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||
fs.GetInformation(image, partitions[part], out string information);
|
||||
fs.GetInformation(image, partitions[part], out _);
|
||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||
Assert.AreEqual("exFAT", fs.XmlFSType.Type, testfiles[i]);
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user