mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Code style fixes.
This commit is contained in:
@@ -40,7 +40,7 @@ namespace Aaru.Tests.Filesystems
|
||||
[TestFixture]
|
||||
public class XfsMbr
|
||||
{
|
||||
readonly string[] _testfiles =
|
||||
readonly string[] _testFiles =
|
||||
{
|
||||
"linux.aif", "linux_4.19_xfs_flashdrive.aif"
|
||||
};
|
||||
@@ -50,7 +50,7 @@ namespace Aaru.Tests.Filesystems
|
||||
1048576, 1024000
|
||||
};
|
||||
|
||||
readonly uint[] _sectorsize =
|
||||
readonly uint[] _sectorSize =
|
||||
{
|
||||
512, 512
|
||||
};
|
||||
@@ -60,17 +60,17 @@ namespace Aaru.Tests.Filesystems
|
||||
130816, 127744
|
||||
};
|
||||
|
||||
readonly int[] _clustersize =
|
||||
readonly int[] _clusterSize =
|
||||
{
|
||||
4096, 4096
|
||||
};
|
||||
|
||||
readonly string[] _volumename =
|
||||
readonly string[] _volumeName =
|
||||
{
|
||||
"Volume label", "DicSetter"
|
||||
};
|
||||
|
||||
readonly string[] _volumeserial =
|
||||
readonly string[] _volumeSerial =
|
||||
{
|
||||
"230075b7-9834-b44e-a257-982a058311d8", "ed6b4d35-aa66-ce4a-9d8f-c56dbc6d7c8c"
|
||||
};
|
||||
@@ -78,15 +78,15 @@ 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.TEST_FILES_ROOT, "Filesystems", "XFS", _testfiles[i]);
|
||||
string location = Path.Combine(Consts.TEST_FILES_ROOT, "Filesystems", "XFS", _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 XFS();
|
||||
int part = -1;
|
||||
@@ -99,14 +99,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("XFS filesystem", 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("XFS filesystem", fs.XmlFsType.Type, _testFiles[i]);
|
||||
Assert.AreEqual(_volumeName[i], fs.XmlFsType.VolumeName, _testFiles[i]);
|
||||
Assert.AreEqual(_volumeSerial[i], fs.XmlFsType.VolumeSerial, _testFiles[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user