mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
REFACTOR: Reformat code.
This commit is contained in:
@@ -39,69 +39,27 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class UFS_NeXT_Floppy
|
||||
{
|
||||
readonly string[] testfiles = {
|
||||
"nextstep_3.3_mf2dd.img.lz","nextstep_3.3_mf2hd.img.lz",
|
||||
"openstep_4.0_mf2dd.img.lz","openstep_4.0_mf2hd.img.lz",
|
||||
"openstep_4.2_mf2dd.img.lz","openstep_4.2_mf2hd.img.lz",
|
||||
"rhapsody_dr1_mf2dd.img.lz","rhapsody_dr1_mf2hd.img.lz",
|
||||
"rhapsody_dr2_mf2dd.img.lz","rhapsody_dr2_mf2hd.img.lz",
|
||||
readonly string[] testfiles =
|
||||
{
|
||||
"nextstep_3.3_mf2dd.img.lz", "nextstep_3.3_mf2hd.img.lz", "openstep_4.0_mf2dd.img.lz",
|
||||
"openstep_4.0_mf2hd.img.lz", "openstep_4.2_mf2dd.img.lz", "openstep_4.2_mf2hd.img.lz",
|
||||
"rhapsody_dr1_mf2dd.img.lz", "rhapsody_dr1_mf2hd.img.lz", "rhapsody_dr2_mf2dd.img.lz",
|
||||
"rhapsody_dr2_mf2hd.img.lz",
|
||||
};
|
||||
|
||||
readonly ulong[] sectors = {
|
||||
1440, 2880,
|
||||
1440, 2880,
|
||||
1440, 2880,
|
||||
1440, 2880,
|
||||
1440, 2880,
|
||||
};
|
||||
readonly ulong[] sectors = {1440, 2880, 1440, 2880, 1440, 2880, 1440, 2880, 1440, 2880,};
|
||||
|
||||
readonly uint[] sectorsize = {
|
||||
512, 512,
|
||||
512, 512,
|
||||
512, 512,
|
||||
512, 512,
|
||||
512, 512,
|
||||
};
|
||||
readonly uint[] sectorsize = {512, 512, 512, 512, 512, 512, 512, 512, 512, 512,};
|
||||
|
||||
readonly long[] clusters = {
|
||||
624, 1344,
|
||||
624, 1344,
|
||||
624, 1344,
|
||||
624, 1344,
|
||||
624, 1344,
|
||||
};
|
||||
readonly long[] clusters = {624, 1344, 624, 1344, 624, 1344, 624, 1344, 624, 1344,};
|
||||
|
||||
readonly int[] clustersize = {
|
||||
1024, 1024,
|
||||
1024, 1024,
|
||||
1024, 1024,
|
||||
1024, 1024,
|
||||
1024, 1024,
|
||||
};
|
||||
readonly int[] clustersize = {1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024,};
|
||||
|
||||
readonly string[] volumename = {
|
||||
null, null,
|
||||
null, null,
|
||||
null, null,
|
||||
null, null,
|
||||
null, null,
|
||||
};
|
||||
readonly string[] volumename = {null, null, null, null, null, null, null, null, null, null,};
|
||||
|
||||
readonly string[] volumeserial = {
|
||||
null, null,
|
||||
null, null,
|
||||
null, null,
|
||||
null, null,
|
||||
null, null,
|
||||
};
|
||||
readonly string[] volumeserial = {null, null, null, null, null, null, null, null, null, null,};
|
||||
|
||||
readonly string[] type = {
|
||||
"UFS", "UFS",
|
||||
"UFS", "UFS",
|
||||
"UFS", "UFS",
|
||||
"UFS", "UFS",
|
||||
"UFS", "UFS",
|
||||
};
|
||||
readonly string[] type = {"UFS", "UFS", "UFS", "UFS", "UFS", "UFS", "UFS", "UFS", "UFS", "UFS",};
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
@@ -126,6 +84,7 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
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);
|
||||
@@ -137,4 +96,4 @@ namespace DiscImageChef.Tests.Filesystems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user