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

@@ -81,8 +81,8 @@ namespace DiscImageChef.Tests.Filesystems
Assert.AreEqual(mediatypes[i], image.Info.MediaType, testfiles[i]);
Assert.AreEqual(sectors[i], image.Info.Sectors, testfiles[i]);
Assert.AreEqual(sectorsize[i], image.Info.SectorSize, testfiles[i]);
IFilesystem fs = new AppleHFS();
Partition wholePart = new Partition
IFilesystem fs = new AppleHFS();
Partition wholePart = new Partition
{
Name = "Whole device",
Length = image.Info.Sectors,
@@ -172,7 +172,7 @@ namespace DiscImageChef.Tests.Filesystems
List<Partition> partitions = Core.Partitions.GetAll(image);
IFilesystem fs = new AppleHFS();
int part = -1;
for(int j = 0; j < partitions.Count; j++)
for(int j = 0; j < partitions.Count; j++)
if(partitions[j].Type == "Apple_HFS")
{
part = j;
@@ -229,7 +229,7 @@ namespace DiscImageChef.Tests.Filesystems
List<Partition> partitions = Core.Partitions.GetAll(image);
IFilesystem fs = new AppleHFS();
int part = -1;
for(int j = 0; j < partitions.Count; j++)
for(int j = 0; j < partitions.Count; j++)
if(partitions[j].Type == "Apple_HFS")
{
part = j;
@@ -283,7 +283,7 @@ namespace DiscImageChef.Tests.Filesystems
List<Partition> partitions = Core.Partitions.GetAll(image);
IFilesystem fs = new AppleHFS();
int part = -1;
for(int j = 0; j < partitions.Count; j++)
for(int j = 0; j < partitions.Count; j++)
if(partitions[j].Type == "0xAF")
{
part = j;
@@ -334,7 +334,7 @@ namespace DiscImageChef.Tests.Filesystems
List<Partition> partitions = Core.Partitions.GetAll(image);
IFilesystem fs = new AppleHFS();
int part = -1;
for(int j = 0; j < partitions.Count; j++)
for(int j = 0; j < partitions.Count; j++)
if(partitions[j].Type == "\"RES\\86\"")
{
part = j;