Code cleanup.

This commit is contained in:
2018-06-22 08:08:38 +01:00
parent 82f474c7e3
commit 88da8fc019
581 changed files with 22423 additions and 20839 deletions

View File

@@ -48,68 +48,68 @@ namespace DiscImageChef.Tests.Partitions
new Partition
{
Description = null,
Size = 10485760,
Name = "EFI System",
Type = "EFI System",
Offset = 1048576,
Length = 20480,
Sequence = 0,
Start = 2048
Size = 10485760,
Name = "EFI System",
Type = "EFI System",
Offset = 1048576,
Length = 20480,
Sequence = 0,
Start = 2048
},
new Partition
{
Description = null,
Size = 15728640,
Name = "Microsoft basic data",
Type = "Microsoft Basic data",
Offset = 11534336,
Length = 30720,
Sequence = 1,
Start = 22528
Size = 15728640,
Name = "Microsoft basic data",
Type = "Microsoft Basic data",
Offset = 11534336,
Length = 30720,
Sequence = 1,
Start = 22528
},
new Partition
{
Description = null,
Size = 20971520,
Name = "Apple label",
Type = "Apple Label",
Offset = 27262976,
Length = 40960,
Sequence = 2,
Start = 53248
Size = 20971520,
Name = "Apple label",
Type = "Apple Label",
Offset = 27262976,
Length = 40960,
Sequence = 2,
Start = 53248
},
new Partition
{
Description = null,
Size = 26214400,
Name = "Solaris /usr & Mac ZFS",
Type = "Solaris /usr or Apple ZFS",
Offset = 48234496,
Length = 51200,
Sequence = 3,
Start = 94208
Size = 26214400,
Name = "Solaris /usr & Mac ZFS",
Type = "Solaris /usr or Apple ZFS",
Offset = 48234496,
Length = 51200,
Sequence = 3,
Start = 94208
},
new Partition
{
Description = null,
Size = 31457280,
Name = "FreeBSD ZFS",
Type = "FreeBSD ZFS",
Offset = 74448896,
Length = 61440,
Sequence = 4,
Start = 145408
Size = 31457280,
Name = "FreeBSD ZFS",
Type = "FreeBSD ZFS",
Offset = 74448896,
Length = 61440,
Sequence = 4,
Start = 145408
},
new Partition
{
Description = null,
Size = 28294656,
Name = "HP-UX data",
Type = "HP-UX Data",
Offset = 105906176,
Length = 55263,
Sequence = 5,
Start = 206848
Size = 28294656,
Name = "HP-UX data",
Type = "HP-UX Data",
Offset = 105906176,
Length = 55263,
Sequence = 5,
Start = 206848
}
},
// Parted
@@ -118,35 +118,35 @@ namespace DiscImageChef.Tests.Partitions
new Partition
{
Description = null,
Size = 42991616,
Name = "",
Type = "Apple HFS",
Offset = 1048576,
Length = 83968,
Sequence = 0,
Start = 2048
Size = 42991616,
Name = "",
Type = "Apple HFS",
Offset = 1048576,
Length = 83968,
Sequence = 0,
Start = 2048
},
new Partition
{
Description = null,
Size = 52428800,
Name = "",
Type = "Linux filesystem",
Offset = 44040192,
Length = 102400,
Sequence = 1,
Start = 86016
Size = 52428800,
Name = "",
Type = "Linux filesystem",
Offset = 44040192,
Length = 102400,
Sequence = 1,
Start = 86016
},
new Partition
{
Description = null,
Size = 36700160,
Name = "",
Type = "Microsoft Basic data",
Offset = 96468992,
Length = 71680,
Sequence = 2,
Start = 188416
Size = 36700160,
Name = "",
Type = "Microsoft Basic data",
Offset = 96468992,
Length = 71680,
Sequence = 2,
Start = 188416
}
}
};
@@ -156,8 +156,8 @@ namespace DiscImageChef.Tests.Partitions
{
for(int i = 0; i < testfiles.Length; i++)
{
string location = Path.Combine(Consts.TestFilesRoot, "partitions", "gpt", testfiles[i]);
IFilter filter = new LZip();
string location = Path.Combine(Consts.TestFilesRoot, "partitions", "gpt", testfiles[i]);
IFilter filter = new LZip();
filter.Open(location);
IMediaImage image = new Vdi();
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
@@ -167,13 +167,13 @@ namespace DiscImageChef.Tests.Partitions
{
// Too chatty
//Assert.AreEqual(wanted[i][j].PartitionDescription, partitions[j].PartitionDescription, testfiles[i]);
Assert.AreEqual(wanted[i][j].Size, partitions[j].Size, testfiles[i]);
Assert.AreEqual(wanted[i][j].Name, partitions[j].Name, testfiles[i]);
Assert.AreEqual(wanted[i][j].Type, partitions[j].Type, testfiles[i]);
Assert.AreEqual(wanted[i][j].Offset, partitions[j].Offset, testfiles[i]);
Assert.AreEqual(wanted[i][j].Length, partitions[j].Length, testfiles[i]);
Assert.AreEqual(wanted[i][j].Size, partitions[j].Size, testfiles[i]);
Assert.AreEqual(wanted[i][j].Name, partitions[j].Name, testfiles[i]);
Assert.AreEqual(wanted[i][j].Type, partitions[j].Type, testfiles[i]);
Assert.AreEqual(wanted[i][j].Offset, partitions[j].Offset, testfiles[i]);
Assert.AreEqual(wanted[i][j].Length, partitions[j].Length, testfiles[i]);
Assert.AreEqual(wanted[i][j].Sequence, partitions[j].Sequence, testfiles[i]);
Assert.AreEqual(wanted[i][j].Start, partitions[j].Start, testfiles[i]);
Assert.AreEqual(wanted[i][j].Start, partitions[j].Start, testfiles[i]);
}
}
}