REFACTOR: Reformat code.

This commit is contained in:
2017-12-19 20:33:03 +00:00
parent 77edc7c91c
commit e6f6ace80b
704 changed files with 82627 additions and 83641 deletions

View File

@@ -39,34 +39,116 @@ namespace DiscImageChef.Tests.Partitions
[TestFixture]
public class GPT
{
readonly string[] testfiles = {
"linux.vdi.lz","parted.vdi.lz",
};
readonly string[] testfiles = {"linux.vdi.lz", "parted.vdi.lz",};
readonly Partition[][] wanted = {
readonly Partition[][] wanted =
{
// Linux
new []{
new Partition{ Description = null, 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 },
new Partition{ Description = null, 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 },
new Partition{ Description = null, 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 },
new[]
{
new Partition
{
Description = null,
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
},
new Partition
{
Description = null,
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
},
new Partition
{
Description = null,
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
},
},
// Parted
new []{
new Partition{ Description = null, 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 },
new Partition{ Description = null, Size = 36700160, Name = "", Type = "Microsoft Basic data", Offset = 96468992, Length = 71680,
Sequence = 2, Start = 188416 },
new[]
{
new Partition
{
Description = null,
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
},
new Partition
{
Description = null,
Size = 36700160,
Name = "",
Type = "Microsoft Basic data",
Offset = 96468992,
Length = 71680,
Sequence = 2,
Start = 188416
},
},
};
@@ -97,4 +179,4 @@ namespace DiscImageChef.Tests.Partitions
}
}
}
}
}