Naming fixes.

This commit is contained in:
2020-07-20 21:11:32 +01:00
parent c58c0fd1f8
commit 6220425ac6
525 changed files with 15675 additions and 15524 deletions

View File

@@ -40,39 +40,39 @@ namespace Aaru.Tests.Filesystems
[TestFixture]
public class ProdosApm
{
readonly string[] testfiles =
readonly string[] _testfiles =
{
"macos_7.5.3.aif", "macos_7.6.aif", "macos_8.0.aif", "macos_8.1.aif", "macos_9.0.4.aif", "macos_9.1.aif",
"macos_9.2.1.aif", "macos_9.2.2.aif"
};
readonly ulong[] sectors =
readonly ulong[] _sectors =
{
49152, 49152, 49152, 49152, 49152, 49152, 49152, 49152
};
readonly uint[] sectorsize =
readonly uint[] _sectorsize =
{
512, 512, 512, 512, 512, 512, 512, 512
};
readonly long[] clusters =
readonly long[] _clusters =
{
48438, 48438, 48438, 48438, 46326, 46326, 46326, 46326
};
readonly int[] clustersize =
readonly int[] _clustersize =
{
512, 512, 512, 512, 512, 512, 512, 512
};
readonly string[] volumename =
readonly string[] _volumename =
{
"VOLUME.LABEL", "VOLUME.LABEL", "VOLUME.LABEL", "VOLUME.LABEL", "VOLUME.LABEL", "VOLUME.LABEL",
"VOLUME.LABEL", "VOLUME.LABEL"
};
readonly string[] volumeserial =
readonly string[] _volumeserial =
{
null, null, null, null, null, null, null, null
};
@@ -80,17 +80,17 @@ namespace Aaru.Tests.Filesystems
[Test]
public void Test()
{
for(int i = 0; i < testfiles.Length; i++)
for(int i = 0; i < _testfiles.Length; i++)
{
string location = Path.Combine(Consts.TestFilesRoot, "Filesystems", "ProDOS filesystem (APM)",
testfiles[i]);
string location = Path.Combine(Consts.TEST_FILES_ROOT, "Filesystems", "ProDOS filesystem (APM)",
_testfiles[i]);
IFilter filter = new ZZZNoFilter();
filter.Open(location);
IMediaImage image = new AaruFormat();
Assert.AreEqual(true, image.Open(filter), testfiles[i]);
Assert.AreEqual(sectors[i], image.Info.Sectors, testfiles[i]);
Assert.AreEqual(sectorsize[i], image.Info.SectorSize, testfiles[i]);
Assert.AreEqual(true, image.Open(filter), _testfiles[i]);
Assert.AreEqual(_sectors[i], image.Info.Sectors, _testfiles[i]);
Assert.AreEqual(_sectorsize[i], image.Info.SectorSize, _testfiles[i]);
List<Partition> partitions = Core.Partitions.GetAll(image);
IFilesystem fs = new ProDOSPlugin();
int part = -1;
@@ -103,14 +103,14 @@ namespace Aaru.Tests.Filesystems
break;
}
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
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 _, null);
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]);
Assert.AreEqual(volumename[i], fs.XmlFsType.VolumeName, testfiles[i]);
Assert.AreEqual(volumeserial[i], fs.XmlFsType.VolumeSerial, testfiles[i]);
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]);
Assert.AreEqual(_volumename[i], fs.XmlFsType.VolumeName, _testfiles[i]);
Assert.AreEqual(_volumeserial[i], fs.XmlFsType.VolumeSerial, _testfiles[i]);
}
}
}